:root {
  --wx-green: #07c160;
  --wx-green-dark: #06ad56;
  --wx-bg: #ededed;
  --wx-card: #fff;
  --wx-text: #191919;
  --wx-sub: #888;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--wx-bg);
  color: var(--wx-text);
  min-height: 100vh;
  padding-bottom: 58px;
}

.page { display: none; padding: 12px; max-width: 480px; margin: 0 auto; }
.page.active { display: block; }

.hero {
  background: linear-gradient(165deg, var(--wx-green) 0%, var(--wx-green-dark) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
}
.hero h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.hero p { margin: 0; opacity: 0.92; font-size: 14px; line-height: 1.5; }

.btn-wx {
  display: block;
  width: 100%;
  border: none;
  background: var(--wx-green);
  color: #fff;
  font-size: 16px;
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 500;
  cursor: pointer;
}
.btn-wx:active { opacity: 0.9; }
.btn-wx.outline {
  background: #fff;
  color: var(--wx-green);
  border: 1px solid var(--wx-green);
}

/* 登录/验证码主按钮：与微信绿区分，表示「手机号登录」非微信授权 */
.btn-login {
  display: block;
  width: 100%;
  border: none;
  background: #1677ff;
  color: #fff;
  font-size: 16px;
  padding: 14px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 500;
  cursor: pointer;
}
.btn-login:active { opacity: 0.9; }
.btn-login.outline {
  background: #fff;
  color: #1677ff;
  border: 1px solid #1677ff;
  margin-top: 0;
}

.card {
  background: var(--wx-card);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.form-row { margin-bottom: 12px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--wx-sub);
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 15px;
}
.form-row textarea { min-height: 72px; resize: vertical; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 54px;
  background: #f7f7f7;
  border-top: 1px solid #dcdcdc;
  display: flex;
  z-index: 100;
}
.tabbar button {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 11px;
  color: #666;
  cursor: pointer;
  padding-top: 6px;
}
.tabbar button.active { color: var(--wx-green); font-weight: 600; }
.tabbar .ico {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.toast-wrap {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 200;
  display: none;
  max-width: 80%;
  text-align: center;
}
.toast-wrap.show { display: block; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: rgba(7,193,96,.12);
  color: var(--wx-green-dark);
}

.list-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.list-item:last-child { border-bottom: none; }

/* 销售个人中心：工作概览（单行 + 微信绿） */
.sales-dash-row {
  background: #fff;
  border: 1px solid #07c160;
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(7, 193, 96, 0.08);
}
.sales-dash-row:active {
  opacity: 0.9;
  background: rgba(7, 193, 96, 0.04);
}
.sales-dash-row-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sales-dash-title {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: #07c160;
}
.dash-title-count {
  font-weight: 700;
  font-size: 15px;
  margin-left: 2px;
  opacity: 0.95;
}

/* 个人中心：退出登录（工作概览下方，半宽居中） */
.me-logout-wrap {
  text-align: center;
  margin-top: 16px;
}
.me-logout-wrap .btn-logout-half {
  width: 50%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
  box-sizing: border-box;
}
.sales-dash-meta {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: #07c160;
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sales-dash-meta.dash-teams-meta {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.sales-dash-arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: #07c160;
  line-height: 1;
  font-weight: 300;
  opacity: 0.85;
}

/* 下级列表：微信绿卡片、单行 */
.downline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.downline-list > .downline-card {
  background: #fff;
  border: 1px solid #07c160;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(7, 193, 96, 0.08);
}
.downline-list > .downline-card:active {
  opacity: 0.9;
  background: rgba(7, 193, 96, 0.04);
}
.downline-list > .downline-card-terminal:active {
  opacity: 1;
  background: #fff;
}
.downline-list .downline-card-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.downline-list .downline-card-line {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #07c160;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.downline-list .downline-card-arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: #07c160;
  line-height: 1;
  font-weight: 300;
  opacity: 0.85;
}
.downline-list > .downline-list-msg {
  font-size: 14px;
  color: #888;
  padding: 8px 0;
  margin: 0;
}

/* 销售报名列表：统计 + 行内跟进按钮 */
.sales-enroll-stat {
  font-size: 14px;
  font-weight: 600;
  color: #07c160;
  margin: 0 0 10px;
  padding: 4px 0;
}
.sales-enroll-list-wrap {
  gap: 10px;
}
.sales-enroll-row {
  margin-bottom: 0;
}
.sales-enroll-row .downline-card-inner,
.sales-enroll-row .downline-card-inner.sales-enroll-card-inner {
  align-items: flex-start;
  flex-wrap: nowrap;
}
.sales-enroll-detail {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #07c160;
  line-height: 1.5;
  white-space: normal;
  overflow: visible;
}
.sales-enroll-detail-row {
  margin-bottom: 4px;
  word-break: break-all;
}
.sales-enroll-detail-row:last-child {
  margin-bottom: 0;
}
.sales-enroll-lbl {
  color: #888;
  font-size: 12px;
  font-weight: 500;
  margin-right: 4px;
}
.sales-enroll-status-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #07c160;
  opacity: 0.9;
}
.sales-enroll-row-line {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #07c160;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sales-enroll-follow-btn {
  flex-shrink: 0;
  align-self: center;
  margin: 0 0 0 8px !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  border-color: #07c160 !important;
  color: #07c160 !important;
}
.sales-enroll-card-inner > .downline-card-arrow {
  align-self: center;
}

.sales-follow-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}
.sales-follow-modal.show {
  display: block;
}
.sales-follow-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.sales-follow-modal-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  max-width: 400px;
  margin: 0;
  z-index: 1;
}

/* 工作概览：意向学生加号（不触发整行点击） */
.dash-intent-add {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: 0 4px 0 6px;
  padding: 0;
  border: 1px solid #07c160;
  border-radius: 50%;
  background: #fff;
  color: #07c160;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-intent-add:active {
  background: rgba(7, 193, 96, 0.1);
}

/* 通知（绿）/ 战报（红） */
.push-card {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.push-card-notice {
  border: 2px solid #07c160;
  color: #0a7a3e;
}
.push-card-battle {
  border: 2px solid #c62828;
  color: #b71c1c;
}
.push-card-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.push-card-meta {
  font-size: 12px;
  margin: 6px 0;
  opacity: 0.85;
}
.push-card-snippet {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}
.push-card-readbtn {
  margin-top: 10px !important;
  width: 100%;
}
.push-detail-wrap {
  padding: 4px 2px 8px;
  border-radius: 8px;
}
.push-detail-notice {
  border-left: 4px solid #07c160;
  padding-left: 12px;
  color: #0a5;
}
.push-detail-battle {
  border-left: 4px solid #c62828;
  padding-left: 12px;
  color: #b71c1c;
}
