/* =========================================================
   用户中心 / 登录注册 页样式（蓝色调）
   ========================================================= */

.auth-page {
  min-height: 100vh; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(1000px 460px at 12% -10%, #dbeafe 0%, rgba(219,234,254,0) 62%),
    radial-gradient(880px 420px at 92% 8%, #dff3fb 0%, rgba(223,243,251,0) 58%),
    linear-gradient(160deg, #f3f8ff 0%, #eef4fd 100%);
}

.auth-wrap { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 28px 70px -26px rgba(23, 43, 92, .32);
}
.auth-wrap.single { max-width: 460px; grid-template-columns: 1fr; }

/* 左侧品牌区 */
.auth-aside {
  position: relative; overflow: hidden;
  padding: 40px 36px; color: #fff;
  background: var(--brand-grad);
  display: flex; flex-direction: column;
}
.auth-aside::after {
  content: ''; position: absolute; right: -70px; bottom: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 70%);
}
.auth-aside .logo {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700; margin-bottom: 22px;
}
.auth-aside h2 { font-size: 23px; color: #fff; letter-spacing: -.3px; }
.auth-aside .sub { font-size: 13.5px; color: rgba(255,255,255,.86); margin-top: 10px; line-height: 1.85; }
.auth-aside ul {
  list-style: none; padding: 0; margin: 26px 0 0; position: relative;
}
.auth-aside li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: rgba(255,255,255,.94); margin-bottom: 13px; line-height: 1.6;
}
.auth-aside li .n {
  width: 20px; height: 20px; border-radius: 7px; flex: 0 0 auto;
  background: rgba(255,255,255,.2); font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.auth-aside .foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.7); position: relative; }

/* 右侧表单区 */
.auth-main { padding: 38px 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-main h1 { font-size: 21px; letter-spacing: -.3px; }
.auth-main .lead { font-size: 13.5px; color: var(--muted); margin: 7px 0 24px; }

.auth-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 22px;
  background: #eef3fb; border-radius: 12px;
}
.auth-tabs a {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 9px;
  font-size: 13.5px; color: var(--text-2); text-decoration: none; transition: all .15s;
}
.auth-tabs a.on { background: #fff; color: var(--primary-dark); font-weight: 600; box-shadow: var(--shadow-xs); }
.auth-tabs a:hover { text-decoration: none; }

.auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.auth-actions .link { font-size: 13px; }

.reset-link-box {
  margin-top: 16px; padding: 14px 16px;
  background: #f6faff; border: 1px dashed #c8dafb; border-radius: 12px;
  font-size: 13px; color: var(--text-2); line-height: 1.8;
}
.reset-link-box code {
  display: block; margin-top: 8px; padding: 9px 11px; word-break: break-all;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--primary-dark);
}

@media (max-width: 820px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 30px 24px; }
}

/* =========================================================
   用户中心
   ========================================================= */
.console-page { background: var(--bg); min-height: 100vh; }

.c-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.7) blur(12px);
  border-bottom: 1px solid rgba(37,99,235,.10);
}
.c-header .inner {
  max-width: 1280px; margin: 0 auto; padding: 0 18px;
  height: 60px; display: flex; align-items: center; gap: 14px;
}
.c-header .brand { display: flex; align-items: center; gap: 10px; }
.c-header .brand .logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-grad);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; box-shadow: 0 4px 12px rgba(37,99,235,.32);
}
.c-header .brand .t { font-size: 15px; font-weight: 700; }

.c-layout {
  max-width: 1280px; margin: 0 auto; padding: 22px 18px 60px;
  display: grid; grid-template-columns: 216px 1fr; gap: 22px; align-items: start;
}

.c-side {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 12px; position: sticky; top: 82px;
}
.c-side .grp {
  font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .6px;
  padding: 12px 10px 7px;
}
.c-side .grp:first-child { padding-top: 4px; }
.c-side a.c-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 10px; margin-bottom: 2px;
  font-size: 13.5px; color: var(--text-2); text-decoration: none; transition: all .14s;
}
.c-side a.c-item:hover { background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; }
.c-side a.c-item.on { background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(37,99,235,.7); }
.c-side .c-item .ico { width: 17px; text-align: center; font-size: 13px; opacity: .9; }
.c-side .c-item .badge { margin-left: auto; }

.c-main { min-width: 0; }
.c-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.c-title h1 { font-size: 20px; letter-spacing: -.3px; }
.c-title .d { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 表格内的小按钮组 */
.row-acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* 字段配置行 */
.field-row {
  display: grid; grid-template-columns: 26px 1fr;
  gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2);
}
.field-row:last-child { border-bottom: 0; }
.field-row .drag { color: #c3cbdb; cursor: grab; text-align: center; font-size: 15px; user-select: none; }
.field-row .body { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.field-row .flags { display: flex; gap: 12px; flex-wrap: wrap; grid-column: 1 / -1; }

/* 类型选择网格 */
type-grid { display: block; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 9px; }
.type-card {
  border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 12px;
  cursor: pointer; transition: all .15s; background: #fff;
}
.type-card:hover { border-color: #bed2f7; background: var(--primary-soft); }
.type-card.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-ring); }
.type-card .t { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.type-card .h { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* 导入拖拽区 */
.drop-zone {
  border: 2px dashed #c8d8f5; border-radius: 16px; padding: 34px 20px;
  text-align: center; background: #f9fbff; cursor: pointer; transition: all .18s;
}
.drop-zone:hover, .drop-zone.over { border-color: var(--primary); background: var(--primary-soft); }
.drop-zone .ic { font-size: 38px; opacity: .7; margin-bottom: 10px; }
.drop-zone .t { font-size: 15px; font-weight: 600; color: var(--text-2); }
.drop-zone .d { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.imp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.imp-table th, .imp-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.imp-table th { background: #f7faff; color: var(--text-2); font-weight: 600; }

/* 窄屏 */
@media (max-width: 900px) {
  .c-layout { grid-template-columns: 1fr; }
  .c-side { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
  .c-side .grp { display: none; }
  .c-side a.c-item { white-space: nowrap; margin-bottom: 0; }
}

/* =========================================================
   扫码登录（PC 端登录页）
   ========================================================= */
.qrlogin-panel { display: flex; flex-direction: column; align-items: center; }
.qrlogin-canvas {
  position: relative; width: 226px; height: 226px; padding: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(16, 32, 64, .06));
  display: flex; align-items: center; justify-content: center;
}
.qrlogin-canvas svg { width: 208px; height: 208px; display: block; }
.qrlogin-canvas .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; line-height: 1.7;
}
.qrlogin-canvas .mask {
  position: absolute; inset: 0; z-index: 2; border-radius: 14px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(2px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--text-2); text-align: center; padding: 16px;
}
.qrlogin-canvas .mask.show { display: flex; }
.qrlogin-canvas .mask .ico { font-size: 26px; }

.qrlogin-tip { margin-top: 14px; font-size: 13px; color: var(--text-2); text-align: center; line-height: 1.7; min-height: 22px; }
.qrlogin-tip.err { color: var(--danger, #dc2626); }
.qrlogin-tip.suc { color: var(--success, #16a34a); }
.qrlogin-tip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 6px; vertical-align: 1px; animation: qrPulse 1.4s ease-in-out infinite; }
@keyframes qrPulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.qrlogin-code {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.qrlogin-code b {
  font-family: var(--mono); font-size: 20px; letter-spacing: 3px; color: var(--text-1, #111827);
}
.qrlogin-code .mini {
  font-size: 12px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer; color: var(--text-2);
}
.qrlogin-code .mini:hover { border-color: var(--primary); color: var(--primary-dark); }

.qrlogin-steps { margin-top: 20px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.qrlogin-steps b { color: var(--text-2); }
.qrlogin-alt { margin-top: 18px; text-align: center; }
.qrlogin-alt .link { font-size: 13px; cursor: pointer; }

