:root {
  --ml-bg: #f6f8fc;
  --ml-surface: #ffffff;
  --ml-text: #1f2937;
  --ml-text-secondary: #6b7280;
  --ml-text-muted: #9ca3af;
  --ml-accent: #3b82f6;
  --ml-accent-soft: #93c5fd;
  --ml-ok: #22c55e;
  --ml-radius: 26px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--ml-bg);
  color: var(--ml-text);
  font-family: "PingFang SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 甯冨眬 ---------- */
.ml-page {
  min-height: 100vh;
  padding: 64px 24px 36px;
  display: flex;
  flex-direction: column;
}

.ml-header {
  text-align: center;
  margin-bottom: 44px;
  animation: ml-rise 0.6s ease both;
}

.ml-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111827;
}

.ml-header .ml-sub {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ml-text-muted);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
}

.ml-header .ml-sub::before,
.ml-header .ml-sub::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  margin: 0 12px;
  background: #cdd4e0;
  vertical-align: middle;
}

.ml-shell {
  position: relative;
  /* 璁捐绋跨敾妗嗗昂瀵革細鏁翠釜鍐呭澹冲浐瀹 960脳600 */
  width: 960px;
  height: 600px;
  max-width: 100%;
  margin: 0 auto;
  animation: ml-rise 0.7s 0.08s ease both;
}

@keyframes ml-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 涓诲崱鐗 ---------- */
.ml-card {
  background: var(--ml-surface);
  border-radius: var(--ml-radius);
  box-shadow:
    0 32px 80px -24px rgba(23, 32, 51, 0.16),
    0 4px 16px rgba(23, 32, 51, 0.06);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: center;
  /* 澹冲浐瀹 600 楂橈紝鍗＄墖閾烘弧 */
  height: 100%;
}

.ml-hero-wrap {
  position: relative;
  /* 鏂板缓灞傚彔涓婁笅鏂囷細淇濊瘉 ::before 鍦嗙偣鐨 z-index:-1 钀藉湪钃濆簳涔嬩笂銆佸唴瀹逛箣涓嬶紝涓嶄細绌垮埌鍗＄墖鍚庨潰 */
  z-index: 0;
  /* 瀵硅娓愬彉锛氬乏涓嬭銆佸彸涓婅娴呰摑鍋忕櫧锛屾部瀵硅绾挎柟鍚戜腑闂磋繃娓′负钃濊壊 */
  background: linear-gradient(to top right, #edf4fd 0%, #f5f9ff 30%,#dbe8fc 60%, #f5f9ff 100%);
  border-radius: 18px;
  /* 璁捐绋匡細涓 padding 楂樹簬涓 padding */
  padding: 55px 35px 50px;
  display: flex;
  flex-direction: column;
  /* 鏍囬/鎻忚堪璐撮《閮紝鎴浘璐村簳閮紝涓棿鐣欑櫧 */
  justify-content: space-between;
  overflow: hidden;
}

/* 宸︿笅瑙掕楗板渾鐐癸細6 鍒 脳 3 鎺掞紝浣嶄簬鎴浘涓嬪眰銆
   缃戞牸浠庤窛宸﹁竟銆佸簳杈瑰悇绾 14px 澶勫紑濮嬶紱鎴浘搴曡竟浼氬帇浣忕 1 鎺掔殑澶ч儴鍒嗗渾鐐 */
.ml-hero-wrap::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 108px; /* 6 脳 18px */
  height: 54px; /* 3 脳 18px */
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.28) 3px, transparent 3.5px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: -1;
}

/* 璁捐绋匡細鏍囬 + 涓よ鎻忚堪 */
.ml-hero-head {
  margin-bottom: 20px;
}

.ml-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #172033;
  margin-bottom: 8px;
}

.ml-hero-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #999999;
  /* moduleDesc 閲岀敤 \n 鎵嬪姩鏂锛屽浐瀹氫袱琛岋紝涓嶉殢瀹藉害鍙樺寲 */
  white-space: pre-line;
}

/* 鎴浘锛氱櫧鑹插崱鐗囧簳 + 闃村奖銆傞珮搴﹁窡闅忓浘鐗囷紙瀹藉害涓哄噯锛夛紝涓嶆媺浼 */
.ml-hero-shot {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px -12px rgba(23, 32, 51, 0.18);
  /* padding: 12px; */
  overflow: hidden;
}

.ml-hero {
  width: 100%;
  display: block;
  pointer-events: none;
}

/* ---------- 鐢ㄦ埛闈㈡澘 ---------- */
.ml-user {
  text-align: center;
  padding: 6px 4px 0;
  min-height: 360px;
}

.ml-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
}

.ml-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--ml-accent-soft), var(--ml-accent), var(--ml-accent-soft));
  z-index: -1;
}

.ml-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f6;
  border: 4px solid #fff;
  display: block;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.16);
}

.ml-avatar-fallback {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #eef2f8;
  color: var(--ml-accent);
  border: 4px solid #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
}

.ml-avatar-wrap.is-guest::before {
  display: none;
}

.ml-avatar-wrap.is-guest .ml-avatar-fallback {
  background: rgba(255, 255, 255, 0.65);
  border: 2px dashed #c9d2e2;
  box-shadow: none;
  color: #8a94a8;
}

.ml-avatar-wrap.is-guest .ml-avatar-fallback svg {
  width: 34px;
  height: 34px;
}

.ml-user-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ml-user-company,
.ml-user-phone {
  font-size: 13px;
  color: var(--ml-text-secondary);
  margin-bottom: 4px;
}

.ml-user-role {
  display: inline-block;
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 3px 12px;
  border-radius: 6px;
  margin: 2px 0 6px;
}

.ml-user-phone {
  color: var(--ml-text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.ml-enter {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--ml-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 26px -8px rgba(23, 32, 51, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ml-enter:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 16px 32px -8px rgba(23, 32, 51, 0.4);
}

.ml-enter:active {
  transform: translateY(0);
}

.ml-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.ml-ghost {
  flex: 1;
  height: 38px;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  background: #fff;
  color: var(--ml-text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ml-ghost:hover {
  color: var(--ml-accent);
  border-color: var(--ml-accent);
  background: #fff;
}

.ml-ghost svg {
  width: 14px;
  height: 14px;
}

.ml-footer {
  margin-top: auto;
  padding-top: 34px;
  text-align: center;
  font-size: 12px;
  color: #b6bccb;
}

/* ---------- 璁垮鎬侊細鍙充晶鍐呭祵鐧诲綍鍗 ---------- */
.ml-login-host {
  width: 100%;
  margin-top: 14px;
  text-align: left;
}

.ml-guest-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f6;
  border: 4px solid #fff;
  display: block;
  margin: 0 auto;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.16);
}

/* 璁垮鎬佸彸鏍忎笌宸︿晶鍥惧瀭鐩村眳涓紙.ml-card 鐨 align-items: center 鍏滃簳鏄惧紡鍖栵級 */
.ml-page.ml-guest .ml-user {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* 璁垮鎬侊細宸﹀彸涓ゆ爮鎷変几绛夐珮銆侀《閮ㄥ榻愶紙宸﹀浘閾烘弧楂樺害锛宑over 瑁佸壀锛 */
.ml-page.ml-guest .ml-card {
  align-items: stretch;
  /* 澹抽珮鍥哄畾 600锛岃楂樻樉寮忔拺婊★紝閬垮厤 auto 琛岄珮渚濊禆鍐呭 */
  grid-template-rows: minmax(0, 1fr);
}

.ml-page.ml-guest .ml-hero-wrap {
  height: 100%;
}

/* 璁垮鎬侊細鎴浘浠ュ搴︿负鍑嗛摵婊★紝楂樺害鎸夊浘鐗囨瘮渚嬭嚜閫傚簲锛堝瀭鐩存柟鍚戠敱 .ml-hero-shot 灞呬腑锛 */
.ml-page.ml-guest .ml-hero {
  width: 100%;
  height: auto;
}

/* ---------- 鍝嶅簲寮 ---------- */
@media (max-width: 800px) {
  .ml-page.ml-guest .ml-card {
    grid-template-columns: 1fr;
  }

  .ml-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
    height: auto;
  }

  /* 灏忓睆鍙栨秷澹崇殑鍥哄畾楂樺害锛屽唴瀹硅嚜鐒舵拺寮€ */
  .ml-shell {
    height: auto;
  }

  .ml-hero-wrap {
    display: none;
  }

  /* 璁垮鎬侊細鎵嬫満绔櫥褰曞崱闄愬埗鏈€澶у搴﹀苟姘村钩灞呬腑 */
  .ml-page.ml-guest .ml-user {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
  }

  /* 璁垮鎬侊細logo 鎾戦珮鍙虫爮锛屾墜鏈虹缂╁皬 */
  .ml-page.ml-guest .ml-guest-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
  }
}

@media (max-width: 560px) {
  .ml-page {
    padding: 44px 16px 24px;
  }

  .ml-header {
    margin-bottom: 36px;
  }

  .ml-header h1 {
    font-size: 24px;
  }

  .ml-card {
    padding: 16px;
  }
}

[v-cloak] {
  display: none;
}
