/*
Theme Name: Youth Tech
Description: 面向中国年轻人的现代科技风格WordPress主题，集成支付功能，重新设计优化版
Version: 2.0
Author: Youth Tech Team
Text Domain: youth-tech
*/

/* CSS变量定义 - 现代科技风格配色系统 */
:root {
  /* 主色调 - 精致的科技渐变 */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --cyber-gradient: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
  --neon-gradient: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  --tech-gradient: linear-gradient(135deg, #667eea 0%, #00d4ff 50%, #00ff88 100%);
  --aurora-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

  /* 背景色系统 - 更有层次的深色主题 */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-elevated: #252540;
  --bg-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-strong: rgba(255, 255, 255, 0.12);
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --bg-modal: rgba(0, 0, 0, 0.9);

  /* 文字色系统 - 更好的对比度和层次 */
  --text-primary: #ffffff;
  --text-secondary: #b8b8d1;
  --text-muted: #8a8aa0;
  --text-accent: #00d4ff;
  --text-success: #00ff88;
  --text-warning: #ffb347;
  --text-error: #ff6b6b;

  /* 强调色 - 科技感配色 */
  --accent-primary: #00d4ff;
  --accent-secondary: #8b5cf6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-error: #ef4444;
  --accent-pink: #ec4899;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  
  /* 阴影系统 - 更精致的阴影效果 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.4);
  --shadow-glow-pink: 0 0 20px rgba(236, 72, 153, 0.4);
  --shadow-neon: 0 0 30px rgba(0, 212, 255, 0.6);

  /* 边框半径 - 现代化的圆角系统 */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 50%;

  /* 间距系统 - 更精确的间距控制 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* 字体系统 - 现代化的字体栈 */
  --font-primary: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Noto Sans SC", "Inter", "PingFang SC", sans-serif;
  --font-code: "JetBrains Mono", "Fira Code", "Source Code Pro", "Consolas", monospace;
  --font-display: "Orbitron", "Noto Sans SC", "Inter", sans-serif;

  /* 字体大小 - 更精确的尺寸系统 */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;
  --text-8xl: 96px;

  /* 过渡动画 - 更流畅的动画系统 */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 基础样式重置 - 现代化重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  /* WordPress管理员工具栏支持 */
  --wp-admin--admin-bar--height: 32px;
  scroll-padding-top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
  html {
    --wp-admin--admin-bar--height: 46px;
    scroll-padding-top: var(--wp-admin--admin-bar--height, 46px);
  }
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WordPress管理员工具栏支持 - 简化版本 */
body.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

/* 容器系统 - 现代化布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

/* 响应式容器 */
@media (max-width: 1240px) {
  .container,
  .container-wide {
    max-width: 100%;
    padding: 0 var(--space-8);
  }
}

@media (max-width: 768px) {
  .container,
  .container-wide,
  .container-narrow {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide,
  .container-narrow {
    padding: 0 var(--space-3);
  }
}

/* 网格系统 - 现代化响应式网格 */
.grid {
  display: grid;
  gap: var(--space-6);
  width: 100%;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* 自适应网格 */
.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* 响应式网格 */
@media (max-width: 1024px) {
  .grid-cols-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid {
    gap: var(--space-4);
  }
  .grid-cols-6,
  .grid-cols-5,
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .grid-auto-fit,
  .grid-auto-fill {
    grid-template-columns: 1fr;
  }
}

/* 弹性布局系统 - 现代化Flexbox */
.flex {
  display: flex;
  gap: var(--space-4);
}

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* 对齐方式 */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

/* 弹性增长 */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

/* 间距变体 */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* 响应式Flex */
@media (max-width: 768px) {
  .md\:flex-col { flex-direction: column; }
  .md\:flex-wrap { flex-wrap: wrap; }
  .md\:items-center { align-items: center; }
  .md\:justify-center { justify-content: center; }
}

/* 文字样式系统 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* 字体粗细 */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* 字体大小工具类 */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

/* 渐变文字效果 - 增强版 */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

.gradient-text-cyber {
  background: var(--cyber-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

.gradient-text-neon {
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: neon-pulse 2s ease-in-out infinite alternate;
}

/* Header中的站点标题使用白色 */
.site-header .gradient-text {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  background-clip: unset !important;
  color: var(--text-primary) !important;
  animation: none !important;
}

@keyframes gradient-shift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

@keyframes neon-pulse {
  0% { filter: brightness(1) saturate(1); }
  100% { filter: brightness(1.2) saturate(1.3); }
}

/* 按钮系统 - 现代科技风格 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 48px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::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 var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-cyber {
  background: var(--cyber-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-cyber:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-purple);
}

.btn-neon {
  background: var(--neon-gradient);
  color: var(--bg-primary);
  box-shadow: var(--shadow-md);
  animation: neon-pulse 2s ease-in-out infinite alternate;
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon);
  animation: none;
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--bg-glass-strong);
  transform: translateY(-2px);
}

/* 按钮尺寸 */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn-xl {
  padding: var(--space-6) var(--space-12);
  font-size: var(--text-xl);
  min-height: 64px;
}

/* 卡片系统 - 现代科技风格 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

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

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-elevated {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-glow {
  box-shadow: var(--shadow-glow-cyan);
}

.card-glow:hover {
  box-shadow: var(--shadow-neon);
}

.card-cyber {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid rgba(131, 56, 236, 0.3);
}

.card-cyber:hover {
  box-shadow: var(--shadow-glow-purple);
}

/* 玻璃态效果 - 增强版 */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 动画效果系统 - 增强版 */
.hover-lift {
  transition: transform var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

.hover-scale {
  transition: transform var(--transition-normal);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform var(--transition-normal);
}

.hover-rotate:hover {
  transform: rotate(5deg);
}

.pulse-effect {
  animation: pulse 2s infinite;
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

.bounce-in {
  animation: bounceIn 0.8s ease-out;
}

/* 关键帧动画 */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
  100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.glow-effect {
  box-shadow: var(--shadow-glow);
}

/* 响应式工具类 */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

@media (max-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
}

@media (min-width: 769px) {
  .md\:flex { display: flex; }
}

/* 间距工具类 */
.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-md); }
.mb-4 { margin-bottom: var(--space-md); }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-4 { padding: var(--space-md); }
.px-4 { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-4 { padding-top: var(--space-md); padding-bottom: var(--space-md); }

/* 导航栏样式 - 现代科技风格 */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: all var(--transition-normal);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(10, 10, 15, 0.9);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

/* 修复静态header在管理员模式下的位置 - 使用WordPress原生方法 */
body.admin-bar .site-header {
  top: 32px !important; /* 先用固定值确保生效 */
  z-index: 99998 !important; /* 在管理员工具栏下方，但在其他内容上方 */
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-glow-cyan);
  border-bottom-color: rgba(0, 212, 255, 0.4);
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

/* 简洁header样式 - 枫车AI */
.simple-header {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.simple-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.simple-header .header-content {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 80px;
}

.simple-header .site-title {
  margin: 0 !important;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 4px 20px rgba(0, 212, 255, 0.3) !important;
  letter-spacing: 2px !important;
  transition: all 0.3s ease !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.simple-header .site-title:hover {
  transform: scale(1.05);
  text-shadow: 0 6px 30px rgba(0, 212, 255, 0.5) !important;
}

/* 简洁header响应式样式 */
@media (max-width: 768px) {
  .simple-header .container {
    padding: 0 15px;
  }

  .simple-header .header-content {
    min-height: 60px;
  }

  .simple-header .site-title {
    font-size: 2rem !important;
    letter-spacing: 1px !important;
  }
}

@media (max-width: 480px) {
  .simple-header .site-title {
    font-size: 1.8rem !important;
  }
}

/* 页面内容样式 */
.page-content {
  padding-top: 120px; /* 为固定header留出空间 */
  min-height: calc(100vh - 120px);
}

/* 确保非首页的main-content有正确的顶部间距 */
body:not(.home) .main-content {
  padding-top: 120px !important;
}

/* 管理员工具栏的额外间距 */
body.admin-bar:not(.home) .main-content {
  padding-top: 152px !important; /* 120px + 32px */
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
  /* 回退颜色，以防渐变不支持 */
  color: #00d4ff;
}

.page-excerpt {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.page-body h2 {
  font-size: 2rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
  padding-bottom: 0.5rem;
}

.page-body h3 {
  font-size: 1.5rem;
}

.page-body p {
  color: var(--text-secondary, #e0e0e0);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.page-body ul,
.page-body ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-body li {
  margin-bottom: 0.5rem;
}

.page-body blockquote {
  background: rgba(0, 212, 255, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-body code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--accent-color);
}

.page-body pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.page-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* 页面链接样式 */
.page-links {
  text-align: center;
  margin: 2rem 0;
}

.page-links .page-number {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-links .page-number:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--primary-color);
}

/* 页面评论区域 */
.page-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-content {
    padding-top: 100px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-excerpt {
    font-size: 1.1rem;
  }

  .page-body {
    padding: 0 15px;
  }

  .page-body h2 {
    font-size: 1.8rem;
  }

  .page-body h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }

  .page-excerpt {
    font-size: 1rem;
  }

  .page-body h2 {
    font-size: 1.6rem;
  }
}

/* 文章页面样式 */
.single-post {
  padding-top: 120px; /* 为固定header留出空间 */
  min-height: calc(100vh - 120px);
}

.entry-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.entry-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  /* 回退颜色 */
  color: #00d4ff;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #b0b0b0);
  margin-bottom: 1rem;
}

.entry-meta span {
  display: flex;
  align-items: center;
}

.entry-meta a {
  color: var(--primary-color, #00d4ff);
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-meta a:hover {
  color: var(--accent-color, #00ff88);
}

.post-thumbnail {
  text-align: center;
  margin: 2rem 0 3rem;
}

.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--text-primary, #ffffff);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.entry-content h2 {
  font-size: 2rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
  padding-bottom: 0.5rem;
}

.entry-content h3 {
  font-size: 1.5rem;
}

.entry-content p {
  color: var(--text-secondary, #e0e0e0);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  color: var(--text-secondary, #e0e0e0);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  background: rgba(0, 212, 255, 0.1);
  border-left: 4px solid var(--primary-color, #00d4ff);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary, #ffffff);
  border-radius: 0 8px 8px 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.entry-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--accent-color, #00ff88);
  font-size: 0.9em;
}

.entry-content pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary, #ffffff);
  font-size: 0.9rem;
}

.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.tag-list h4 {
  color: var(--text-primary, #ffffff);
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li {
  margin: 0;
}

.tags a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  color: var(--primary-color, #00d4ff);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tags a:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--primary-color, #00d4ff);
  transform: translateY(-2px);
}

.edit-link {
  margin-top: 1rem;
  display: inline-block;
}

.edit-link a {
  color: var(--text-secondary, #b0b0b0);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.edit-link a:hover {
  color: var(--primary-color, #00d4ff);
  border-color: var(--primary-color, #00d4ff);
}

/* 文章导航样式 */
.post-navigation {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-previous,
.nav-next {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.nav-previous {
  text-align: left;
}

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

.nav-links a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.nav-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary, #b0b0b0);
  margin-bottom: 0.5rem;
}

.nav-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  line-height: 1.4;
}

/* 评论区域样式 */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 响应式设计 - 文章页面 */
@media (max-width: 768px) {
  .single-post {
    padding-top: 100px;
  }

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

  .entry-meta {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .entry-content {
    padding: 0 15px;
  }

  .entry-content h2 {
    font-size: 1.8rem;
  }

  .entry-content h3 {
    font-size: 1.4rem;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-next {
    text-align: left;
  }

  .tags {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .entry-title {
    font-size: 2rem;
  }

  .entry-content h2 {
    font-size: 1.6rem;
  }

  .nav-previous,
  .nav-next {
    padding: 1rem;
  }
}

/* Index.php 主模板样式 - WordPress官方标准 */

/* 主内容区域 */
#primary {
  padding-top: 120px; /* 为固定header留出空间 */
  min-height: calc(100vh - 120px);
}

/* 页面标题区域 */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
  /* 回退颜色 */
  color: #00d4ff;
}

.search-term {
  font-style: italic;
  color: var(--accent-color, #00ff88);
}

.search-results-count {
  color: var(--text-secondary, #b0b0b0);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.archive-description {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--text-secondary, #e0e0e0);
  line-height: 1.6;
}

/* 文章容器 */
.posts-container {
  margin-bottom: 3rem;
}

/* 列表布局（用于存档、搜索等） */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 网格布局（用于首页等） */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 20px;
}

/* 文章项目 */
.post-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 212, 255, 0.3);
}

/* 列表布局中的文章项目 */
.posts-list .post-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
}

.posts-list .post-thumbnail {
  flex-shrink: 0;
  width: 200px;
}

.posts-list .post-content {
  flex: 1;
}

/* 网格布局中的文章项目 */
.posts-grid .post-item {
  display: flex;
  flex-direction: column;
}

.posts-grid .post-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 文章缩略图 */
.post-thumbnail {
  position: relative;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.posts-grid .post-image {
  height: 200px;
  object-fit: cover;
}

.posts-list .post-image {
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.post-item:hover .post-image {
  transform: scale(1.05);
}

/* 文章标题 */
.entry-title {
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

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

.posts-grid .entry-title {
  font-size: 1.3rem;
}

.entry-title a {
  color: var(--text-primary, #ffffff);
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-title a:hover {
  color: var(--primary-color, #00d4ff);
}

/* 文章元信息 */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary, #b0b0b0);
}

.entry-meta span {
  display: flex;
  align-items: center;
}

.entry-meta a {
  color: var(--primary-color, #00d4ff);
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-meta a:hover {
  color: var(--accent-color, #00ff88);
}

/* 文章摘要 */
.entry-summary {
  color: var(--text-secondary, #e0e0e0);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.entry-summary p {
  margin-bottom: 1rem;
}

/* 阅读更多链接 */
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color, #00d4ff);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  color: var(--accent-color, #00ff88);
  transform: translateX(5px);
}

/* 分页导航 */
.pagination-wrapper {
  margin-top: 3rem;
  text-align: center;
}

.pagination {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary, #ffffff);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--primary-color, #00d4ff);
  border-color: var(--primary-color, #00d4ff);
  color: #000000;
}

.page-numbers.dots {
  background: none;
  border: none;
  cursor: default;
}

.page-numbers.dots:hover {
  background: none;
  color: var(--text-secondary, #b0b0b0);
}

/* 无结果页面 */
.no-results {
  text-align: center;
  padding: 3rem 20px;
  max-width: 600px;
  margin: 0 auto;
}

.no-results .page-title {
  margin-bottom: 1.5rem;
}

.no-results .page-content {
  color: var(--text-secondary, #e0e0e0);
  line-height: 1.6;
}

.no-results p {
  margin-bottom: 1.5rem;
}

/* 搜索表单容器 */
.search-form-container {
  margin: 2rem 0;
}

.search-suggestions {
  text-align: left;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-suggestions h3 {
  color: var(--text-primary, #ffffff);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggestions li {
  padding: 0.5rem 0;
  color: var(--text-secondary, #e0e0e0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-suggestions li:last-child {
  border-bottom: none;
}

.search-suggestions li:before {
  content: "•";
  color: var(--primary-color, #00d4ff);
  margin-right: 0.5rem;
}

/* 响应式设计 - Index.php */
@media (max-width: 768px) {
  #primary {
    padding-top: 100px;
  }

  .page-title {
    font-size: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .posts-list {
    padding: 0 15px;
  }

  .posts-list .post-item {
    flex-direction: column;
    gap: 1rem;
  }

  .posts-list .post-thumbnail {
    width: 100%;
  }

  .posts-list .post-image {
    height: 200px;
  }

  .entry-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .page-numbers {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.8rem;
  }

  .posts-list .post-item,
  .posts-grid .post-item {
    margin-bottom: 1rem;
  }

  .post-content {
    padding: 1rem;
  }

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

  .entry-meta {
    font-size: 0.8rem;
  }

  .no-results {
    padding: 2rem 15px;
  }

  .search-suggestions {
    padding: 1rem;
  }
}

/* 空内容占位符样式 */
.empty-content-placeholder {
  min-height: calc(100vh - 200px); /* 确保足够的高度，减去header和footer的大概高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
}

.empty-message {
  text-align: center;
  max-width: 600px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.empty-message h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  /* 回退颜色 */
  color: #00d4ff;
}

.empty-message p {
  font-size: 1.2rem;
  color: var(--text-secondary, #e0e0e0);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.empty-actions {
  margin-top: 2rem;
}

.empty-actions .btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.empty-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

/* 确保main-content有最小高度 */
.main-content {
  min-height: calc(100vh - 120px); /* header高度大约80px，footer高度大约40px */
}

/* 响应式设计 - 空内容占位符 */
@media (max-width: 768px) {
  .empty-content-placeholder {
    min-height: calc(100vh - 160px);
    padding: 40px 15px;
  }

  .empty-message {
    padding: 30px 20px;
  }

  .empty-message h1 {
    font-size: 2rem;
  }

  .empty-message p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .empty-message h1 {
    font-size: 1.8rem;
  }

  .empty-message p {
    font-size: 1rem;
  }

  .empty-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* 打印样式 */
@media print {
  .page-header,
  .pagination-wrapper,
  .search-form-container {
    display: none;
  }

  .post-item {
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
  }

  .post-thumbnail {
    display: none;
  }

  .entry-title a {
    color: #000 !important;
    text-decoration: none;
  }

  .entry-meta,
  .entry-summary {
    color: #333 !important;
  }
}

.main-navigation {
  padding: var(--space-4) 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 响应式导航 */
@media (max-width: 768px) {
  .main-navigation {
    padding: 12px 0;
    min-height: 56px;
  }

  .nav-menu-wrapper {
    display: none;
  }

  .mobile-menu-toggle {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .nav-menu-wrapper {
    display: flex !important;
  }
}

.site-title a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  position: relative;
}

.site-title a:hover {
  color: var(--accent-primary);
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0.1;
  transition: left var(--transition-normal);
}

.nav-menu a:hover::before {
  left: 0;
}

.nav-menu a:hover,
.nav-menu a.current {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--neon-gradient);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

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

.btn-icon {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-gradient);
  border-radius: 50%;
  transition: all var(--transition-normal);
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

.btn-icon:hover::before {
  width: 100%;
  height: 100%;
}

.btn-icon:hover {
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* 移动端导航 - 现代化设计 */
.mobile-nav {
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  transition: transform var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-xl);
}

.mobile-nav.active {
  transform: translateY(-100%);
}

.mobile-nav-content {
  padding: var(--space-6);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header h3 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 600;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
}

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

.mobile-menu li {
  margin-bottom: var(--space-3);
}

.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-lg);
  display: block;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0.1;
  transition: left var(--transition-normal);
}

.mobile-menu a:hover::before {
  left: 0;
}

.mobile-menu a:hover {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(10px);
}



/* 汉堡菜单图标 */
.hamburger {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* 搜索覆盖层 - 现代化设计 */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: slideInUp 0.4s ease-out;
}

.search-form {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.search-field {
  flex: 1;
  padding: var(--space-5);
  background: var(--bg-glass-strong);
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: var(--text-lg);
  outline: none;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.search-field:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
  background: var(--bg-glass-strong);
}

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

.search-submit {
  padding: var(--space-5);
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}

.search-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}

.search-close:hover {
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
  transform: rotate(90deg);
}



/* Hero区域样式 - 现代科技风格 */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(131, 56, 236, 0.1) 0%, transparent 50%),
    var(--bg-primary);
  padding: var(--space-20) 0 var(--space-16);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: var(--space-6);
  line-height: 1.2;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-12);
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 120px;
  padding: var(--space-4);
  background: var(--bg-glass);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

.stat-number {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 700;
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* 响应式Hero区域 */
@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero-content {
    padding: 0 var(--space-4);
  }

  .hero-stats {
    gap: var(--space-6);
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* 主要内容区域 - 现代化布局 */
.main-content {
  padding-top: 80px; /* 为固定头部留出空间 */
  position: relative;
}

.content-section {
  padding: var(--space-20) 0;
  position: relative;
}

.content-section:first-child {
  padding-top: var(--space-12);
}

.content-section:last-child {
  padding-bottom: var(--space-12);
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--space-4);
  position: relative;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 内容网格 */
.content-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.content-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.content-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 响应式内容区域 */
@media (max-width: 768px) {
  .main-content {
    padding-top: 60px;
  }

  .content-section {
    padding: var(--space-16) 0;
  }

  .content-section:first-child {
    padding-top: var(--space-8);
  }

  .content-section:last-child {
    padding-bottom: var(--space-8);
  }

  .section-header {
    margin-bottom: var(--space-12);
  }

  .content-grid {
    gap: var(--space-6);
  }
}

/* 卡片和组件布局优化 */
.card,
.feature-card,
.product-card,
.service-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.feature-card {
  text-align: center;
  padding: var(--space-8);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--text-primary);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 确保图片响应式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* 按钮组响应式 */
.hero-actions,
.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* WordPress区块响应式优化 */
.wp-block-group {
  width: 100%;
  box-sizing: border-box;
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.wp-block-column {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column;
    gap: var(--space-4);
  }

  .wp-block-column {
    flex: none;
    width: 100%;
  }
}

.wp-block-cover {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.wp-block-cover .wp-block-cover__inner-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* WordPress按钮样式覆盖 */
.wp-block-button .wp-block-button__link {
  background: var(--primary-gradient) !important;
  border-radius: var(--radius-lg) !important;
  padding: var(--space-4) var(--space-8) !important;
  font-weight: 600 !important;
  transition: all var(--transition-normal) !important;
  border: none !important;
}

.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-glow-cyan) !important;
}

/* 对齐类优化 */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignwide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1240px) {
  .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* 可编辑模式下的header和footer布局修复 */
.editable-header-wrapper {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  /* top和z-index由管理员工具栏相关规则处理 */
}

.editable-header-wrapper .wp-block-group {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(10, 10, 15, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3) !important;
}

.editable-header-wrapper .wp-block-group > .wp-block-group {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.editable-footer-wrapper {
  width: 100%;
  margin-top: auto;
}

.editable-footer-wrapper .wp-block-group {
  width: 100%;
  margin: 0;
}

/* 确保可编辑模式下的导航正确显示 */
.editable-header-wrapper .wp-site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.editable-header-wrapper .wp-block-navigation {
  margin: 0;
}

.editable-header-wrapper .wp-block-navigation ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editable-header-wrapper .wp-block-navigation li {
  margin: 0;
}

.editable-header-wrapper .wp-block-navigation a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
}

.editable-header-wrapper .wp-block-navigation a:hover {
  color: var(--accent-primary);
}

/* 响应式修复 */
@media (max-width: 768px) {
  .editable-header-wrapper .wp-block-group > .wp-block-group {
    padding: 12px 16px;
    min-height: 56px;
    flex-direction: column;
    gap: 12px;
  }

  .editable-header-wrapper .wp-block-navigation ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 修复页面内容的顶部间距 */
body.admin-bar.has-editable-header .main-content,
body.admin-bar.has-editable-header #page > *:first-child {
  margin-top: 96px; /* 32px(管理员工具栏) + 64px(header) */
}

body:not(.admin-bar).has-editable-header .main-content,
body:not(.admin-bar).has-editable-header #page > *:first-child {
  margin-top: 64px; /* 仅header高度 */
}

@media (max-width: 768px) {
  body.admin-bar.has-editable-header .main-content,
  body.admin-bar.has-editable-header #page > *:first-child {
    margin-top: 102px; /* 46px(移动端管理员工具栏) + 56px(移动端header) */
  }

  body:not(.admin-bar).has-editable-header .main-content,
  body:not(.admin-bar).has-editable-header #page > *:first-child {
    margin-top: 56px; /* 移动端仅header高度 */
  }
}

/* 可编辑模式下的特殊样式 */
.site-header-editable,
.site-footer-editable {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px 20px !important;
}

.site-header-editable .wp-block-group,
.site-footer-editable .wp-block-group {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* 确保可编辑模式下的导航不会左对齐 */
.editable-header-wrapper .wp-block-group {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

.editable-footer-wrapper .wp-block-columns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 48px !important;
}

/* 防止编辑器中的布局问题 */
.wp-block-group.site-header-editable > .wp-block-group,
.wp-block-group.site-footer-editable > .wp-block-columns {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* 修复编辑器中的对齐问题 */
.editor-styles-wrapper .site-header-editable,
.editor-styles-wrapper .site-footer-editable {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 确保在编辑器中也保持正确的布局 */
.wp-site-blocks .editable-header-wrapper,
.wp-site-blocks .editable-footer-wrapper {
  width: 100% !important;
  margin: 0 !important;
}

.wp-site-blocks .editable-header-wrapper .wp-block-group,
.wp-site-blocks .editable-footer-wrapper .wp-block-group {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* 修复页面内容区域背景色问题 */
.wp-site-blocks {
  background-color: var(--bg-dark) !important;
}

/* 确保页面标题区域背景色与内容一致 */
.wp-block-group.has-card-bg-background-color,
.wp-block-group.features-section {
  background-color: var(--bg-card) !important;
}

/* 移除可能导致多余header背景的样式 */
.wp-site-blocks > .wp-block-group:first-child {
  background: transparent !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 修复可编辑模式下页面顶部的多余背景 */
.editable-header-wrapper + .wp-block-group,
.editable-header-wrapper ~ .wp-site-blocks > .wp-block-group:first-child {
  background: transparent !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 确保页面内容从正确位置开始 */
body.has-editable-header .wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 修复可能的WordPress区块背景色冲突 */
.wp-block-group.site-header-editable {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
}

/* 确保主要内容区域背景正确 */
.main-content,
#main {
  background-color: var(--bg-dark) !important;
}

/* 修复footer版权信息居中和背景色 */
.site-footer-editable .wp-block-group:last-child,
.editable-footer-wrapper .wp-block-group:last-child {
  text-align: center !important;
  justify-content: center !important;
  background-color: transparent !important;
}

.site-footer-editable .wp-block-group:last-child p,
.editable-footer-wrapper .wp-block-group:last-child p {
  margin: 0 auto !important;
  text-align: center !important;
  width: 100% !important;
}

/* 确保footer整体背景色一致 */
.site-footer-editable,
.editable-footer-wrapper .wp-block-group {
  background-color: var(--bg-card) !important;
}

/* 修复WordPress区块的居中对齐 */
.wp-block-group[style*="justify-content:center"],
.wp-block-group.has-text-align-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.wp-block-group[style*="justify-content:center"] p,
.wp-block-group.has-text-align-center p {
  text-align: center !important;
  margin: 0 auto !important;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: bold;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  margin: 0 auto var(--space-sm);
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0%, 20% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* 打字机效果 */
.typing-effect {
  position: relative;
}

.typing-effect::after {
  content: '|';
  animation: blink 1s infinite;
}

.typing-effect.typing-complete::after {
  display: none;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* 区域样式 */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: bold;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-actions {
  margin-top: var(--space-2xl);
}

/* 特色功能区域 */
.features-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(15, 15, 35, 0.8) 100%);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: bold;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 产品区域 */
.products-section {
  padding: var(--space-3xl) 0;
}

.product-card {
  overflow: hidden;
  position: relative;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  aspect-ratio: 16/10;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.premium-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--secondary-gradient);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: bold;
}

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

.product-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-lg);
  font-weight: bold;
  transition: color var(--transition-fast);
}

.product-title a:hover {
  color: var(--accent-cyan);
}

.product-excerpt {
  color: var(--text-secondary);
  margin: var(--space-md) 0;
  line-height: 1.6;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.product-price {
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--accent-green);
}

.product-price.free {
  color: var(--accent-cyan);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.stars {
  color: var(--accent-yellow);
}

.rating-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.product-actions {
  display: flex;
  gap: var(--space-md);
}

.product-actions .btn {
  flex: 1;
  text-align: center;
}

/* 支付模态框样式 */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: var(--space-md);
}

.payment-modal.active {
  display: flex;
  opacity: 1;
}

/* 防止背景滚动 */
body.modal-open {
  overflow: hidden;
}

.payment-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.payment-modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-header h3 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.payment-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-2xl);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.payment-close:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.payment-body {
  padding: var(--space-lg);
}

.payment-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 产品摘要 */
.product-summary {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
}

.product-summary .product-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.product-summary .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary .product-details {
  flex: 1;
}

.product-summary h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text-primary);
  font-size: var(--text-lg);
}

.product-summary .product-price {
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--accent-green);
  margin: 0;
}

/* 支付表单 */
.payment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--text-sm);
}

.form-group input {
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-help {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.field-error {
  color: var(--accent-red);
  font-size: var(--text-xs);
  margin-top: var(--space-xs);
}

/* 复选框样式 */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
}

/* 支付方式 */
.payment-methods {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.method-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-glass);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.method-item:hover,
.method-item.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.1);
}

.method-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.method-item span {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}

/* 二维码区域 */
.qr-code-section {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.qr-code-container {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

#qr-code {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.qr-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.qr-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.qr-tips {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.qr-amount {
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--accent-green);
}

/* 支付状态 */
.payment-status {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.status-waiting,
.status-success,
.status-failed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  font-weight: 500;
}

.status-waiting {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
}

.status-success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
}

.status-failed {
  background: rgba(255, 71, 87, 0.1);
  color: var(--accent-red);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* 加载动画 */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 支付门禁样式 */
.payment-gate {
  background: var(--bg-card);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-lg) 0;
}

.payment-gate-content h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.payment-gate-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.payment-gate .product-info {
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.payment-gate .product-info h4 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--text-primary);
}

.payment-gate .price {
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--accent-green);
}

/* 底部样式 */
.site-footer {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-section h3 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

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

.footer-menu li {
  margin-bottom: var(--space-sm);
}

.footer-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--accent-cyan);
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.icp-info {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icp-info a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-xs);
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* 移动端底部导航 */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: none; /* 默认隐藏 */
  justify-content: space-around;
  padding: var(--space-sm) 0;
  z-index: 1000;
}

/* 只在移动设备上显示底部导航 */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  /* 为底部导航留出空间 */
  body {
    padding-bottom: 70px;
  }
}

/* 确保桌面端完全隐藏 */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* 隐藏WordPress管理员工具栏中的不需要按钮 */
#wp-admin-bar-site-editor,
#wp-admin-bar-customize,
#wp-admin-bar-themes {
  display: none !important;
}

/* 隐藏前台编辑按钮 */
.edit-link,
.post-edit-link {
  display: none !important;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  min-width: 60px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
  color: var(--accent-cyan);
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 2000;
  pointer-events: none; /* 不拦截点击 */
}

.scroll-progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.1s ease;
  pointer-events: none; /* 不拦截点击 */
}

/* 粒子背景 */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 确保粒子背景不阻挡交互 */
.particles-canvas {
  pointer-events: none !important;
  z-index: -1 !important;
}

/* 加载覆盖层 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: none !important; /* 默认隐藏 */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important; /* 确保不阻挡点击事件 */
}

.loading-overlay.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important; /* 只有在active状态时才允许点击事件 */
}

.loading-content {
  text-align: center;
}

.loading-logo {
  margin-bottom: var(--space-lg);
}

.logo-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.logo-circle {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0, 212, 255, 0.3);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: bold;
}

.loading-progress {
  width: 200px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  animation: loading-progress 2s ease-in-out;
}

@keyframes loading-progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.progress-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* 二维码区域 */
.qr-code-section {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.qr-code-container {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

#qr-code {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.qr-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.qr-placeholder svg {
  margin-bottom: var(--space-sm);
}

.qr-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.qr-tips {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.qr-amount {
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--accent-green);
}

/* 支付状态 */
.payment-status {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.status-waiting,
.status-success,
.status-failed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  font-weight: 500;
}

.status-waiting {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
}

.status-success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
}

.status-failed {
  background: rgba(255, 71, 87, 0.1);
  color: var(--accent-red);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.success-icon,
.error-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.success-icon {
  background: var(--accent-green);
  color: white;
}

.error-icon {
  background: var(--accent-red);
  color: white;
}

/* 支付操作 */
.payment-actions {
  display: flex;
  gap: var(--space-md);
}

.payment-actions .btn {
  flex: 1;
}

/* 支付成功动画 */
.payment-success {
  text-align: center;
  padding: var(--space-2xl);
}

.success-animation {
  margin-bottom: var(--space-lg);
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--accent-green);
  stroke-miterlimit: 10;
  margin: 0 auto;
  box-shadow: inset 0px 0px 0px var(--accent-green);
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
  position: relative;
}

.success-checkmark .check-icon {
  width: 56px;
  height: 56px;
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  transform: scale(0);
  animation: scale 0.3s ease-in-out 0.9s both;
}

.check-icon .icon-line {
  height: 2px;
  background: var(--accent-green);
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 1;
}

.check-icon .line-tip {
  top: 19px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.check-icon .line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 30px var(--accent-green); }
}

@keyframes scale {
  0%, 20% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes icon-line-tip {
  0% { width: 0; left: 1px; top: 19px; }
  54% { width: 0; left: 1px; top: 19px; }
  70% { width: 50px; left: -8px; top: 37px; }
  84% { width: 17px; left: 21px; top: 48px; }
  100% { width: 25px; left: 14px; top: 45px; }
}

@keyframes icon-line-long {
  0% { width: 0; right: 46px; top: 54px; }
  65% { width: 0; right: 46px; top: 54px; }
  84% { width: 55px; right: 0px; top: 35px; }
  100% { width: 47px; right: 8px; top: 38px; }
}

/* 加载动画 */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 错误提示 */
.error-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 4000;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.error-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.error-icon {
  font-size: var(--text-lg);
}

.error-message {
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.error-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  margin-left: var(--space-sm);
}

/* 订单确认页面样式 */
.order-confirm-page {
  background: var(--bg-primary);
  min-height: 100vh;
  padding: var(--space-xl) 0;
}

.order-confirm-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-xl);
}

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

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}



.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
}

/* 产品信息区域 */
.product-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-lg);
  align-items: start;
}

/* 订单确认页面产品图片样式 */
.order-confirm-page .product-image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-secondary);
}

.order-confirm-page .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.order-confirm-page .product-placeholder {
  width: 120px;
  height: 120px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.order-confirm-page .product-placeholder .placeholder-icon {
  font-size: 2.5rem;
}

.product-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.product-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.meta-item {
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-pricing {
  text-align: right;
  min-width: 200px;
}

.quantity-control {
  margin-bottom: var(--space-md);
}

.quantity-control label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.quantity-input {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-secondary);
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background-color 0.2s;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

#product-quantity {
  background: var(--bg-card);
  border: none;
  padding: 0.5rem;
  text-align: center;
  color: var(--text-primary);
  width: 50px;
  height: 35px;
}

.price-display, .total-price {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.total-price {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-sm);
}

/* 订单摘要 */
.order-summary {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.summary-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.discount {
  color: #4ade80;
}

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

/* 买家信息区域 */
.buyer-info-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.buyer-form {
  display: grid;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}



.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-top: var(--space-md);
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--accent-primary);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* 提交区域 */
.submit-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  bottom: var(--space-lg);
}

.submit-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.final-price-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.final-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.submit-order {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 200px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .payment-modal-content {
    width: 95%;
    margin: var(--space-md);
  }

  .order-confirm-page {
    padding: var(--space-lg) 0;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .product-card {
    grid-template-columns: 80px 1fr;
    gap: var(--space-md);
  }

  .order-confirm-page .product-image,
  .order-confirm-page .product-placeholder {
    width: 80px;
    height: 80px;
  }

  .order-confirm-page .product-image img {
    width: 100%;
    height: 100%;
  }

  .product-pricing {
    grid-column: 1 / -1;
    margin-top: var(--space-md);
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-md);
    align-items: end;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .submit-container {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .final-price-display {
    align-items: center;
  }

  .submit-order {
    width: 100%;
  }
}

/* 支付页面样式 */
.payment-page {
  background: var(--bg-primary);
  min-height: 100vh;
  padding: var(--space-xl) 0;
}

.payment-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-xl);
}

.order-info-section,
.payment-methods-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-no {
  font-weight: 600;
  color: var(--text-primary);
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-paid {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.product-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.product-details {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.buyer-info {
  margin-bottom: var(--space-lg);
}

.buyer-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.buyer-info p {
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.total-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-amount .label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.total-amount .amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.payment-methods {
  display: grid;
  gap: var(--space-md);
}

.payment-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method:hover {
  border-color: var(--accent-primary);
}

.payment-method.active {
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
}

.method-icon img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.method-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.method-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.method-check {
  margin-left: auto;
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: bold;
}

.payment-action {
  text-align: center;
}

.pay-now-btn {
  padding: var(--space-md) var(--space-xxl);
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 300px;
}

.qr-payment-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.qr-container {
  margin-bottom: var(--space-xl);
}

#qr-code-display {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin-bottom: var(--space-lg);
}

.qr-loading {
  color: var(--text-secondary);
  font-style: italic;
}

.qr-tips {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.qr-amount {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.payment-status {
  margin-bottom: var(--space-lg);
}

.status-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.payment-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

@media (max-width: 768px) {
  .payment-container {
    margin: var(--space-md);
  }

  .order-header {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .product-details {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .payment-method {
    padding: var(--space-md);
  }

  .pay-now-btn {
    width: 100%;
    min-width: auto;
  }

  .payment-actions {
    flex-direction: column;
  }
}

/* 支付弹窗样式 */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.payment-modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.payment-body {
  padding: var(--space-lg);
  text-align: center;
}

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

.product-info h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.payment-amount {
  color: var(--accent-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.qr-container {
  margin-bottom: var(--space-lg);
}

#qr-code-display {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin-bottom: var(--space-md);
}

.qr-loading {
  color: var(--text-secondary);
  font-style: italic;
}

.qr-tips {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.payment-status {
  margin-bottom: var(--space-lg);
}

.status-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.payment-footer {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 支付成功弹窗样式 */
.success-header {
  text-align: center;
  padding: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.success-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.success-body {
  padding: var(--space-lg);
  text-align: center;
}

.success-body p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.download-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.download-content h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.content-preview {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
  width: 100%;
}

.success-footer {
  display: flex;
  justify-content: center;
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .payment-modal-content {
    width: 95%;
    margin: var(--space-md);
  }

  .payment-footer {
    flex-direction: column;
  }
}

  .product-summary {
    flex-direction: column;
    text-align: center;
  }

  .product-summary .product-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .payment-methods {
    flex-direction: column;
  }

  .payment-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* 首页特定样式 - 修复多余背景问题 */
/* 隐藏首页的页面标题（避免重复显示） - 但不影响模板部件内容 */
body.home .entry-title,
body.home .page-title {
  display: none !important;
}

/* 只隐藏页面内容中的第一个标题，不影响模板部件 */
body.home .wp-site-blocks > .wp-block-group > h1.wp-block-heading:first-child {
  display: none !important;
}

/* 移除首页第一个区块的可能多余样式 */
body.home .main-content > .wp-block-group:first-child.has-dark-bg-background-color {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 移除首页开头的空白区块 */
body.home .main-content > .wp-block-group:first-child:empty,
body.home .main-content > .wp-block-group:first-child:not(:has(*:not(br))) {
  display: none !important;
}

/* 确保首页内容正确开始 */
body.home .main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.home .main-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 隐藏页面内容中的重复header区块 */
body.home .wp-site-blocks .wp-block-group.site-header-editable,
body.home .wp-site-blocks .wp-block-template-part[data-slug="header"],
body.home .main-content .wp-block-group.site-header-editable {
  display: none !important;
}

/* 移除可能的多余深色背景 */
body.home .main-content > .wp-block-group:first-child.has-dark-bg-background-color:empty {
  display: none !important;
}

/* 产品页面专用样式 */
.product-page {
  background: var(--bg-primary);
  min-height: 100vh;
}

.product-hero {
  background: transparent;
  padding: 60px 0;
}

.product-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.product-gallery {
  position: relative;
}

.product-main-image {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.main-product-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.product-placeholder {
  width: 100%;
  height: 400px;
  background: var(--bg-glass);
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  text-align: center;
  color: var(--text-secondary);
}

.placeholder-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.placeholder-text {
  font-size: 18px;
  font-weight: 500;
}

.product-summary {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.product-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin: 0;
  padding: 0 8px;
}

.product-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  padding: 0 8px;
}

.product-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg-glass);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1.2;
  padding: 4px 0;
}

.info-label {
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 80px;
  line-height: 1.2;
}

.info-value {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}



.product-actions {
  margin: 0;
  padding: 24px;
  background: var(--bg-glass);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.btn-purchase {
  padding: 20px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  min-width: 250px;
  justify-content: center;
  transition: all 0.4s ease;
  text-decoration: none !important;
  border: none;
  cursor: pointer !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  pointer-events: auto !important;
  z-index: 10;
}

.btn-purchase::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 ease;
}

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

.btn-purchase:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
  cursor: pointer !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-blue) 100%);
  color: white;
}

/* 确保购买按钮在所有情况下都能正常工作 */
.product-actions .btn-purchase {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 100 !important;
}

.product-actions .btn-purchase:hover {
  pointer-events: auto !important;
}

/* 确保按钮文本和图标不会阻挡点击 */
.btn-purchase .btn-icon,
.btn-purchase .btn-text {
  pointer-events: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green) 0%, #00cc66 100%);
  color: white;
}

.btn-text {
  font-weight: 700;
  line-height: 1.2;
}

.btn-icon {
  font-size: 1.2rem;
}

.product-details {
  padding: 60px 0;
}

.product-tabs {
  background: var(--bg-glass);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.tab-nav {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.tab-button {
  flex: 1;
  padding: 16px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1rem;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.tab-button:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.tab-button:active {
  transform: translateY(1px);
}

.tab-button.active {
  color: var(--accent-cyan);
  background: var(--bg-glass);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-cyan);
}

.tab-content {
  padding: 40px;
}

.tab-pane {
  display: none !important;
}

.tab-pane.active {
  display: block !important;
}

.content-section h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.features-list,
.requirements-list,
.changelog-list {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.features-list br,
.requirements-list br,
.changelog-list br {
  margin-bottom: 8px;
}

/* 优化列表项显示 */
.features-list,
.requirements-list,
.changelog-list {
  white-space: pre-line;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-title {
    font-size: 2.2rem;
  }

  .product-description {
    font-size: 1.1rem;
  }



  .btn-purchase {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
    min-width: auto;
  }

  .tab-nav {
    flex-direction: column;
  }

  .tab-content {
    padding: 24px;
  }

  .product-summary {
    gap: 24px;
    padding: 16px;
  }

  .product-info-list,
  .product-actions {
    padding: 20px;
  }

  .product-title,
  .product-description {
    padding: 0 4px;
  }
}

/* 领券购买模态框样式 */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.modal-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 32px;
}

.modal-footer {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* 订单产品信息 */
.order-product-info h4,
.buyer-info-section h4,
.order-guarantee h4 {
  color: #ff6b35;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border-radius: 25px;
  display: inline-block;
}

.product-summary-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-glass);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.product-image-small {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.order-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  font-size: 2rem;
}

.product-details-small {
  flex: 1;
}

.product-details-small h5 {
  margin: 0 0 8px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.product-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.product-specs span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.product-price-order {
  display: flex;
  align-items: center;
  gap: 12px;
}

.original-price {
  color: var(--text-secondary);
  text-decoration: line-through;
  font-size: 1rem;
}

.coupon-discount {
  color: #ff6b35;
  font-weight: 600;
  font-size: 1rem;
}

.final-price {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.3rem;
}

/* 买家信息表单 */
.buyer-info-section {
  margin-bottom: 24px;
}

.order-form {
  background: var(--bg-glass);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.required {
  color: #ff6b35;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-group input::placeholder {
  color: var(--text-secondary);
}

/* 保证信息 */
.order-guarantee {
  margin-bottom: 24px;
}

.guarantee-items {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: var(--bg-glass);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.guarantee-icon {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.2rem;
}

/* 订单总计 */
.order-total {
  background: var(--bg-glass);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--text-primary);
}

.total-row.discount {
  color: #ff6b35;
}

.total-row.final {
  border-top: 1px solid var(--border-color);
  margin-top: 12px;
  padding-top: 16px;
  font-weight: 700;
  font-size: 1.2rem;
}

.final-amount {
  color: var(--accent-green);
  font-size: 1.4rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .product-summary-card {
    flex-direction: column;
    text-align: center;
  }

  .product-image-small {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .guarantee-items {
    flex-direction: column;
    gap: 12px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* ===== CSS点击问题修复 ===== */

/* 确保所有覆盖层在非激活状态下不阻挡点击 */
.search-overlay:not(.active),
.mobile-nav:not(.active) {
  pointer-events: none !important;
  display: none !important;
}

/* 支付模态框特殊处理 - 不强制隐藏，让JavaScript控制 */
.payment-modal:not(.active) {
  pointer-events: none !important;
}

/* ========================================
   模板部件内容显示修复
   ======================================== */

/* 确保模板部件容器正常显示 */
.template-part-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  min-height: 50px !important;
  padding: 20px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 8px !important;
  margin: 20px 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 确保模板部件内的所有内容正常显示 */
.template-part-container *,
.template-part-container p,
.template-part-container .wp-block-paragraph,
.template-part-container h1,
.template-part-container h2,
.template-part-container h3,
.template-part-container div {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #333 !important;
  position: relative !important;
}

/* 特别确保段落内容显示 */
.template-part-container p,
.template-part-container .wp-block-paragraph {
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  margin: 1rem 0 !important;
  padding: 15px !important;
  background: #f8f9fa !important;
  border-left: 4px solid #007cba !important;
  border-radius: 4px !important;
}

/* 调试样式 - 让容器更明显 */
.template-part-container::before {
  content: "📄 模板部件内容区域" !important;
  display: block !important;
  font-size: 0.9rem !important;
  color: #666 !important;
  margin-bottom: 10px !important;
  padding: 5px 10px !important;
  background: #e9ecef !important;
  border-radius: 4px !important;
  font-weight: bold !important;
}

/* 强制覆盖任何可能隐藏内容的样式 */
body.home .template-part-container,
body.home .template-part-container *,
body.home .template-part-container p,
body.home .template-part-container .wp-block-paragraph {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ========================================
   WordPress官方标准首页样式
   ======================================== */

/* 基础布局 */
.wp-site-main {
  width: 100%;
  overflow-x: hidden;
}

/* 全宽区块 */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 容器内边距 */
.wp-block-group__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 列布局 */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.wp-block-column {
  flex: 1;
  min-width: 0;
}

/* 按钮样式 */
.wp-block-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.wp-block-button {
  display: inline-block;
}

.wp-block-button__link {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  border: 2px solid currentColor;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 标题样式 */
.wp-block-heading {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .wp-block-group__inner-container {
    padding: 0 15px;
  }

  .wp-block-buttons {
    flex-direction: column;
    align-items: center;
  }

  .wp-block-button {
    width: 100%;
    max-width: 300px;
  }

  .wp-block-button__link {
    width: 100%;
    text-align: center;
  }

  /* 移动端字体调整 */
  h1.wp-block-heading {
    font-size: 2rem !important;
  }

  h2.wp-block-heading {
    font-size: 1.75rem !important;
  }

  h3.wp-block-heading {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .wp-block-group__inner-container {
    padding: 0 10px;
  }

  h1.wp-block-heading {
    font-size: 1.75rem !important;
  }
}

/* 确保首页内容正常显示 */
body.home .wp-site-main,
body.home .wp-block-group,
body.home .wp-block-columns,
body.home .wp-block-column,
body.home .wp-block-heading,
body.home .wp-block-buttons,
body.home .wp-block-button {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.home .wp-block-columns {
  display: flex !important;
}

body.home .wp-block-buttons {
  display: flex !important;
}

/* ========================================
   绿巨人VSCode产品页面专用样式
   ======================================== */

/* 产品标题动画效果 */
.wp-site-main h1 {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 产品截图悬停效果 */
.wp-site-main img {
  transition: all 0.3s ease;
}

.wp-site-main img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
}

/* 使用步骤样式优化 */
.usage-steps .step-item {
  transition: all 0.3s ease;
}

.usage-steps .step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* 步骤编号动画 */
.step-item span {
  transition: all 0.3s ease;
}

.step-item:hover span {
  transform: scale(1.1);
}

/* FAQ项目悬停效果 */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* 购买按钮特殊效果 */
.wp-block-button__link[href*="绿巨人vscode"] {
  position: relative;
  overflow: hidden;
}

.wp-block-button__link[href*="绿巨人vscode"]: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;
}

.wp-block-button__link[href*="绿巨人vscode"]:hover:before {
  left: 100%;
}

.wp-block-button__link[href*="绿巨人vscode"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4) !important;
}

/* 代码样式 */
code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e83e8c;
  border: 1px solid #e9ecef;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .wp-site-main h1 {
    font-size: 2.5rem !important;
  }

  .usage-steps .step-item {
    margin-bottom: 1rem;
  }

  .step-item div {
    flex-direction: column;
    text-align: center;
  }

  .step-item span {
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }

  .wp-block-columns {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .wp-block-group__inner-container {
    padding: 0 15px;
  }

  .wp-site-main section {
    padding: 60px 15px !important;
  }

  .wp-site-main h2 {
    font-size: 2rem !important;
  }

  .wp-block-button__link {
    font-size: 1rem !important;
    padding: 12px 20px !important;
  }
}

/* 特殊强调样式 */
.highlight-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.highlight-success {
  background: linear-gradient(135deg, #d4edda, #a8e6cf);
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

/* 产品特色卡片阴影渐变 */
.wp-block-column .wp-block-group:hover {
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.2) !important;
}

/* ========================================
   双产品展示页面样式
   ======================================== */

/* 产品展示卡片 */
.product-showcase {
  transition: all 0.3s ease;
}

.product-showcase:hover {
  transform: translateY(-5px);
}

/* 产品信息区域 */
.product-info {
  padding: 1rem;
}

.product-info .feature-list {
  list-style: none;
  padding: 0;
}

/* 软件列表网格 */
.software-grid {
  display: grid;
  gap: 1rem;
}

.software-grid > div {
  transition: all 0.3s ease;
}

.software-grid > div:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 版本更新历史样式 */
.version-history {
  border-left: 3px solid #17a2b8;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* 购买卡片特殊效果 */
.purchase-card {
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.purchase-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.4);
}

/* 产品图标动画 */
.product-icon {
  transition: all 0.3s ease;
}

.product-showcase:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
}

/* 特色标签 */
.feature-tag {
  display: inline-block;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.25rem;
}

/* ========================================
   商务风格色彩系统 - 专业稳重
   ======================================== */

/* 主品牌色 - 深蓝商务色 */
.youth-tech-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

/* 产品色 - 专业绿 */
.youth-tech-green {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

/* 辅助色 - 商务蓝 */
.youth-tech-blue {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* 商务风格全局颜色覆盖 */
body.home .wp-site-main {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --success-color: #065f46;
  --success-light: #10b981;
  --info-color: #1e40af;
  --info-light: #3b82f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
}

/* 响应式优化 - 双产品 */
@media (max-width: 768px) {
  .product-showcase .wp-block-columns {
    flex-direction: column;
  }

  .product-showcase .wp-block-column[style*="flex-basis: 40%"],
  .product-showcase .wp-block-column[style*="flex-basis: 60%"] {
    flex-basis: 100% !important;
  }

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

  .purchase-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .product-info h3 {
    font-size: 1.8rem !important;
  }

  .software-grid > div {
    flex-direction: column;
    text-align: center;
  }

  .software-grid > div span {
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }
}

/* 滚动动画 */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 产品卡片进入动画 */
.product-showcase:nth-child(odd) {
  animation: slideInFromLeft 0.8s ease-out;
}

.product-showcase:nth-child(even) {
  animation: slideInFromRight 0.8s ease-out;
}

/* 按钮组合样式 */
.product-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.product-buttons .wp-block-button {
  flex: 1;
  min-width: 150px;
}

/* 版本标签 */
.version-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* 重要提醒样式 */
.important-notice {
  background: linear-gradient(135deg, #ffc107, #ff8c00);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* ========================================
   商务风格颜色覆盖 - 保持现有布局
   ======================================== */

/* Hero区域商务风格 */
body.home section[style*="667eea"] {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
}

/* 绿色产品区域 */
body.home section [style*="#28a745"],
body.home [style*="28a745"] {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%) !important;
  color: white !important;
}

/* 蓝色产品区域 */
body.home section [style*="#17a2b8"],
body.home [style*="17a2b8"] {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
  color: white !important;
}

/* 按钮商务风格 */
body.home .wp-block-button__link[style*="#28a745"] {
  background: linear-gradient(135deg, #065f46, #10b981) !important;
  border: none !important;
}

body.home .wp-block-button__link[style*="#17a2b8"] {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  border: none !important;
}

body.home .wp-block-button__link[style*="#667eea"] {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
  border: none !important;
}

/* 文字颜色商务化 */
body.home h1, body.home h2, body.home h3 {
  color: var(--text-primary, #1f2937) !important;
}

body.home p, body.home li {
  color: var(--text-secondary, #6b7280) !important;
}

/* 白色背景区域保持专业感 */
body.home [style*="background: white"],
body.home [style*="background: #ffffff"] {
  background: var(--bg-white, #ffffff) !important;
  border: 1px solid #e5e7eb !important;
}

/* 浅色背景区域 */
body.home [style*="background: #f8f9fa"] {
  background: var(--bg-light, #f8fafc) !important;
}

/* 边框颜色商务化 */
body.home [style*="border-left: 4px solid #28a745"] {
  border-left-color: var(--success-color, #065f46) !important;
}

body.home [style*="border-left: 4px solid #17a2b8"] {
  border-left-color: var(--info-color, #1e40af) !important;
}

body.home [style*="border-left: 4px solid #dc3545"] {
  border-left-color: #dc2626 !important;
}

/* 链接颜色 */
body.home a {
  color: var(--primary-color, #1e3a8a) !important;
}

body.home a:hover {
  color: var(--primary-light, #3b82f6) !important;
}

/* 确保主要内容区域始终可点击 */
.main-content,
.site-content,
.entry-content,
.wp-site-blocks,
.container {
  pointer-events: auto !important;
  position: relative !important;
}

/* 确保所有交互元素可点击 */
button,
a,
input,
textarea,
select,
.btn,
.nav-menu a,
.mobile-menu a {
  pointer-events: auto !important;
}

/* 确保卡片和产品项可点击 */
.card,
.product-card,
.feature-card {
  pointer-events: auto !important;
}

/* 修复可能的z-index冲突 */
.main-content {
  z-index: 1 !important;
}

.site-content {
  z-index: 1 !important;
}

/* 确保底部区域可点击 */
.site-footer,
.footer-main,
.footer-bottom {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
}
