/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 主题变量 */
:root {
  /* 浅色主题 */
  --bg-color: #f5f5f5;
  --text-color: #333333;
  --primary-color: #e2db91;
  --secondary-color: #ccd78b;
  --card-bg: #ffffff;
  --card-bg-rgb: 255, 255, 255;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-text: #333333;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 深色主题 */
[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --primary-color: #6c986c;
  --secondary-color: #82ae82;
  --card-bg: rgba(0, 0, 0, 0.5);
  --card-bg-rgb: 0, 0, 0;
  --nav-bg: rgba(0, 0, 0, 0.95);
  --nav-text: #ffffff;
  --border-color: rgba(255, 255, 255, 0.2);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 国风主题 */
[data-theme="chinese"] {
  --bg-color: #f9f2e8;
  --text-color: #8b4513;
  --primary-color: #e7c285;
  --secondary-color: #d3bc92;
  --card-bg: #f5efe6;
  --card-bg-rgb: 245, 239, 230;
  --nav-bg: rgba(245, 239, 230, 0.95);
  --nav-text: #8b4513;
  --border-color: #e8d5c4;
  --shadow: 0 4px 6px rgba(139, 69, 19, 0.1);
}

/* 清新主题 */
[data-theme="fresh"] {
  --bg-color: #f0f8ff;
  --text-color: #2c3e50;
  --primary-color: #d4f1d4;
  --secondary-color: #b8e6b8;
  --card-bg: rgba(240, 248, 255, 0.9);
  --card-bg-rgb: 240, 248, 255;
  --nav-bg: rgba(240, 248, 255, 0.95);
  --nav-text: #2c3e50;
  --border-color: #d6eaf8;
  --shadow: 0 4px 6px rgba(52, 152, 219, 0.1);
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: all 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* 背景图片 */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-video img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  animation: backgroundMove 30s linear infinite;
}

/* 背景移动动画 */
@keyframes backgroundMove {
  0% {
    transform: translate(-5%, -5%);
  }

  50% {
    transform: translate(0%, 0%);
  }

  100% {
    transform: translate(-5%, -5%);
  }
}

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

/* 左侧固定导航栏 */
.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  padding: 20px 0;
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

[data-theme="dark"] .side-nav {
  background-color: rgba(0, 0, 0, 0.4);
}

.nav-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-color);
}

.nav-header h2 {
  color: var(--primary-color);
  font-size: 1.5em;
  text-align: center;
}

.nav-links {
  list-style: none;
  padding: 20px 0;
}

.nav-links li {
  padding: 0 20px;
}

.nav-links a {
  display: block;
  padding: 12px 15px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

[data-theme="dark"] .nav-links a {
  color: #333333;
}

.nav-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* 移动端汉堡按钮加半透明背景，提高可辨识度 */
@media (max-width: 768px) {
  .menu-toggle {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
}

/* 主内容区 */
.main-content {
  margin-left: 250px;
  transition: all 0.3s ease;
}

/* 首屏节气封面 */
.hero-section {
  height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 向下滚动提示 */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  animation: bounce 2s infinite;
  z-index: 4;
}

.scroll-down span {
  margin-bottom: 10px;
  font-size: 0.9em;
  color: var(--text-color);
}

.arrow {
  border: solid var(--text-color);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 10px;
}

.down {
  transform: rotate(45deg);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-20px);
  }

  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* 轮播图容器 */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 轮播图 */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 轮播图叠加层 */
.slideshow-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  z-index: 2;
}

/* 内容层 */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 30px;
  font-style: italic;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-poetry {
  font-size: 1.2em;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* 通用区块样式 */
.section {
  padding: 80px 0;
  position: relative;
  background-color: rgba(var(--card-bg-rgb), 0.4);
  border-bottom: 1px solid rgba(var(--card-bg-rgb), 0.3);
  backdrop-filter: blur(5px);
  margin-bottom: 38px;
}

.section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary-color);
}

/* 二十四节气总览 */
.season-section {
  margin-bottom: 50px;
}

.season-header {
  text-align: center;
  margin-bottom: 30px;
}

.season-header h3 {
  font-size: 2em;
  margin-bottom: 10px;
  color: var(--text-color);
}

.season-description {
  font-size: 1.1em;
  color: var(--text-color);
  opacity: 0.8;
  font-style: italic;
}

.solar-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.solar-term-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.solar-term-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.term-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  text-align: center;
}

.solar-term-card h4 {
  font-size: 1.5em;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text-color);
}

.term-date {
  text-align: center;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.9em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}

.term-description {
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.6;
}

.term-details {
  font-size: 0.9em;
  color: var(--text-color);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
}



/* 节气溯源 */
.origin-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 38px;
}

.origin-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.origin-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.origin-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* 节气三候 */
.phenology-content {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.phenology-season h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.phenology-item {
  display: flex;
  gap: 30px;
  align-items: center;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px);
}

.phenology-image {
  flex: 0 0 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}

.phenology-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.phenology-text {
  flex: 1;
}

.phenology-text h4 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.phenology-text p {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* 民俗与传统 */
.folk-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 38px;
}

.folk-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.folk-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.folk-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* 节气诗词 */
.poetry-content {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.poetry-item {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.poetry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.poetry-item {
  position: relative;
}

.poetry-item h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.poetry-switch-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.poetry-switch-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: rotate(180deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.poetry-switch-btn:active {
  transform: rotate(180deg) scale(0.95);
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.poetry-text {
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--primary-color);
}

.poetry-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 5px;
}

.poetry-author {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-color);
  opacity: 0.7;
}

.poetry-text {
  line-height: 1.8;
  margin-bottom: 5px;
}

.poetry-analysis {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.poetry-analysis h4 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* 饮食文化 */
.food-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 38px;
}

.food-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.food-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.food-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* 节气美学 */
.aesthetics-content {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.aesthetics-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.aesthetics-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.aesthetics-item h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.color-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 calc(50% - 10px);
}

.color-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
footer {
  background-color: var(--card-bg);
  backdrop-filter: blur(5px);
  padding: 15px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.footer-info h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

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

.footer-copyright {
  margin-top: 20px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1s ease-out forwards;
}

/* 响应式设计 */

/* 手机端 - 小屏幕设备 */
@media (max-width: 480px) {

  /* 移动端导航 */
  .side-nav {
    transform: translateX(-100%);
    width: 180px;
  }

  .side-nav.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
    top: 10px;
    left: 10px;
  }

  .main-content {
    margin-left: 0;
    padding: 10px;
  }

  /* 首屏视觉区 */
  .hero-section {
    height: 55vh;
  }

  .hero-title {
    font-size: 1.8em;
  }

  .hero-subtitle {
    font-size: 0.95em;
  }

  .hero-poetry {
    font-size: 0.85em;
    padding: 0 10px;
  }

  .section {
    padding: 25px 0;
  }

  .section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  /* 季节标题 */
  .season-header h3 {
    font-size: 1.4em;
  }

  .season-description {
    font-size: 0.9em;
  }

  /* 节气总览网格 — 修复最小宽度溢出 */
  .solar-terms-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .solar-term-card {
    padding: 16px;
  }

  .solar-term-card h4 {
    font-size: 1.2em;
    margin-bottom: 8px;
  }

  .term-date {
    font-size: 0.8em;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .term-description {
    font-size: 0.85em;
  }

  .term-details {
    font-size: 0.8em;
    padding: 10px;
  }

  /* 节气溯源 */
  .origin-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .origin-item {
    padding: 18px;
  }

  .origin-item h3 {
    font-size: 1.3em;
  }

  .origin-item p {
    font-size: 0.85em;
  }

  /* 物候特征 */
  .phenology-list {
    flex-direction: column;
    gap: 15px;
  }

  .phenology-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .phenology-image {
    flex: 0 0 150px;
    width: 100%;
    margin-bottom: 10px;
  }

  .phenology-text h4 {
    font-size: 1em;
  }

  .phenology-text p {
    font-size: 0.85em;
  }

  /* 颜色板块 */
  .colors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .color-item {
    padding: 15px;
  }

  .color-name {
    font-size: 0.9em;
  }

  /* 内容卡片 */
  .origin-item,
  .folk-item,
  .food-item,
  .aesthetics-item {
    padding: 15px;
  }

  .origin-item h4,
  .folk-item h4,
  .food-item h4,
  .aesthetics-item h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  .origin-item p,
  .folk-item p,
  .food-item p,
  .aesthetics-item p {
    font-size: 0.85em;
  }

  /* 诗词卡片 */
  .poetry-item {
    padding: 15px;
  }

  .poetry-title {
    font-size: 1.1em;
  }

  .poetry-author {
    font-size: 0.9em;
  }

  .poetry-content {
    font-size: 0.85em;
    line-height: 1.8;
  }

  /* 收藏按钮 */
  .favorite-btn {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* 页脚 */
  .footer-content {
    flex-direction: column;
    text-align: center;
    padding: 20px 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 5px;
  }
}

/* 平板端 - 中等屏幕设备 */
@media (min-width: 481px) and (max-width: 768px) {

  /* 背景图片适配 */
  body {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  /* 移动端导航 */
  .side-nav {
    transform: translateX(-100%);
    width: 180px;
    z-index: 1000;
  }

  .side-nav.active {
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .menu-toggle {
    display: block;
    top: 15px;
    left: 15px;
    z-index: 1001;
  }

  .main-content {
    margin-left: 0;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 首屏视觉区 */
  .hero-section {
    height: 60vh;
    width: 100%;
  }

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

  .hero-title {
    font-size: 2em;
  }

  .hero-subtitle {
    font-size: 1em;
  }

  .hero-poetry {
    font-size: 0.9em;
  }

  .section {
    padding: 30px 0;
    width: 100%;
  }

  .section-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  /* 节气总览网格 */
  .solar-terms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .solar-term-card {
    padding: 18px;
  }

  .solar-term-card h4 {
    font-size: 1.3em;
  }

  .term-description {
    font-size: 0.9em;
  }

  .term-details {
    font-size: 0.85em;
  }

  /* 节气溯源 */
  .origin-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* 物候特征 */
  .phenology-list {
    flex-direction: column;
    gap: 15px;
  }

  .phenology-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .phenology-image {
    flex: 0 0 160px;
    width: 100%;
    margin-bottom: 12px;
  }

  .phenology-text h4 {
    font-size: 1.1em;
  }

  .phenology-text p {
    font-size: 0.9em;
  }

  /* 颜色板块 */
  .colors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .color-item {
    padding: 15px;
  }

  /* 内容卡片 */
  .origin-item,
  .folk-item,
  .food-item,
  .aesthetics-item {
    padding: 15px;
  }

  .origin-item h4,
  .folk-item h4,
  .food-item h4,
  .aesthetics-item h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  .origin-item p,
  .folk-item p,
  .food-item p,
  .aesthetics-item p {
    font-size: 0.9em;
  }

  /* 诗词卡片 */
  .poetry-item {
    padding: 15px;
  }

  .poetry-title {
    font-size: 1.1em;
  }

  .poetry-author {
    font-size: 0.9em;
  }

  .poetry-content {
    font-size: 0.9em;
  }

  /* 页脚 */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 15px;
  }
}

/* 桌面端 - 大屏幕设备 */
@media (min-width: 769px) and (max-width: 1024px) {
  .side-nav {
    width: 180px;
  }

  .main-content {
    margin-left: 180px;
  }

  .hero-title {
    font-size: 3em;
  }

  .phenology-list {
    gap: 20px;
  }

  .colors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 大桌面端 - 超大屏幕设备 */
@media (min-width: 1025px) {
  .hero-title {
    font-size: 3.5em;
  }

  .colors-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 收藏按钮样式 */
.favorite-btn {
  position: absolute;
  top: 22px;
  right: 65px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--primary-color);
  font-size: 16px;
  cursor: pointer;
  color: var(--primary-color);
  opacity: 0.8;
  transition: all 0.3s ease;
  padding: 6px 10px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  box-sizing: border-box;
  z-index: 99;
}

.favorite-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.favorite-btn.favorited {
  opacity: 1;
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 图片懒加载 */
img {
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* ========== 特效动画样式 ========== */
/* 特效容器 */
.effect-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1001;
  overflow: hidden;
}

/* 通用特效样式 */
.effect-drop {
  position: absolute;
  top: -50px;
}

/* 雨滴特效 */
.rain-drop {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  width: 2px;
  border-radius: 0 0 50% 50%;
  animation: rain-fall linear infinite;
}

@keyframes rain-fall {
  0% {
    transform: translateY(-100px);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0.3;
  }
}

/* 绿叶特效 */
.leaves-drop {
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  border-radius: 50% 0 50% 50%;
  animation: leaves-fall ease-in-out infinite;
}

@keyframes leaves-fall {
  0% {
    transform: translateY(-100px) rotate(0deg) translateX(0);
    opacity: 1;
  }

  25% {
    transform: translateY(25vh) rotate(90deg) translateX(50px);
  }

  50% {
    transform: translateY(50vh) rotate(180deg) translateX(-30px);
  }

  75% {
    transform: translateY(75vh) rotate(270deg) translateX(60px);
  }

  100% {
    transform: translateY(100vh) rotate(360deg) translateX(-20px);
    opacity: 0;
  }
}

/* 炊烟特效 */
.smoke-drop {
  background: radial-gradient(circle, rgba(200, 200, 200, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  animation: smoke-rise ease-out infinite;
}

@keyframes smoke-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100vh) scale(2);
    opacity: 0;
  }
}

/* 雪花特效 */
.snow-drop {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  border-radius: 50%;
  animation: snow-fall ease-in-out infinite;
  top: -100px;
}

@keyframes snow-fall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  50% {
    transform: translateY(50vh) rotate(180deg) translateX(30px);
  }

  90% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(100vh) rotate(360deg) translateX(-20px);
    opacity: 0;
  }
}