/* pages.css —— 页面专属样式 */

/* ===== 登录 / 注册 ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(160deg, var(--primary-light), var(--bg) 55%);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  text-align: center;
}
.auth-logo { font-size: 46px; margin-bottom: 8px; }
.auth-title { font-size: 22px; font-weight: 700; }
.auth-sub { font-size: 13px; color: var(--text-2); margin: 6px 0 22px; }
.tabs--auth { margin-bottom: 20px; }
.auth-form { text-align: left; }
.auth-form .field__input { margin-bottom: 0; }
.auth-tip { font-size: 12px; color: var(--text-3); margin-top: 16px; }

/* ===== 明细 ===== */
.detail-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 8px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.detail-summary__item { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.detail-summary__item span { font-size: 11px; color: var(--text-2); }
.detail-summary__item strong { font-size: 13px; font-variant-numeric: tabular-nums; }

.tx-group { margin-bottom: 18px; }
.tx-group__head {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.tx-group__net { font-variant-numeric: tabular-nums; }

/* ===== 旅游记账 ===== */
.trip-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.trip-card:active { transform: scale(0.99); }
.trip-card__top { display: flex; align-items: center; gap: 12px; }
.trip-card__emoji {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.trip-card__info { flex: 1; min-width: 0; }
.trip-card__name { font-size: 16px; font-weight: 700; }
.trip-card__meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.trip-card__edit { width: 34px; height: 34px; font-size: 16px; }
.trip-card__numbers {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-2);
}
.trip-card__numbers strong { font-size: 15px; }
.progress {
  height: 6px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}
.progress__bar { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s; }
.progress__bar.is-over { background: var(--danger); }
.trip-card__pct { font-size: 11px; color: var(--text-3); margin-top: 4px; text-align: right; }

.trip-detail__head { display: flex; justify-content: space-between; align-items: flex-start; }
.trip-detail__head .modal__title { margin-bottom: 2px; }
.trip-detail__meta { font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.trip-detail__sum {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.trip-detail__actions { display: flex; gap: 10px; margin-bottom: 14px; }

/* ===== 分类管理 ===== */
.cat-manage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cat-manage-item {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.cat-manage-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 8px;
}
.cat-manage-item__name { font-size: 13px; font-weight: 600; }
.cat-manage-item .badge { margin-top: 6px; display: inline-block; }
.cat-manage-item__edit {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.color-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid transparent;
}
.color-dot.is-active { border-color: var(--text); }

/* ===== 设置 ===== */
.user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.user-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-card__info { flex: 1; min-width: 0; }
.user-card__name { font-size: 16px; font-weight: 700; }
.user-card__email { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }

.settings-section { margin-bottom: 22px; }
.settings-section__title { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 10px; padding-left: 4px; }

.ledger-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.ledger-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ledger-card__name { font-size: 17px; font-weight: 700; }

.invite-box {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}
.invite-box__label { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.invite-box__code {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary);
  font-family: ui-monospace, monospace;
  margin-bottom: 12px;
  user-select: all;
}
.invite-box__actions { display: flex; gap: 10px; justify-content: center; }

.member-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
}
.member-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-2);
}
.member-item__name { flex: 1; font-size: 14px; }
.member-item__del { color: var(--danger); font-size: 14px; padding: 6px; }

.menu-list {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
  text-align: left;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--surface-2); }
.menu-item__icon { font-size: 18px; width: 24px; }
.menu-item__arrow { margin-left: auto; color: var(--text-3); font-size: 20px; }
.settings-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 24px; }

.switch-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.switch-item {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 15px;
}
.switch-item.is-active { border-color: var(--primary); background: var(--primary-light); }

/* ===== 配置提示页 ===== */
.notice-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.notice-card {
  max-width: 560px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 26px;
}
.notice-card__icon { font-size: 44px; margin-bottom: 14px; }
.notice-card h1 { font-size: 22px; margin-bottom: 10px; }
.notice-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.notice-steps { list-style: decimal; padding-left: 22px; margin-bottom: 16px; }
.notice-steps li { font-size: 14px; color: var(--text-2); margin-bottom: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.notice-steps code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; }
.notice-card__hint { font-size: 12px !important; color: var(--text-3) !important; }
