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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  color: #333;
}

/* ============ 顶部标题栏 ============ */
.header {
  background: #ededed;
  padding: 0;
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  position: relative;
  min-height: 40px;
}

.header-back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  text-decoration: none;
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.header-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.header-subtitle {
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 0 16px 10px;
}

/* ============ 卡片列表 ============ */
.card-list {
  padding: 0;
}

.card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #fff;
  min-height: 52px;
  cursor: pointer;
  border-bottom: 1px solid #ededed;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.card-item:active {
  background: #f5f5f5;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 14px;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.card-name {
  font-size: 14px;
  color: #333;
  font-weight: 400;
}

.card-arrow {
  color: #c7c7cc;
  font-size: 22px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ============ 面包屑导航 ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #ededed;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb a {
  color: #007aff;
  text-decoration: none;
}

.breadcrumb span {
  color: #999;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

/* ============ 表单 ============ */
.form-container {
  padding: 16px;
  background: #fff;
}

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

.form-label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-label .required {
  color: #ff3b30;
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #5eaf53;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #c7c7cc;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #5eaf53;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.submit-btn:active {
  background: #4a9a42;
}

/* ============ 底部导航 ============ */
.bottom-nav {
  display: flex;
  background: #edeef3;
  padding: 8px 0;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  border-top: 1px solid #d9d9d9;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  text-decoration: none;
  font-size: 11px;
  padding: 4px 0;
  gap: 2px;
}

.bottom-nav-item .nav-icon {
  font-size: 22px;
}

.bottom-nav-item.active {
  color: #5eaf53;
}

/* ============ 成功页面 ============ */
.success-container {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #5eaf53;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  margin-bottom: 20px;
}

.success-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.success-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}

.back-btn {
  display: inline-block;
  padding: 12px 40px;
  background: #5eaf53;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}

/* ============ 后台管理 ============ */
.admin-container {
  padding: 16px;
  background: #fff;
  min-height: 100vh;
}

.admin-header {
  background: #5eaf53;
  color: #fff;
  padding: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin: -16px -16px 16px;
}

.admin-section {
  margin-bottom: 24px;
}

.admin-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #5eaf53;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-section-title .add-btn {
  font-size: 13px;
  background: #5eaf53;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #ededed;
  text-align: left;
}

.admin-table th {
  background: #f9f9f9;
  font-weight: 600;
  color: #666;
}

.admin-table .actions {
  display: flex;
  gap: 8px;
}

.edit-btn,
.delete-btn {
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
}

.edit-btn {
  color: #007aff;
  border-color: #007aff;
}

.delete-btn {
  color: #ff3b30;
  border-color: #ff3b30;
}

.edit-btn:hover {
  background: #007aff;
  color: #fff;
}

.delete-btn:hover {
  background: #ff3b30;
  color: #fff;
}

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

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.modal-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  margin-bottom: 16px;
}

.modal-input:focus {
  border-color: #5eaf53;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
}

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

.modal-btn.confirm {
  background: #5eaf53;
  color: #fff;
}

/* 投诉列表 */
.complaint-card {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.complaint-card .complaint-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.complaint-card .complaint-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.complaint-card .complaint-category {
  font-size: 12px;
  color: #5eaf53;
  background: #e8f5e9;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.complaint-card .complaint-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.complaint-card .complaint-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.complaint-card .complaint-city {
  font-size: 12px;
  color: #007aff;
  margin-top: 6px;
}

/* 标签切换 */
.tab-nav {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #ededed;
}

.tab-nav a {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 15px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-nav a.active {
  color: #5eaf53;
  border-bottom-color: #5eaf53;
  font-weight: 600;
}

/* 间距 */
.spacer-bottom {
  height: 60px;
}

/* 子分类页面回到首页 */
.sub-header {
  background: #ededed;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-header .back-link {
  color: #007aff;
  text-decoration: none;
  font-size: 14px;
}

.sub-header .category-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}