/* FLUX.1 Krea Online - 主样式文件 */

/* ===== 基础重置和变量 - 高端颜值配色 ===== */
:root {
  /* 主色调 - 深邃蓝紫 */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  
  /* 辅助色 - 科技紫 */
  --secondary-color: #8b5cf6;
  --secondary-dark: #7c3aed;
  --secondary-light: #a78bfa;
  --secondary-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  
  /* 强调色 - 电光蓝 */
  --accent-color: #06b6d4;
  --accent-dark: #0891b2;
  --accent-light: #22d3ee;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  
  /* 背景色 - 极简灰白 */
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-dark: #0f172a;
  
  /* 文字颜色 - 高对比度 */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --text-white: #ffffff;
  
  /* 边框颜色 */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-accent: rgba(99, 102, 241, 0.2);
  
  /* 阴影 - 增强版 */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  
  /* 圆角 */
  --border-radius: 0.75rem;
  --border-radius-lg: 1.25rem;
  --border-radius-xl: 1.5rem;
  
  /* 动画 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  /* 字体渲染优化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}

/* ===== 通用组件样式 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  border: none;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--bg-glass);
  color: var(--primary-color);
  border: 2px solid var(--border-accent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent-gradient);
  color: var(--text-white);
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 网格布局系统 ===== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== 卡片组件 - 高端玻璃态设计 ===== */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 页头导航 ===== */
.header {
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-accent);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* Language Switcher styles removed - English only site */

/* Logo optimization for image + text combination */
.logo {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}

.logo img {
  height: 40px;
  width: 40px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.1);
}

.logo:hover img {
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
  transform: scale(1.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.logo span {
  margin-left: 0.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.logo:hover span {
  color: var(--accent-color);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

/* ===== Hero区域 ===== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8rem 0 6rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  /* 增强字体清晰度和对比度 */
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.5);
  /* 字体渲染优化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  /* 确保在紫色背景上有足够对比度 */
  filter: contrast(1.1) brightness(1.05);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 特性网格 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* ===== 高端特效和动画 ===== */
.gradient-text {
  /* 基础白色文字，确保在所有浏览器中都清晰可见 */
  color: #ffffff !important;
  font-weight: 800;
  /* 多层阴影增强对比度和立体感 */
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.2);
  /* 字体渲染优化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  /* 增强对比度 */
  filter: contrast(1.15) brightness(1.1);
}

/* 支持background-clip的浏览器使用渐变效果 */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 30%, #ffffff 70%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 保持阴影作为备用 */
    text-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.4),
      0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--primary-gradient);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
  filter: blur(10px);
}

.glow-effect:hover::before {
  opacity: 0.7;
}

.floating-animation {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: var(--transition-slow);
}

.shine-effect:hover::before {
  left: 100%;
}

.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
}

.neon-border {
  border: 2px solid var(--primary-color);
  box-shadow: 
    0 0 5px var(--primary-color),
    0 0 10px var(--primary-color),
    0 0 15px var(--primary-color),
    inset 0 0 5px var(--primary-color);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== 图片样式 ===== */
.img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* 响应式图片容器 */
.responsive-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.responsive-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* 图片懒加载样式 */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[data-src].loaded {
  opacity: 1;
}

/* 优雅的图片占位符 */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 50%, var(--bg-secondary) 100%);
  background-size: 400% 400%;
  animation: shimmer 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
}

.img-placeholder::after {
  content: '🖼️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.3;
  color: var(--text-secondary);
}

@keyframes shimmer {
  0%, 100% { 
    background-position: 0% 50%; 
    opacity: 0.8;
  }
  50% { 
    background-position: 100% 50%; 
    opacity: 1;
  }
}

.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.img-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.img-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ===== 文本样式 ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ===== 间距工具类 ===== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* ===== Blog文章样式优化 ===== */
.content {
  line-height: 1.8;
  color: var(--text-primary);
}

.content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem 0;
  color: var(--text-primary);
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  color: var(--text-primary);
}

.content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
}

.content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.content ul, .content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.content strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* 代码块优化样式 */
.code-block {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  position: relative;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0.5;
}

.code-block h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* 示例块样式 */
.example, .examples-grid .example {
  background: linear-gradient(135deg, var(--bg-glass), rgba(99, 102, 241, 0.02));
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.example:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.example::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}

.example:hover::before {
  opacity: 1;
}

.example h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.example p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.example ul {
  margin: 1rem 0 0 0;
  padding-left: 1.5rem;
}

.example li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* 对比样式 */
.comparison {
  margin: 2rem 0;
}

.comparison > div {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  position: relative;
  transition: var(--transition);
}

.comparison > div:first-child {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.02));
  border-color: rgba(239, 68, 68, 0.2);
}

.comparison > div:last-child {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
  border-color: rgba(34, 197, 94, 0.2);
}

.comparison h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

/* 表格样式 */
.content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.content thead {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.content thead th {
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.content tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.content tbody tr:hover {
  background: rgba(99, 102, 241, 0.02);
  transform: translateX(2px);
}

.content tbody td {
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.content tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* 文章元信息样式 */
.meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.meta time {
  font-weight: 500;
}

.meta span {
  opacity: 0.7;
}

/* 相关文章样式 */
.related-articles {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-articles h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.related-articles .card {
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.related-articles .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.related-articles .card:hover .card-title {
  color: var(--primary-color);
}

/* 引用块样式 */
.content blockquote {
  border-left: 4px solid var(--primary-color);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), transparent);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  position: relative;
}

.content blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: -0.5rem;
  left: 0.5rem;
  font-family: serif;
}

.content blockquote p {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .content h2 {
    font-size: 1.75rem;
  }
  
  .content h3 {
    font-size: 1.35rem;
  }
  
  .content h4 {
    font-size: 1.2rem;
  }
  
  .content p {
    font-size: 1rem;
  }
  
  .comparison {
    display: block !important;
  }
  
  .comparison > div {
    margin-bottom: 1rem;
  }
  
  .content table {
    font-size: 0.85rem;
  }
  
  .content thead th,
  .content tbody td {
    padding: 0.75rem;
  }
}