/**
 * 星露谷物语攻略站 - 主样式文件
 * 主题：温暖田园风，贴合游戏主题
 * 配色：绿色/棕色/暖黄为主色调
 */

:root {
  /* 主色调 */
  --primary-green: #4a7c59;
  --primary-green-dark: #3d6b4a;
  --primary-green-light: #5a9c6d;
  
  /* 次要色 */
  --secondary-brown: #8b5a2b;
  --secondary-brown-light: #a67c52;
  --secondary-warm: #c4a35a;
  
  /* 背景色 */
  --bg-cream: #faf8f0;
  --bg-warm: #f5efe0;
  --bg-card: #ffffff;
  --bg-dark: #2d3a2e;
  
  /* 文字色 */
  --text-primary: #2d2d2d;
  --text-secondary: #5a5a5a;
  --text-light: #f8f8f8;
  --text-muted: #888888;
  
  /* 边框色 */
  --border-light: #e0dcc8;
  --border-green: #4a7c59;
  
  /* 特殊色 */
  --spring: #7cb342;
  --summer: #ffb300;
  --autumn: #e65100;
  --winter: #5c6bc0;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* 暗色模式变量 */
[data-theme="dark"] {
  --bg-cream: #1a1f1a;
  --bg-warm: #252b25;
  --bg-card: #2d352d;
  --bg-dark: #141814;
  --text-primary: #e8e8e8;
  --text-secondary: #b0b0b0;
  --text-light: #f8f8f8;
  --text-muted: #808080;
  --border-light: #3d4a3d;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-green-dark);
}

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

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

/* 顶部导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green);
}

.navbar-brand .logo {
  font-size: 1.8rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--bg-warm);
  color: var(--primary-green);
}

.nav-link.active {
  background: var(--primary-green);
  color: white;
}

/* 主题切换按钮 */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--border-light);
  transform: scale(1.05);
}

/* 语言切换按钮 */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: none;
  background: var(--primary-green);
  color: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: var(--primary-green-dark);
  transform: scale(1.05);
}

/* 移动端菜单 */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 下拉菜单 */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  cursor: pointer;
}

.nav-dropdown > .nav-link::after {
  content: '▾';
  font-size: 0.7em;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1001;
  padding: 8px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg-warm);
  color: var(--primary-green);
}

@media (max-width: 992px) {
  .navbar-nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  /* 移动端侧滑菜单 */
  .navbar-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-card);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
    gap: 0;
  }
  
  .navbar-nav.active {
    transform: translateX(0);
    display: flex;
  }
  
  .navbar-nav li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }
  
  .navbar-nav li:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .nav-link {
    width: 100%;
    padding: 16px 0;
    justify-content: flex-start;
  }
  
  /* 移动端下拉菜单 */
  .nav-dropdown > .nav-link::after {
    float: right;
    margin-top: 4px;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-warm);
    border-radius: 0;
    padding: 0 0 0 20px;
    display: none;
    grid-template-columns: 1fr;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: grid;
  }
  
  .dropdown-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }
  
  .dropdown-menu a:last-child {
    border-bottom: none;
  }
}

/* ==================== 英雄区域升级 ==================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  overflow: hidden;
}

/* Hero背景图片 */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  z-index: -3;
  animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.85) 0%, rgba(45, 58, 46, 0.75) 50%, rgba(196, 163, 90, 0.7) 100%);
  z-index: -2;
}

.hero::after {
  content: '🌾';
  position: absolute;
  font-size: 200px;
  opacity: 0.06;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 飘落粒子效果 */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: fall linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 14s; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(4) { left: 40%; animation-duration: 15s; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 0.5s; }
.particle:nth-child(6) { left: 60%; animation-duration: 13s; animation-delay: 1.5s; }
.particle:nth-child(7) { left: 70%; animation-duration: 12s; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-duration: 14s; animation-delay: 0.8s; }
.particle:nth-child(9) { left: 90%; animation-duration: 10s; animation-delay: 3.5s; }

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

/* 花瓣粒子 */
.particle.petal {
  width: 12px;
  height: 8px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #ffb7c5 0%, #ff8fa3 100%);
  transform-origin: center center;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-green);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-title span {
  color: var(--primary-green);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary-green);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  transform: translateY(-2px);
}

/* 搜索区域 */
.search-section {
  max-width: 600px;
  margin: 40px auto 0;
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.search-box {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-light);
  transition: border-color var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--primary-green);
}

.search-box input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
}

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

.search-box button {
  padding: 14px 24px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-box button:hover {
  background: var(--primary-green-dark);
}

/* ==================== 导航卡片升级 ==================== */
.quick-nav {
  padding: 80px 0;
  background: var(--bg-warm);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* 导航卡片图片样式 */
.nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}

.nav-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(74, 124, 89, 0.25);
}

.nav-card-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: transform 0.5s ease;
}

.nav-card:hover .nav-card-image {
  transform: scale(1.1);
}

.nav-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.nav-card-icon {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  margin-bottom: 16px;
  margin-top: 100px;
  transition: transform var(--transition-normal);
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.nav-card:hover .nav-card-icon {
  transform: scale(1.15);
}

.nav-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.nav-card-desc {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 内容区域 */
.content-section {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* 侧边栏 */
.sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
}

.sidebar-menu {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 12px;
  margin-bottom: 12px;
}

.sidebar-list {
  list-style: none;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.sidebar-item a:hover,
.sidebar-item a.active {
  background: var(--bg-warm);
  color: var(--primary-green);
}

/* 主内容区 */
.main-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .main-content {
    padding: 24px;
  }
}

/* 页面标题 */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ==================== 页面横幅样式 ==================== */
.page-banner {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

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

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.page-banner-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* 表格样式 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.data-table th {
  background: var(--bg-warm);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* 表格行悬浮效果增强 */
.data-table tbody tr {
  transition: all 0.2s ease;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: rgba(74, 124, 89, 0.1) !important;
  transform: scale(1.01);
}

.data-table .item-icon {
  font-size: 1.5rem;
  margin-right: 8px;
}

/* 表格图片列 */
.table-image {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  vertical-align: middle;
}

/* 标签徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-spring {
  background: rgba(124, 179, 66, 0.15);
  color: var(--spring);
}

.badge-summer {
  background: rgba(255, 179, 0, 0.15);
  color: #c77c00;
}

.badge-autumn {
  background: rgba(230, 81, 0, 0.15);
  color: var(--autumn);
}

.badge-winter {
  background: rgba(92, 107, 192, 0.15);
  color: var(--winter);
}

.badge-rare {
  background: rgba(156, 39, 176, 0.15);
  color: #9c27b0;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
}

.info-card:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.info-card-icon {
  font-size: 2rem;
}

.info-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.info-card-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 信息卡片图片 */
.info-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -24px -24px 16px -24px;
}

/* 技巧提示框 */
.tip-box {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(74, 124, 89, 0.1);
  border-left: 4px solid var(--primary-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.tip-box.warning {
  background: rgba(255, 179, 0, 0.1);
  border-left-color: var(--summer);
}

.tip-box-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tip-box-content {
  color: var(--text-secondary);
}

/* 技能树样式 */
.skill-tree {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.skill-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  min-width: 100px;
  text-align: center;
  transition: all var(--transition-fast);
}

.skill-node:hover {
  background: var(--primary-green);
  color: white;
  transform: scale(1.05);
}

.skill-node-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.skill-node-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* 技能卡片配图 */
.skill-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

/* NPC卡片 */
.npc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.npc-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.npc-card:hover {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.npc-avatar {
  font-size: 3rem;
  flex-shrink: 0;
}

/* NPC头像样式 */
.npc-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-green);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.npc-avatar-img:hover {
  transform: scale(1.1);
  border-color: var(--secondary-warm);
}

.npc-info {
  flex: 1;
}

.npc-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.npc-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.npc-gifts {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 底部区域 */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--secondary-warm);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a {
  color: rgba(255,255,255,0.8);
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-green-dark);
  transform: translateY(-4px);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动淡入动画增强 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 悬浮高亮动画 */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 124, 89, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(74, 124, 89, 0); }
}

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

/* 页面加载动画 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 装饰元素 ==================== */

/* 装饰性分隔线 */
.stardew-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--primary-green);
}

.stardew-divider::before,
.stardew-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.stardew-divider-icon {
  font-size: 1.5rem;
}

/* 游戏风格边框装饰 */
.game-border {
  position: relative;
  padding: 20px;
  border: 3px solid var(--primary-green);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.game-border::before,
.game-border::after {
  content: '🌾';
  position: absolute;
  top: -15px;
  font-size: 1.5rem;
}

.game-border::before {
  left: 20px;
}

.game-border::after {
  right: 20px;
}

/* 装饰角标 */
.corner-decoration {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-green);
  opacity: 0.3;
}

.corner-decoration.top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.corner-decoration.top-right {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.corner-decoration.bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.corner-decoration.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.breadcrumb a:hover {
  color: var(--primary-green);
}

.breadcrumb-separator {
  color: var(--border-light);
}

/* 季节图标 */
.season-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 季节标签配图 */
.season-visual {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.season-visual img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.season-visual img:hover {
  transform: scale(1.2) rotate(5deg);
}

/* 工具提示 */
.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: var(--bg-dark);
  color: white;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 8px);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.1rem;
}

/* 加载占位动画 */
.image-loading {
  background: linear-gradient(90deg, var(--bg-warm) 25%, var(--bg-card) 50%, var(--bg-warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==================== 暗色模式增强 ==================== */
[data-theme="dark"] .hero::before {
  background: linear-gradient(135deg, rgba(45, 58, 46, 0.9) 0%, rgba(30, 40, 30, 0.85) 50%, rgba(60, 50, 35, 0.85) 100%);
}

[data-theme="dark"] .nav-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
}

[data-theme="dark"] .npc-avatar-img {
  border-color: var(--primary-green-light);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 600px) {
  .hero {
    min-height: 70vh;
    padding: 80px 16px 40px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .nav-grid {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .data-table {
    font-size: 0.85rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }
  
  .page-banner {
    height: 180px;
  }
  
  .page-banner-title {
    font-size: 1.8rem;
  }
  
  .nav-card-icon {
    margin-top: 120px;
  }
}
