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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
}

#app {
  min-height: 100vh;
}

/* 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #07c160 0%, #05a050 100%);
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  width: 360px;
}

.login-box h1 {
  text-align: center;
  margin-bottom: 32px;
  color: #07c160;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #07c160;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #06ad56;
}

.btn-primary:disabled {
  background: #a8dcc5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 8px 16px;
  background: #fff;
  color: #666;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.btn-secondary:hover {
  color: #07c160;
  border-color: #07c160;
}

.btn-text {
  padding: 4px 8px;
  background: none;
  border: none;
  color: #07c160;
  cursor: pointer;
  font-size: 14px;
}

.btn-text:hover {
  text-decoration: underline;
}

.btn-danger {
  color: #ff4d4f;
}

.error-tip {
  color: #ff4d4f;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

/* 管理主页 */
.admin-page {
  display: flex;
  min-height: 100vh;
}

.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.admin-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #07c160;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 200px;
  height: calc(100vh - 60px);
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.06);
  padding-top: 20px;
}

.sidebar nav a {
  display: block;
  padding: 14px 24px;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.sidebar nav a:hover {
  background: #f5f5f5;
  color: #07c160;
}

.sidebar nav a.active {
  background: #e6f7ef;
  color: #07c160;
  border-right: 3px solid #07c160;
}

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: 200px;
  margin-top: 60px;
  padding: 24px;
  min-height: calc(100vh - 60px);
}

/* 数据统计 */
.stats-view h3 {
  margin-bottom: 24px;
  font-size: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 600;
  color: #07c160;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #999;
}

/* 钓点管理 */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.toolbar h3 {
  font-size: 20px;
}

.search-bar {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-bar input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.search-bar select {
  padding: 8px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}

.data-table {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.data-table th {
  background: #fafafa;
  font-weight: 600;
  font-size: 14px;
  color: #666;
}

.data-table td {
  font-size: 14px;
}

.data-table tr:hover {
  background: #fafafa;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status-active {
  background: #f6ffed;
  color: #52c41a;
}

.status-disabled {
  background: #fff1f0;
  color: #ff4d4f;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.pagination button {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn-primary {
  width: auto;
  padding: 8px 24px;
}

/* 修改密码 */
.password-view {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
}

.password-view h3 {
  margin-bottom: 24px;
  font-size: 20px;
}

.password-form {
  max-width: 400px;
}

.password-form .btn-primary {
  width: 100%;
  margin-top: 16px;
}

/* 大弹窗 */
.modal-large {
  width: 720px;
}

/* 地址搜索 */
.address-search {
  display: flex;
  gap: 8px;
}

.address-search input {
  flex: 1;
}

/* 地图容器 */
.map-container {
  width: 100%;
  height: 300px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 8px;
}

.map-tip {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
