* { box-sizing: border-box; margin: 0; padding: 0; }
body.mp-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mp-page.has-tabbar { padding-bottom: 56px; }
.mp-page.has-bottom-bar { padding-bottom: 72px; }

.nav-bar {
  height: 44px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-bar .back { color: #576b95; min-width: 56px; cursor: pointer; flex-shrink: 0; }
.nav-bar .title { flex: 1; text-align: center; font-weight: 600; font-size: 16px; }
.nav-bar .action { color: #576b95; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.nav-bar .nav-spacer { width: 56px; flex-shrink: 0; }
.nav-bar.nav-home .nav-left {
  min-width: auto;
  max-width: 42%;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-bar.nav-home .title { font-size: 15px; }

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  z-index: 20;
}
.tab-bar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
  cursor: pointer;
}
.tab-bar .tab.active { color: #07c160; }
.tab-bar .tab .icon { font-size: 20px; margin-bottom: 2px; }

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
  z-index: 20;
}
.btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
.btn-default { background: #f2f2f2; color: #333; }
.btn-primary { background: #07c160; color: #fff; }
.btn-warn { background: #fa5151; color: #fff; }
.btn-outline { background: #fff; border: 1px solid #07c160; color: #07c160; }

.content { padding: 12px; }

.banner {
  height: 140px;
  background: linear-gradient(135deg, #1a5f3c 0%, #2d8f5c 100%);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  margin-bottom: 16px;
}
.banner .label { font-size: 18px; font-weight: 600; opacity: 0.9; }

.cta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #07c160;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(7,193,96,.35);
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 10px;
  color: #333;
}

.issue-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.issue-card .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.issue-card .issue-no { font-weight: 600; color: #333; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.tag-pending { background: #fff3e0; color: #e65100; }
.tag-accepted { background: #e3f2fd; color: #1565c0; }
.tag-resolved { background: #e8f5e9; color: #2e7d32; }
.tag-revoked { background: #eeeeee; color: #757575; }
.tag-processing { background: #e3f2fd; color: #1565c0; }
.tag-commented { background: #f3e5f5; color: #7b1fa2; }
.tag-escalated { background: #fff3e0; color: #e65100; }
.tag-urgent { background: #ffebee; color: #c62828; }
.tag-alert { background: #fce4ec; color: #ad1457; }
.issue-card .body {
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.issue-card .footer { font-size: 12px; color: #999; }

.tabs-inline {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.tabs-inline .tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tabs-inline .tab-item.active {
  color: #07c160;
  border-bottom-color: #07c160;
  font-weight: 600;
}

.search-box {
  padding: 8px 12px;
  background: #fff;
}
.search-box input {
  width: 100%;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 18px;
  padding: 0 16px;
  font-size: 14px;
}

.user-header {
  background: #fff;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.user-header .avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #ddd;
}
.user-header .info .name { font-size: 18px; font-weight: 600; }
.user-header .info .id { font-size: 12px; color: #999; margin-top: 4px; }

.cell-list { background: #fff; }
.cell-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.cell-item .label { flex: 1; }
.cell-item .arrow { color: #ccc; }

.form-group {
  background: #fff;
  margin-bottom: 10px;
  padding: 0 16px;
}
.form-group label {
  display: block;
  padding: 12px 0 6px;
  color: #666;
  font-size: 13px;
}
.form-group textarea,
.form-group input,
.form-group select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0 12px;
  font-size: 14px;
  outline: none;
}
.form-group textarea { min-height: 100px; resize: vertical; }

.upload-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.upload-item {
  width: 72px;
  height: 72px;
  background: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 24px;
  cursor: pointer;
}

.detail-block {
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.detail-block .row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}
.detail-block .content-text {
  line-height: 1.6;
  color: #333;
  margin-top: 8px;
}
.img-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.img-row .thumb {
  width: 72px;
  height: 72px;
  background: #eee;
  border-radius: 4px;
}

.progress-tree { padding-left: 4px; }
.progress-tree .node {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid #e8e8e8;
  margin-left: 6px;
}
.progress-tree .node:last-child { border-left-color: transparent; padding-bottom: 4px; }
.progress-tree .node .dot {
  position: absolute;
  left: -7px;
  top: 2px;
  border-radius: 50%;
  box-sizing: border-box;
}
.progress-tree .dot-lg { width: 12px; height: 12px; left: -9px; top: 1px; }
.progress-tree .dot-sm { width: 8px; height: 8px; left: -7px; top: 4px; }
.progress-tree .dot-green { background: #07c160; }
.progress-tree .dot-blue { background: #1989fa; }
.progress-tree .dot-gray { background: #bdbdbd; }
.progress-tree .dot-orange { background: #ff9800; }
.progress-tree .node .time { font-size: 12px; color: #999; }
.progress-tree .node .action { font-weight: 500; margin: 4px 0 2px; font-size: 14px; }
.progress-tree .node .sub { font-size: 11px; color: #aaa; line-height: 1.4; }

.alert-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #fff3e0; }

.grid-directory {
  display: flex;
  height: calc(100vh - 44px);
}
.grid-directory .col-left {
  width: 100px;
  background: #f5f5f5;
  overflow-y: auto;
}
.grid-directory .col-left .item {
  padding: 14px 10px;
  font-size: 13px;
  cursor: pointer;
}
.grid-directory .col-left .item.active { background: #fff; color: #07c160; font-weight: 600; }
.grid-directory .col-right {
  flex: 1;
  background: #fff;
  overflow-y: auto;
  padding: 8px;
}
.grid-item {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.grid-item .name { font-weight: 600; margin-bottom: 4px; }
.grid-item .meta { font-size: 12px; color: #999; line-height: 1.4; }

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 100;
  display: none;
}
.toast.show { display: block; }

.readonly-field {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 4px 0 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}
.detail-zone { margin-bottom: 12px; }
.detail-zone .zone-label {
  font-size: 12px; color: #07c160; font-weight: 600;
  padding: 8px 16px 4px; background: #f5f5f5;
}
.zone-grid-meta {
  font-size: 12px; color: #666; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed #eee;
}
.zone-grid-meta.highlight { color: #e65100; }
.detail-zone .sub-title { font-weight: 600; margin-bottom: 6px; }
.detail-zone .handler-id { font-size: 12px; color: #999; font-weight: normal; }

.readonly-field .sub {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
