/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f5f5; color: #333; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* 导航栏 */
.navbar { background: #2c3e50; padding: 15px 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { color: white; text-decoration: none; font-size: 1.3em; font-weight: bold; }
.nav-links a { color: #ecf0f1; text-decoration: none; margin-left: 20px; }
.nav-links a:hover { color: #3498db; }
.nav-links span { color: #3498db; margin-left: 20px; }

/* 首页英雄区 */
.hero { text-align: center; padding: 60px 0; }
.hero h1 { font-size: 2.2em; margin-bottom: 10px; }
.hero p { color: #666; font-size: 1.2em; }

/* 卡片 */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.card { background: white; border-radius: 12px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.card h2 { margin-bottom: 10px; }
.card p { color: #666; margin-bottom: 20px; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 24px; background: #3498db; color: white; text-decoration: none; border-radius: 8px; border: none; cursor: pointer; font-size: 1em; }
.btn:hover { background: #2980b9; }
.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }

/* 表单 */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 1em; }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-error { color: #e74c3c; margin-top: 10px; }
.form-success { color: #27ae60; margin-top: 10px; }

/* 宠物卡片 */
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.pet-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.pet-card img { width: 100%; height: 200px; object-fit: cover; }
.pet-card .info { padding: 15px; }
.pet-card h3 { margin-bottom: 5px; }
.pet-card p { color: #666; font-size: 0.9em; }

/* 时间轴 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #3498db; }
.timeline-item { position: relative; margin-bottom: 30px; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: #3498db; }
.timeline-item .date { color: #999; font-size: 0.85em; margin-bottom: 5px; }
.timeline-item img { max-width: 100%; border-radius: 8px; margin-top: 10px; }

/* 排行榜 */
.leaderboard { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.leaderboard th, .leaderboard td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
.leaderboard th { background: #2c3e50; color: white; }
.leaderboard tr:hover { background: #f8f9fa; }

/* 响应式 */
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .pet-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6em; }
}
