* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    padding-bottom: 80px;
    min-height: 100vh;
}

/* 顶部导航栏 */
.header {
    background-color: #67c23a;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn {
    font-size: 20px;
    margin-right: 15px;
}

.title {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

/* 路线卡片容器 */
.route-container {
    padding: 15px;
}

/* 路线卡片 */
.route-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

/* 路线缩略图 */
.route-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 路线信息 */
.route-info {
    padding: 15px;
}

.route-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.route-meta {
    display: flex;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.route-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.route-meta i {
    margin-right: 3px;
    font-size: 14px;
}

/* 鸟类展示 */
.birds-section {
    margin-top: 10px;
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 5px;
    color: #67c23a;
}

.birds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bird-item {
    width: calc(33.33% - 7px);
    text-align: center;
}

.bird-avatar {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 5px;
    border: 2px solid #e8f5e9;
}

.bird-name {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.protected-badge {
    display: inline-block;
    padding: 1px 5px;
    background-color: #f56c6c;
    color: white;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 3px;
}

/* 底部操作按钮 */
.action-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: white;
    padding: 15px;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.select-btn {
    background-color: #f0f9eb;
    color: #67c23a;
    margin-right: 10px;
}

.upload-btn {
    background-color: #67c23a;
    color: white;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: #666;
}

.route-rating {
  margin: 8px 0;
  color: #ffc107;
  font-size: 16px;
  
  .rating-value {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
  }
}

.route-description {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
  line-height: 1.4;
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  
  .tag {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
  }
}

/* 鸟类头像点击效果 */
.bird-avatar {
  cursor: pointer;
  transition: transform 0.2s;
  
  &:hover {
    transform: scale(1.05);
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.create-modal {
  background-color: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f7f7;
  border-bottom: 1px solid #ddd;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .half {
  flex: 1;
}

label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #444;
}

input,
textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease-in-out;
}

input:focus,
textarea:focus {
  border-color: #0d6efd;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-footer {
  padding: 16px 24px;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-btn,
.confirm-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.cancel-btn {
  background-color: #e0e0e0;
  color: #333;
}

.confirm-btn {
  background-color: #0d6efd;
  color: white;
}

.confirm-btn:hover {
  background-color: #0b5ed7;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  
  button {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    
    &.cancel-btn {
      background-color: #f5f5f5;
      color: #666;
      margin-right: 10px;
    }
    
    &.confirm-btn {
      background-color: #67c23a;
      color: white;
    }
  }
}

.route-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  
  .delete-btn {
    background-color: #f56c6c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    &:hover {
    background-color: #e65151;
  }
}
}
/* 鸟类详情模态框样式 */
.bird-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.bird-modal-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}

.bird-modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 15px;
}

.bird-card-top {
  display: flex;
  margin-bottom: 15px;
}

.bird-info {
  flex: 1;
}

.bird-name {
  margin: 0 0 5px 0;
  font-size: 1.4rem;
  color: #333;
}

.scientific-name {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  margin-left: 8px;
}

.conservation-status {
  background: #ff6b6b;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 8px;
  vertical-align: middle;
}

.bird-taxonomy {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 0.9rem;
}

.bird-rating {
  margin: 10px 0;
}

.star {
  color: #ffc107;
  margin-right: 3px;
}

.rating-text {
  margin-left: 5px;
  color: #666;
}

.bird-tags {
  margin: 10px 0;
}

.tag {
  display: inline-block;
  background: #e0f7fa;
  color: #00838f;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 5px;
  font-size: 0.8rem;
}

.bird-description {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.bird-section {
  margin: 15px 0;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.bird-section h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.1rem;
}

.bird-section ul {
  margin: 0;
  padding-left: 20px;
}

.bird-section li {
  margin-bottom: 5px;
  color: #555;
}