/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; color: inherit; }
button { border: none; outline: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }

/* ===== 容器 ===== */
.container { max-width: 480px; margin: 0 auto; padding: 16px; }
.page { padding-bottom: 40px; }

/* ===== 导航栏 ===== */
.navbar {
  background: #07c160;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 18px;
  font-weight: 500;
}
.navbar .back {
  position: absolute;
  left: 16px;
  font-size: 22px;
  cursor: pointer;
}

/* ===== 卡片 ===== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ===== 按钮 ===== */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn:active { opacity: 0.85; }
.btn-primary { background: #07c160; color: #fff; }
.btn-default { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-danger { background: #fa5151; color: #fff; }
.btn-sm {
  display: inline-block;
  width: auto;
  padding: 8px 20px;
  font-size: 14px;
}

/* ===== 表单 ===== */
.form-item { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
}
.form-input:focus, .form-textarea:focus { border-color: #07c160; }
.form-textarea { height: 120px; resize: none; }
.radio-group { display: flex; gap: 24px; margin-top: 8px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 15px; }

/* ===== 标题文字 ===== */
.title { font-size: 20px; font-weight: bold; color: #333; margin-bottom: 12px; }
.desc { font-size: 14px; color: #666; line-height: 1.6; }

/* ===== 网格入口 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s;
}
.grid-item:active { transform: scale(0.97); }
.grid-icon { font-size: 36px; margin-bottom: 8px; }
.grid-title { font-size: 15px; font-weight: 500; color: #333; }
.grid-desc { font-size: 12px; color: #999; margin-top: 4px; }

/* ===== 列表 ===== */
.list-item {
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.nav-arrow { color: #ccc; font-size: 14px; }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.tag-green { background: #e6f7ed; color: #07c160; }
.tag-gray { background: #f5f5f5; color: #999; }
.tag-orange { background: #fff2e8; color: #fa8c16; }

/* ===== 用户信息区 ===== */
.user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.user-meta { flex: 1; }
.user-name { font-size: 18px; font-weight: bold; color: #333; }
.user-sub { font-size: 13px; color: #999; margin-top: 4px; }

/* ===== Tab ===== */
.tabs {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  background: #fff;
  border: none;
}
.tab.active {
  color: #07c160;
  background: #e6f7ed;
  font-weight: bold;
}

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 60px 20px; color: #bbb; font-size: 14px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  white-space: nowrap;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== 底部版权 ===== */
.footer {
  text-align: center;
  margin-top: 30px;
  color: #ccc;
  font-size: 12px;
}

/* ===== 隐藏 ===== */
.hidden { display: none !important; }
