/* 用户「设置」列表：参考独立卡片行 + 顶栏，与蓝湖「我的」色系协调 */
/* 避免 html/body 默认白底在渐变页面外缘露出“一圈白边” */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #d9edff;
}

.ms2-page {
  min-height: 100dvh;
  background: linear-gradient(180deg, #d9edff 0%, #eef6ff 38%, #f4f9ff 100%);
  padding: 0 max(12px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.ms2-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  /*background: linear-gradient(180deg, rgba(217, 237, 255, 0.95) 0%, rgba(238, 246, 255, 0.9) 100%);*/
  backdrop-filter: blur(8px);
}

.ms2-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.ms2-back:active {
  opacity: 0.75;
}

.ms2-back img {
  width: 22px;
  height: 22px;
  display: block;
}

.ms2-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #06224b;
  margin: 0;
  padding-right: 40px;
}

/* nickname / password：标题相对顶栏可视区域水平居中；左返回、右保存 */
.ms2-top--form {
  position: relative;
  justify-content: space-between;
}

.ms2-top--form .ms2-title-inline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: calc(100vw - 140px);
  font-size: 16px;
  font-weight: 600;
  color: #06224b;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.ms2-top--form .ms2-back,
.ms2-top--form .ms2-save-text {
  position: relative;
  z-index: 1;
}

.ms2-save-text {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 4px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: #4a60b2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ms2-save-text:active {
  opacity: 0.65;
}

.ms2-sub {
  margin: 18px 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.ms2-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(30, 92, 164, 0.08);
}

.ms2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  font-size: 15px;
  color: #06224b;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 34, 75, 0.06);
  -webkit-tap-highlight-color: transparent;
}

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

.ms2-row:active {
  background: rgba(185, 225, 253, 0.35);
}

.ms2-row.danger {
  color: #b91c1c;
}

/* 与登录页一致的 canvas 品牌 Logo（尺寸对齐 login.css .avatar-wrapper） */
.ms2-brand-logo-slot {
  display: flex;
  justify-content: center;
  margin: 4px 0 4px;
}
.ms2-brand-logo-wrap {
  height: 120px;
  width: 120px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms2-brand-logo-wrap canvas {
  display: block;
  width: 120px;
  height: 120px;
  background: transparent;
  transform: scale(1.28);
  transform-origin: center center;
}

.ms2-chevron {
  flex-shrink: 0;
  opacity: 0.35;
  font-size: 18px;
  line-height: 1;
}

.ms2-static-body {
  margin-top: 8px;
  padding: 16px;
  /*background: rgba(255, 255, 255, 0.82);*/
  border-radius: 16px;
  /*border: 1px solid rgba(255, 255, 255, 0.9);*/
  font-size: 15px;
  line-height: 1.65;
  color: #1e293b;
  /*box-shadow: 0 8px 28px rgba(30, 92, 164, 0.06);*/
}

.ms2-static-body:empty::before,
.ms2-static-body.ms2-empty {
  color: #94a3b8;
}

.ms2-form {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(30, 92, 164, 0.06);
}

/* 昵称 / 密码编辑：无卡片、无阴影，与页面背景一体 */
.ms2-form--plain {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 20px 4px 8px;
  margin-top: 4px;
}

.ms2-label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.ms2-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(6, 34, 75, 0.12);
  font-size: 15px;
  margin-bottom: 14px;
  background: #fff;
}

.ms2-input--underline {
  display: block;
  padding: 10px 0 8px;
  margin-bottom: 20px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(6, 34, 75, 0.22);
  background: transparent;
  font-size: 16px;
  color: #06224b;
  outline: none;
}

.ms2-input--underline:focus {
  border-bottom-color: #4a60b2;
}

.ms2-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.5;
}

.ms2-row-readonly {
  cursor: default;
}

.ms2-row-readonly:active {
  opacity: 1;
}

.ms2-readonly-val {
  color: #64748b;
  font-size: 14px;
}

.ms2-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(6, 34, 75, 0.06);
}

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

.ms2-info-label {
  flex-shrink: 0;
  font-size: 15px;
  color: #334155;
}

.ms2-info-val {
  flex: 1;
  text-align: right;
  font-size: 14px;
  color: #64748b;
  word-break: break-all;
}

.ms2-foot {
  margin: 10px 4px 0;
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
}

.ms2-lh-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 8px 28px rgba(30, 92, 164, 0.06);
}

.ms2-lh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ms2-lh-ip {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-all;
}

.ms2-lh-tag {
  flex-shrink: 0;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
}

.ms2-lh-tag--ok {
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
}

.ms2-lh-tag--fail {
  color: #b45309;
  background: rgba(251, 191, 36, 0.15);
}

.ms2-lh-time {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}

.ms2-empty-hint {
  margin: 24px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.ms2-pager {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ms2-pager-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(6, 34, 75, 0.12);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
}

.ms2-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
