/* 飞书 H5 页面样式：自动登录页 + 待填表单列表页（对齐设计稿中保真原型） */
:root {
  --blue: #2b6cf5;
  --blue-weak: #eef3fe;
  --orange: #ff7d00;
  --orange-weak: #fff3e8;
  --green: #00b577;
  --green-weak: #e6f7f0;
  --text: #1f2329;
  --muted: #86909c;
  --muted-2: #a9aeb8;
  --border: #e5e6eb;
  --fill: #f2f3f5;
  --bg: #f5f6f7;
  --chevron: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a9aeb8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #ebedf0;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

.phone {
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.phone--gray { background: var(--bg); padding-bottom: 12px; }

/* 模拟状态栏（演示用） */
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 8px; font-size: 14px; font-weight: 600;
}
.statusbar__icons { display: flex; align-items: center; gap: 6px; }
.statusbar .ic { height: 12px; color: var(--text); }

.home-indicator {
  width: 132px; height: 5px; border-radius: 3px;
  background: rgba(31, 35, 41, .8);
  margin: 10px auto 8px; flex-shrink: 0;
}

/* ---- 01 自动登录页 ---- */
.login {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 0 32px;
}
.login__icon {
  width: 84px; height: 84px; border-radius: 22px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(43, 108, 245, .28);
}
.login__icon svg { width: 42px; height: 42px; }
.login__title { margin-top: 22px; font-size: 20px; font-weight: 600; }
.login__sub { margin-top: 8px; font-size: 14px; color: var(--muted); }
.spinner {
  margin-top: 44px; width: 22px; height: 22px;
  border: 2.5px solid var(--blue-weak); border-top-color: var(--blue);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.login__loading { margin-top: 12px; font-size: 14px; color: var(--blue); }
.user-pill {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--fill); border-radius: 999px; padding: 5px 14px 5px 6px;
  font-size: 13px; color: #4e5969;
}
.login__retry { margin-top: 16px; }
.login__foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 18px 0 6px; font-size: 12px; color: var(--muted-2);
}
.login__foot svg { width: 14px; height: 14px; }

.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar--lg { width: 46px; height: 46px; font-size: 18px; }

/* ---- 02 待填表单列表页 ---- */
.page-head {
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: 10px 16px 12px; background: #fff;
}
.page-head h1 { font-size: 17px; font-weight: 600; }
.page-head .more {
  position: absolute; right: 18px; color: var(--muted);
  font-size: 20px; letter-spacing: 1px; line-height: 1; user-select: none;
}

.profile { display: flex; align-items: center; gap: 12px; padding: 4px 16px 16px; background: #fff; }
.profile__name { font-size: 16px; font-weight: 600; }
.profile__sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
.pill--verify {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  background: var(--green-weak); color: var(--green);
  font-size: 12px; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.pill--verify svg { width: 12px; height: 12px; }

.stats { display: flex; background: #fff; padding: 2px 8px 16px; }
.stat { flex: 1; text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 26px; background: #eceef1;
}
.stat__num { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat__num--todo { color: var(--orange); }
.stat__num--done { color: var(--green); }
.stat__label { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.filters { padding: 12px 12px 0; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--fill); border-radius: 10px; padding: 0 12px; height: 38px;
}
.search svg { width: 16px; height: 16px; color: var(--muted-2); flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.search input::placeholder { color: var(--muted-2); }

.region-row { display: flex; gap: 8px; margin-top: 10px; }
.select {
  flex: 1; min-width: 0; height: 34px;
  appearance: none; -webkit-appearance: none;
  border: none; border-radius: 8px; outline: none;
  background-color: var(--fill); background-image: var(--chevron);
  background-repeat: no-repeat; background-position: right 9px center; background-size: 11px;
  padding: 0 26px 0 10px; font-size: 13px; color: var(--text);
}
.select:required:invalid { color: var(--muted-2); }
.select option { color: var(--text); }

.chip-row { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.chip {
  border: 1px solid var(--border); background: #fff; color: #4e5969;
  font-size: 13px; height: 30px; padding: 0 14px; border-radius: 999px; flex-shrink: 0;
}
.chip--on { background: var(--blue); border-color: var(--blue); color: #fff; }

.list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 4px;
}
.list-head h2 { font-size: 15px; font-weight: 600; }
.sort { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.sort select {
  appearance: none; -webkit-appearance: none; border: none; outline: none;
  background: transparent; font-size: 13px; color: var(--muted); padding-right: 14px;
  background-image: var(--chevron); background-repeat: no-repeat;
  background-position: right center; background-size: 10px;
}

.cards { padding: 6px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.card { background: #fff; border: 1px solid #eceef1; border-radius: 14px; padding: 13px 14px; }
.card__row1 { display: flex; align-items: center; gap: 8px; }
.card__name { font-size: 16px; font-weight: 600; }
.tag { font-size: 11.5px; border-radius: 999px; padding: 2.5px 9px; white-space: nowrap; }
.tag--plain { background: var(--fill); color: #6b7280; }
.tag--pending { background: var(--orange-weak); color: var(--orange); }
.tag--progress { background: var(--blue-weak); color: var(--blue); }
.tag--done { background: var(--green-weak); color: var(--green); }
.card__status { margin-left: auto; }
.card__row2 {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 8px; font-size: 12.5px; color: #7a8291;
}
.card__row3 { display: flex; align-items: center; gap: 4px; margin-top: 7px; font-size: 12.5px; color: #7a8291; }
.card__row3 svg { width: 13px; height: 13px; color: var(--muted-2); flex-shrink: 0; }
.card__row4 {
  display: flex; align-items: center; gap: 8px;
  margin-top: 11px; padding-top: 10px; border-top: 1px solid #f2f3f5;
}
.card__doc { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #333; min-width: 0; }
.card__doc svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; }
.card__deadline { font-size: 12px; color: var(--orange); white-space: nowrap; }
.card__deadline--muted { color: var(--muted-2); }
.card__action { margin-left: auto; }
.btn { border: none; border-radius: 999px; font-size: 13px; padding: 7px 15px; line-height: 1; }
.btn--solid { background: var(--blue); color: #fff; }
.btn--outline { background: #fff; border: 1px solid var(--blue); color: var(--blue); }
.done-note { margin-left: auto; font-size: 12px; color: var(--green); }

.empty { padding: 48px 0; text-align: center; font-size: 14px; color: var(--muted-2); }
.list-foot { padding: 14px 0 4px; text-align: center; font-size: 12px; color: var(--muted-2); }
.list-loading { display: flex; justify-content: center; padding: 40px 0; }
