/* ===== RiTheme官网首页样式 ===== */

/* 首页容器 */
.ritheme-homepage {
  background-color: var(--rizhuti-bg-light);
}

/* ===== 黑夜模式变量覆盖 ===== */
body.dark-theme .ritheme-homepage,
body.theme-dark .ritheme-homepage,
[data-theme="dark"] .ritheme-homepage {
  --rizhuti-text-primary: #e8e8e8;
  --rizhuti-text-secondary: #b8b8b8;
  --rizhuti-text-muted: #888888;
  --rizhuti-text-light: #ffffff;
  
  --rizhuti-bg-primary: #1a1a1a;
  --rizhuti-bg-secondary: #2d2d2d;
  --rizhuti-bg-light: #1a1a1a;
  --rizhuti-bg-dark: #0d1117;
  
  --rizhuti-border-color: #3d3d3d;
  --rizhuti-border-light: #2d2d2d;
  
  background-color: var(--rizhuti-bg-light);
}

/* 英雄横幅区域 */
body.home .hero-section {
  position: relative;
  color: white;
  padding: 0 0 60px; /* 顶部无间隙衔接导航 */
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.hero-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 幻灯片样式调整 */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider .zib-slider {
  height: 100%;
}

.hero-slider .new-swiper {
  height: 100%;
}

.hero-slider .swiper-slide {
  height: 100%;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 修复：直接针对子比主题的幻灯片结构 */
.hero-slider-container .zib-slider {
  height: 100%;
}

.hero-slider-container .new-swiper {
  height: 100%;
}

.hero-slider-container .swiper-slide {
  height: 100%;
}

.hero-slider-container .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 默认背景（当没有幻灯片时） */
.hero-default-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 1;
}

.hero-default-bg::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

/* 内容覆盖层 */
.hero-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 11;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-title strong {
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary {
  background: #ff6b35;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.hero-actions .btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.discount-tag {
  background: #ff4757;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vip-badge {
  background: linear-gradient(45deg, #ff6b35, #ff8e53);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 弧形连接区域 */
.hero-curve-section {
  position: relative;
  background: transparent;
  margin-top: 0;
  z-index: 5;
  height: 200px;
  overflow: hidden;
}

/* 弧形设计 - 纯CSS半圆（180度旋转）- 置于产品区域下方 */
.hero-curve {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(-1);
  width: 200%;
  height: 600px;
  background: transparent; /* 初始透明 */
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 -4px 8px rgba(0, 0, 0, 0.1));
  opacity: 0;
  transition: opacity .35s ease;
}

/* 颜色变量就绪后再显示背景 */
body.curve-ready .hero-curve {
  background: linear-gradient(135deg, var(--slide-color-1, #667eea) 0%, var(--slide-color-2, #764ba2) 100%);
  opacity: 1;
}

/* 自适应幻灯片颜色的CSS变量 */
:root {
  --slide-color-1: #667eea;
  --slide-color-2: #764ba2;
}

/* 弧形动画效果 */
.hero-curve::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* 主题展示区域 - 放在顶层 */
.ritheme-homepage .themes-section {
  padding: 80px 0 80px;
  background: var(--rizhuti-bg-primary);
  position: relative;
  z-index: 20;
  margin-top: 0;
}

/* 黑夜模式下主题展示区域 */
body.dark-theme .ritheme-homepage .themes-section,
body.theme-dark .ritheme-homepage .themes-section,
[data-theme="dark"] .ritheme-homepage .themes-section {
  background: var(--rizhuti-bg-primary);
}

.ritheme-homepage .themes-section::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #e1e8ed;
  border-radius: 2px;
  z-index: 1;
}

/* 黑夜模式下的装饰线 */
body.dark-theme .ritheme-homepage .themes-section::before,
body.theme-dark .ritheme-homepage .themes-section::before,
[data-theme="dark"] .ritheme-homepage .themes-section::before {
  background: #3d3d3d;
}

.ritheme-homepage .themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: -230px;
}

/* 响应式弧形设计 */
@media (max-width: 768px) {
  .hero-curve-section {
    height: 200px;
  }
  
  .hero-curve {
    height: 400px;
  }
  
  .ritheme-homepage .themes-grid { margin-top: -220px; }
  
  .ritheme-homepage .hero-title {
    font-size: 32px;
  }
  
  .ritheme-homepage .hero-description {
    font-size: 16px;
  }
  
  .ritheme-homepage .hero-subtitle {
    font-size: 14px;
  }
  
  .ritheme-homepage .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .ritheme-homepage .hero-content {
    padding: 15px;
  }
  
  body.home .hero-content-overlay {
    background: rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 480px) {
  .hero-curve-section {
    height: 150px;
  }
  
  .hero-curve {
    height: 300px;
  }
  
  .ritheme-homepage .themes-grid { margin-top: -160px; }
  
  body.home .hero-section {
    min-height: 350px;
    padding: 0 0 30px;
  }
  
  .ritheme-homepage .hero-title {
    font-size: 28px;
  }
  
  .ritheme-homepage .hero-description {
    font-size: 15px;
  }
  
  .ritheme-homepage .hero-subtitle {
    font-size: 13px;
  }
  
  .ritheme-homepage .hero-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* 主题展示区域 */
.ritheme-homepage .theme-card {
  background: var(--rizhuti-bg-primary);
  border: 1px solid var(--rizhuti-border-color);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 21;
}

/* 黑夜模式下主题卡片 */
body.dark-theme .ritheme-homepage .theme-card,
body.theme-dark .ritheme-homepage .theme-card,
[data-theme="dark"] .ritheme-homepage .theme-card {
  background: var(--rizhuti-bg-primary);
  border-color: var(--rizhuti-border-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ritheme-homepage .theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-color: #667eea;
}

/* 黑夜模式下主题卡片悬停 */
body.dark-theme .ritheme-homepage .theme-card:hover,
body.theme-dark .ritheme-homepage .theme-card:hover,
[data-theme="dark"] .ritheme-homepage .theme-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ritheme-homepage .theme-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ff6b35, #ff8e53);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.ritheme-homepage .theme-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--rizhuti-text-primary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.ritheme-homepage .theme-title small {
  font-size: 14px;
  color: var(--rizhuti-text-secondary);
  font-weight: 400;
  margin-left: 8px;
}

.ritheme-homepage .theme-description {
  color: var(--rizhuti-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
  height: 96px; /* 4行文字高度：15px * 1.6 * 4 = 96px */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* 主题图片样式 */
.ritheme-homepage .theme-image {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 黑夜模式下主题图片 */
body.dark-theme .ritheme-homepage .theme-image,
body.theme-dark .ritheme-homepage .theme-image,
[data-theme="dark"] .ritheme-homepage .theme-image {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ritheme-homepage .theme-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 黑夜模式下主题图片悬停 */
body.dark-theme .ritheme-homepage .theme-image:hover,
body.theme-dark .ritheme-homepage .theme-image:hover,
[data-theme="dark"] .ritheme-homepage .theme-image:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.ritheme-homepage .theme-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.ritheme-homepage .theme-image:hover img {
  transform: scale(1.05);
}

/* 图片加载占位符 */
.ritheme-homepage .theme-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  z-index: 1;
}

/* 黑夜模式下图片占位符 */
body.dark-theme .ritheme-homepage .theme-image::before,
body.theme-dark .ritheme-homepage .theme-image::before,
[data-theme="dark"] .ritheme-homepage .theme-image::before {
  background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
}

.ritheme-homepage .theme-image img[src] {
  position: relative;
  z-index: 2;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.ritheme-homepage .theme-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ritheme-homepage .theme-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.ritheme-homepage .theme-actions .btn-primary {
  background: #667eea;
  color: white;
  border: none;
}

.ritheme-homepage .theme-actions .btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.ritheme-homepage .theme-actions .btn-secondary {
  background: var(--rizhuti-bg-secondary);
  color: var(--rizhuti-text-secondary);
  border: 1px solid var(--rizhuti-border-color);
}

.ritheme-homepage .theme-actions .btn-secondary:hover {
  background: var(--rizhuti-bg-primary);
  color: var(--rizhuti-text-primary);
}

/* 特性介绍区域（仅首页） */
.ritheme-homepage .features-section {
  padding: 80px 0;
  background: var(--rizhuti-bg-secondary);
}

/* 黑夜模式下特性区域 */
body.dark-theme .ritheme-homepage .features-section,
body.theme-dark .ritheme-homepage .features-section,
[data-theme="dark"] .ritheme-homepage .features-section {
  background: var(--rizhuti-bg-secondary);
}

.ritheme-homepage .section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--rizhuti-text-primary);
  text-align: center;
  margin-bottom: 20px;
}

.ritheme-homepage .section-subtitle {
  font-size: 18px;
  color: var(--rizhuti-text-secondary);
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ritheme-homepage .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.ritheme-homepage .feature-item {
  background: var(--rizhuti-bg-primary);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* 黑夜模式下特性项 */
body.dark-theme .ritheme-homepage .feature-item,
body.theme-dark .ritheme-homepage .feature-item,
[data-theme="dark"] .ritheme-homepage .feature-item {
  background: var(--rizhuti-bg-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ritheme-homepage .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 黑夜模式下特性项悬停 */
body.dark-theme .ritheme-homepage .feature-item:hover,
body.theme-dark .ritheme-homepage .feature-item:hover,
[data-theme="dark"] .ritheme-homepage .feature-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ritheme-homepage .feature-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--rizhuti-text-primary);
  margin-bottom: 15px;
}

.ritheme-homepage .feature-item p {
  color: var(--rizhuti-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 16px;
}

.ritheme-homepage .feature-item ul {
  list-style: none;
  padding: 0;
}

.ritheme-homepage .feature-item li {
  color: var(--rizhuti-text-secondary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.ritheme-homepage .feature-item li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

/* 价格方案区域（仅首页） */
.ritheme-homepage .pricing-section {
  padding: 80px 0;
  background: var(--rizhuti-bg-primary);
}

/* 黑夜模式下价格区域 */
body.dark-theme .ritheme-homepage .pricing-section,
body.theme-dark .ritheme-homepage .pricing-section,
[data-theme="dark"] .ritheme-homepage .pricing-section {
  background: var(--rizhuti-bg-primary);
}

.ritheme-homepage .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.ritheme-homepage .pricing-card {
  background: var(--rizhuti-bg-primary);
  border: 2px solid var(--rizhuti-border-color);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

/* 黑夜模式下价格卡片 */
body.dark-theme .ritheme-homepage .pricing-card,
body.theme-dark .ritheme-homepage .pricing-card,
[data-theme="dark"] .ritheme-homepage .pricing-card {
  background: var(--rizhuti-bg-primary);
  border-color: var(--rizhuti-border-color);
}

.ritheme-homepage .pricing-card.featured {
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

/* 黑夜模式下特色价格卡片 */
body.dark-theme .ritheme-homepage .pricing-card.featured,
body.theme-dark .ritheme-homepage .pricing-card.featured,
[data-theme="dark"] .ritheme-homepage .pricing-card.featured {
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.ritheme-homepage .pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 黑夜模式下价格卡片悬停 */
body.dark-theme .ritheme-homepage .pricing-card:hover,
body.theme-dark .ritheme-homepage .pricing-card:hover,
[data-theme="dark"] .ritheme-homepage .pricing-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.ritheme-homepage .pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.ritheme-homepage .pricing-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--rizhuti-text-primary);
  margin-bottom: 15px;
}

.ritheme-homepage .pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 30px;
}

.ritheme-homepage .price-period {
  font-size: 16px;
  color: var(--rizhuti-text-secondary);
  font-weight: 400;
}

.ritheme-homepage .pricing-features ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.ritheme-homepage .pricing-features li {
  padding: 8px 0;
  color: var(--rizhuti-text-secondary);
  position: relative;
  padding-left: 25px;
}

.ritheme-homepage .pricing-features .feature-enabled::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

.ritheme-homepage .pricing-features .feature-disabled::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #e74c3c;
  font-weight: bold;
}

.ritheme-homepage .pricing-action .btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 教程文章区域（仅首页） */
.ritheme-homepage .tutorials-section {
  padding: 80px 0;
  background: var(--rizhuti-bg-secondary);
}

/* 黑夜模式下教程区域 */
body.dark-theme .ritheme-homepage .tutorials-section,
body.theme-dark .ritheme-homepage .tutorials-section,
[data-theme="dark"] .ritheme-homepage .tutorials-section {
  background: var(--rizhuti-bg-secondary);
}

.ritheme-homepage .tutorials-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.ritheme-homepage .tutorials-main .section-title {
  text-align: left;
  margin-bottom: 30px;
}

.ritheme-homepage .tutorials-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ritheme-homepage .tutorial-item {
  background: var(--rizhuti-bg-primary);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* 黑夜模式下教程项 */
body.dark-theme .ritheme-homepage .tutorial-item,
body.theme-dark .ritheme-homepage .tutorial-item,
[data-theme="dark"] .ritheme-homepage .tutorial-item {
  background: var(--rizhuti-bg-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ritheme-homepage .tutorial-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 黑夜模式下教程项悬停 */
body.dark-theme .ritheme-homepage .tutorial-item:hover,
body.theme-dark .ritheme-homepage .tutorial-item:hover,
[data-theme="dark"] .ritheme-homepage .tutorial-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ritheme-homepage .tutorial-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--rizhuti-text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.ritheme-homepage .tutorial-excerpt {
  color: var(--rizhuti-text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 14px;
}

.ritheme-homepage .tutorial-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--rizhuti-text-muted);
}

/* 侧边栏样式 */
.ritheme-homepage .tutorials-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ritheme-homepage .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--rizhuti-text-primary);
  margin-bottom: 15px;
}

.ritheme-homepage .coupon-desc,
.ritheme-homepage .news-desc {
  color: var(--rizhuti-text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ritheme-homepage .coupon-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ritheme-homepage .coupon-item {
  background: var(--rizhuti-bg-primary);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--rizhuti-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

/* 黑夜模式下优惠券项 */
body.dark-theme .ritheme-homepage .coupon-item,
body.theme-dark .ritheme-homepage .coupon-item,
[data-theme="dark"] .ritheme-homepage .coupon-item {
  background: var(--rizhuti-bg-primary);
  border-color: var(--rizhuti-border-color);
}

.ritheme-homepage .coupon-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

/* 黑夜模式下优惠券项悬停 */
body.dark-theme .ritheme-homepage .coupon-item:hover,
body.theme-dark .ritheme-homepage .coupon-item:hover,
[data-theme="dark"] .ritheme-homepage .coupon-item:hover {
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.ritheme-homepage .coupon-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ritheme-homepage .coupon-name {
  font-size: 14px;
  color: var(--rizhuti-text-primary);
  font-weight: 500;
}

.ritheme-homepage .coupon-code {
  background: var(--rizhuti-bg-secondary);
  color: #667eea;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
}

.ritheme-homepage .coupon-status.available {
  color: #27ae60;
  font-size: 12px;
  font-weight: 600;
}

.ritheme-homepage .news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ritheme-homepage .news-item {
  background: var(--rizhuti-bg-primary);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--rizhuti-border-color);
  transition: all 0.3s ease;
}

/* 黑夜模式下新闻项 */
body.dark-theme .ritheme-homepage .news-item,
body.theme-dark .ritheme-homepage .news-item,
[data-theme="dark"] .ritheme-homepage .news-item {
  background: var(--rizhuti-bg-primary);
  border-color: var(--rizhuti-border-color);
}

.ritheme-homepage .news-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

/* 黑夜模式下新闻项悬停 */
body.dark-theme .ritheme-homepage .news-item:hover,
body.theme-dark .ritheme-homepage .news-item:hover,
[data-theme="dark"] .ritheme-homepage .news-item:hover {
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.ritheme-homepage .news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--rizhuti-text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.ritheme-homepage .news-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--rizhuti-text-muted);
}

.ritheme-homepage .news-category {
  color: #667eea;
  font-weight: 500;
}

/* 统计数据区域（仅首页） */
.ritheme-homepage .stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.ritheme-homepage .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.ritheme-homepage .stat-item {
  padding: 20px;
}

.ritheme-homepage .stat-value {
  font-size: 48px;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ritheme-homepage .stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* 响应式设计（仅首页块） */
@media (max-width: 768px) {
  body.home .hero-section {
    min-height: 400px;
    padding: 0 0 40px;
  }
  .ritheme-homepage .hero-title {
    font-size: 32px;
  }
  .ritheme-homepage .hero-description {
    font-size: 16px;
  }
  .ritheme-homepage .hero-subtitle {
    font-size: 14px;
  }
  .ritheme-homepage .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .ritheme-homepage .hero-content {
    padding: 15px;
  }
  body.home .hero-content-overlay {
    background: rgba(0, 0, 0, 0.5);
  }
  .ritheme-homepage .themes-grid {
    grid-template-columns: 1fr;
  }
  .ritheme-homepage .features-grid {
    grid-template-columns: 1fr;
  }
  .ritheme-homepage .pricing-grid {
    grid-template-columns: 1fr;
  }
  .ritheme-homepage .pricing-card.featured {
    transform: none;
  }
  .ritheme-homepage .tutorials-layout {
    grid-template-columns: 1fr;
  }
  .ritheme-homepage .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ritheme-homepage .stat-value {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  body.home .hero-section {
    min-height: 350px;
    padding: 0 0 30px;
  }
  .ritheme-homepage .hero-title {
    font-size: 28px;
  }
  .ritheme-homepage .hero-description {
    font-size: 15px;
  }
  .ritheme-homepage .hero-subtitle {
    font-size: 13px;
  }
  .ritheme-homepage .hero-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  .ritheme-homepage .section-title {
    font-size: 28px;
  }
  .ritheme-homepage .theme-card,
  .ritheme-homepage .feature-item,
  .ritheme-homepage .pricing-card {
    padding: 20px;
  }
  .ritheme-homepage .stats-grid {
    grid-template-columns: 1fr;
  }
} 

/* 首页导航与英雄区无缝衔接（仅首页） */
body.home .header { border-bottom: 0 !important; box-shadow: none !important; margin-bottom: 0 !important; }
body.home .header .navbar { margin-bottom: 0 !important; } 