* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1b4332;
  background: radial-gradient(circle at top, #f0fdf4 0, #f5f5f5 55%, #e9f5ec 100%);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(21, 128, 61, 0.96), rgba(22, 163, 74, 0.96));
  color: #ecfdf5;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  background: radial-gradient(circle at 30% 20%, #bbf7d0, #16a34a);
  box-shadow: 0 0 0 1px rgba(236, 253, 245, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-subtitle {
  font-size: 11px;
  opacity: 0.85;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #ecfdf5;
  text-decoration: none;
  background: rgba(15, 118, 110, 0.28);
  border: 1px solid rgba(209, 250, 229, 0.25);
  box-shadow: 0 0 0 1px rgba(21, 94, 117, 0.15);
  transition: all 0.18s ease-out;
}

.main-nav a:hover {
  background: rgba(34, 197, 94, 0.8);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.55);
  transform: translateY(-1px);
}

main {
  padding: 16px 0 32px;
}

footer {
  background: transparent;
  color: #6b7280;
  text-align: center;
  padding: 24px 0 40px;
  font-size: 13px;
}

/* 卡片样式 */
.card {
  background: radial-gradient(circle at top left, #ecfdf5 0, #ffffff 45%, #eff6ff 100%);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.09);
  padding: 16px 16px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(5, 150, 105, 0.18);
  border-color: rgba(22, 163, 74, 0.35);
}

.card h2 {
  color: #065f46;
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.card a {
  color: #16a34a;
  text-decoration: none;
}

/* 网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* 植物详情页样式 */
.plant-detail {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.plant-detail h1 {
  color: #4CAF50;
  margin-bottom: 1rem;
}

.plant-detail h2 {
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.plant-detail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.plant-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

.info-item h3 {
  color: #4CAF50;
  margin-bottom: 0.5rem;
}

/* 评分样式 */
.ratings {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 面包屑导航 */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #4CAF50;
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* 列表样式 */
.list-group {
  list-style: none;
}

.list-group li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.list-group li:last-child {
  border-bottom: none;
}