/* 招生小程序 Web 版样式 */
* { box-sizing: border-box; }

:root {
  --primary: #2f7fff;
  --primary-dark: #1a66d8;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #ff4d4f;
  --text: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #e8e8e8;
  --bg: #f5f7fa;
  --card-bg: #fff;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

.btn {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:active { background: var(--primary-dark); }

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-sm {
  display: inline-block;
  width: auto;
  padding: 0 16px;
  height: 36px;
  line-height: 36px;
  font-size: 14px;
}

.empty-tip {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 14px;
  margin-right: 8px;
}

.tag-default { background: #f5f5f5; color: var(--text-secondary); }
.tag-primary { background: #e6f7ff; color: #1890ff; }
.tag-warning { background: #fffbe6; color: #faad14; }
.tag-success { background: #f6ffed; color: #52c41a; }
.tag-danger { background: #fff1f0; color: #ff4d4f; }

/* 首页 */
.admin-link {
  text-align: right;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 8px;
  cursor: pointer;
}

.cover-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-mask {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.cover-title {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
}

.content-text {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.8;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child { border-bottom: none; }

.contact-label { color: var(--text-secondary); }

.apply-btn, .share-btn { margin-top: 16px; }

/* 表单 */
.header {
  text-align: center;
  padding: 24px 0 16px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--bg) 100%);
  margin: -16px -16px 16px;
}

.header-title { font-size: 26px; font-weight: 600; color: #fff; }
.header-sub { font-size: 15px; color: rgba(255,255,255,0.9); margin-top: 6px; }

.admin-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 22px;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 20px;
  color: #fff;
  font-size: 15px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
}

.form-item {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
}

.form-item:last-child { border-bottom: none; }

.block-item {
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 0;
}

.label {
  width: 100px;
  font-size: 17px;
  color: var(--text);
  flex-shrink: 0;
}

.block-item .label { margin-bottom: 8px; }

.input, select, textarea {
  flex: 1;
  border: none;
  font-size: 17px;
  font-family: inherit;
  background: transparent;
}

.input { height: 56px; }
select { height: 56px; background: #fff; }
textarea {
  width: 100%;
  height: 140px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  resize: vertical;
}

.word-count {
  align-self: flex-end;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tips {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
}

/* 成功页 */
.success-page { text-align: center; padding-top: 40px; }
.icon-wrap {
  width: 80px; height: 80px; line-height: 80px;
  border-radius: 50%; background: var(--success);
  margin: 0 auto 20px;
  color: #fff; font-size: 44px; font-weight: bold;
}

/* 后台 */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.logout { color: var(--danger); cursor: pointer; }

.stats-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  text-align: center;
}

.stats-value { font-size: 32px; font-weight: 700; color: var(--primary); }
.stats-label { font-size: 14px; color: var(--text-secondary); }

.dist-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dist-item {
  flex: 1;
  min-width: 90px;
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.dist-name { display: block; font-size: 14px; color: var(--text-secondary); }
.dist-value { display: block; font-size: 20px; font-weight: 600; }

.recent-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.recent-main, .recent-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recent-time { font-size: 13px; color: var(--text-muted); }

/* 筛选与列表 */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.search-bar input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
}

.filter-label { color: var(--text-secondary); font-size: 14px; white-space: nowrap; }

.filter-item {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-item.active { background: var(--primary); color: #fff; }

.lead-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
}

.lead-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lead-name { font-size: 18px; font-weight: 600; }

.lead-info { color: var(--text-secondary); font-size: 15px; margin-bottom: 10px; }

.status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 15px;
}

.status-btn.active { background: var(--primary); color: #fff; }

.follow-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.follow-time { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-label { color: var(--text-secondary); }

.major-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.major-status {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
}

.major-status.open { color: var(--success); background: #f6ffed; }
.major-status.closed { color: var(--text-muted); background: #f5f5f5; }

.major-actions { display: flex; gap: 14px; }
.action-text { color: var(--primary); cursor: pointer; font-size: 14px; }
.action-text.delete { color: var(--danger); }

.add-row { display: flex; gap: 10px; margin-bottom: 12px; }
.add-row input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; }

.cover-preview {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--bg);
}
