:root {
  --duanwu-green: #15803d;
  --duanwu-light-green: #f0fdf4;
  --duanwu-red: #dc2626;
  --duanwu-gold: #f59e0b;
  --duanwu-text: #2d3748;
  --duanwu-card-bg: #ffffff;
  --duanwu-accent: #166534;
}

.dark-theme:root {
  --duanwu-green: #22c55e;
  --duanwu-light-green: #052e16;
  --duanwu-red: #ef4444;
  --duanwu-gold: #fbbf24;
  --duanwu-text: #f7fafc;
  --duanwu-card-bg: #1e293b;
  --duanwu-accent: #16a34a;
}

/* 强制隐藏侧边栏，确保和春节页面宽度一致 */
#sidebar-placeholder {
  display: none !important;
}

body.seasonal-page.duanwu-page {
  background-color: var(--duanwu-light-green);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  color: var(--duanwu-text);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.seasonal-main.duanwu-main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 40px auto 0;
  text-align: center;
  box-sizing: border-box;
}

.festive-hero.duanwu-hero {
  position: relative;
  padding: 40px 20px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--duanwu-green) 0%, var(--duanwu-accent) 100%);
  color: white;
  box-shadow: 0 20px 40px rgba(21, 128, 61, 0.3);
  margin-bottom: 30px;
  overflow: hidden;
  width: 100%;
}

.festive-hero.duanwu-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0c16.568 0 30 13.432 30 30S46.568 60 30 60 0 46.568 0 30 13.432 0 30 0zm0 10C18.954 10 10 18.954 10 30s8.954 20 20 20 20-8.954 20-20S41.046 10 30 10z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-title {
  font-size: clamp(48px, 10vw, 84px);
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: clamp(18px, 4vw, 28px);
  opacity: 0.9;
  letter-spacing: 4px;
}

.wish-card.duanwu-card {
  background: var(--duanwu-card-bg);
  padding: 30px;
  border-radius: 32px;
  border: 2px solid var(--duanwu-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.wish-title.card-title {
  color: var(--duanwu-green);
  font-size: 28px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wish-content.card-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--duanwu-text);
}

.zongzi-icon {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 100;
  cursor: pointer;
  animation: toolSwing 4s ease-in-out infinite;
  transform-origin: top center;
  filter: drop-shadow(0 4px 8px rgba(120, 53, 15, 0.25));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-theme .zongzi-icon {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.zongzi-icon:hover {
  transform: scale(1.15) rotate(15deg);
}

@keyframes toolSwing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

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

.action-buttons {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--duanwu-green) 0%, var(--duanwu-accent) 100%);
  color: white;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(21, 128, 61, 0.2);
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(21, 128, 61, 0.35);
  filter: brightness(1.1);
}

.poem-section {
  margin-top: 25px;
  font-style: italic;
  color: var(--duanwu-accent);
  opacity: 0.85;
}

.poem-line {
  margin-bottom: 5px;
  font-size: 16px;
}

.festival-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
}

.festival-tag {
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--duanwu-red), var(--duanwu-gold));
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .zongzi-icon { 
    top: 15px; 
    right: 15px; 
  }
  .zongzi-icon svg {
    width: 40px;
    height: 56px;
  }
  
  .festive-hero.duanwu-hero {
    padding: 30px 20px;
  }
  
  .wish-card.duanwu-card {
    padding: 25px 20px;
  }
  
  .seasonal-main.duanwu-main {
    padding: 15px;
  }
  
  .festival-tags {
    gap: 8px;
  }
  
  .festival-tag {
    padding: 5px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }
  
  .wish-title.card-title {
    font-size: 20px;
  }
  
  .wish-content.card-content {
    font-size: 14px;
  }
  
  .poem-line {
    font-size: 14px;
  }
}