﻿:root {
  --ep-bg: #eef1f4;
  --ep-sidebar: #1c2430;
  --ep-sidebar-text: #a8b3c2;
  --ep-sidebar-active: #ffffff;
  --ep-accent: #1a6b5c;
  --ep-accent-soft: #d8ebe6;
  --ep-surface: #ffffff;
  --ep-border: #d9e0e7;
  --ep-text: #1a2332;
  --ep-muted: #6b7785;
  --ep-radius: 10px;
  --ep-sidebar-w: 232px;
  --ep-font: "Source Han Sans SC", "Noto Sans SC", "Segoe UI", sans-serif;
}

/* Vue 挂载前隐藏模板，避免 {{ }} / 指令闪一下 */
[v-cloak] { display: none !important; }

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--ep-font);
  color: var(--ep-text);
  background: var(--ep-bg);
}

.ep-app {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(26, 107, 92, 0.08), transparent 60%),
    var(--ep-bg);
}

.ep-sidebar {
  width: var(--ep-sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, #232d3b 0%, var(--ep-sidebar) 100%);
  color: var(--ep-sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.ep-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ep-brand__name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.ep-brand__sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.65;
}

.ep-nav {
  flex: 1;
  overflow: auto;
  padding: 12px 10px 24px;
}
.ep-nav__group {
  margin: 14px 10px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
}
.ep-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 8px;
  color: var(--ep-sidebar-text);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.ep-nav__item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
  transform: translateX(2px);
}
.ep-nav__item.is-active {
  background: rgba(26, 107, 92, 0.35);
  color: var(--ep-sidebar-active);
  box-shadow: inset 3px 0 0 var(--ep-accent);
}
.ep-nav__item i { font-size: 16px; width: 18px; text-align: center; }

.ep-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ep-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ep-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.ep-topbar__title {
  font-size: 15px;
  font-weight: 600;
}
.ep-topbar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ep-muted);
}
.ep-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ep-accent-soft);
  color: var(--ep-accent);
  font-size: 12px;
}
.ep-company-switch-wrap {
  display: inline-flex;
  align-items: center;
}
.ep-company-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #303133;
  font-size: 13px;
  font-weight: 500;
}
.ep-company-trigger {
  max-width: 260px;
}
.ep-company-trigger .ep-company-trigger__name {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.ep-company-dialog__list {
  max-height: 360px;
  overflow-y: auto;
  margin: -10px 0;
}
.ep-company-dialog__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.ep-company-dialog__item + .ep-company-dialog__item {
  margin-top: 4px;
}
.ep-company-dialog__item:hover {
  background: #f5f7fa;
}
.ep-company-dialog__item.is-current {
  background: var(--ep-accent-soft);
  cursor: default;
}
.ep-company-dialog__item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  color: #303133;
  font-weight: 500;
}
.ep-company-dialog__item-main > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ep-company-dialog__item-main .el-icon-office-building {
  color: var(--ep-accent);
  font-size: 16px;
  flex-shrink: 0;
}
.ep-company-dialog__go {
  color: #c0c4cc;
  flex-shrink: 0;
}
.ep-link {
  color: var(--ep-accent);
  cursor: pointer;
  text-decoration: none;
}
.ep-link:hover { text-decoration: underline; }

.ep-content {
  padding: 20px 24px 32px;
  flex: 1;
}

.ep-panel {
  background: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 20px 22px;
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.03);
}

.ep-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.ep-hero h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ep-hero p {
  margin: 0;
  color: var(--ep-muted);
  font-size: 14px;
}

.ep-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ep-shortcut {
  display: block;
  padding: 16px;
  border-radius: var(--ep-radius);
  border: 1px solid var(--ep-border);
  background: linear-gradient(160deg, #fff, #f7faf9);
  text-decoration: none;
  color: var(--ep-text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ep-shortcut:hover {
  border-color: var(--ep-accent);
  transform: translateY(-2px);
}
.ep-shortcut strong { display: block; font-size: 14px; }
.ep-shortcut span { font-size: 12px; color: var(--ep-muted); }

/* Auth / Login page */
.ep-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ep-bg);
  color: var(--ep-text);
}
.ep-login__top {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--ep-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
}
.ep-login__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ep-text);
}
.ep-login__brand img {
  height: 32px;
  width: auto;
  display: block;
}
.ep-login__brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ep-login__top-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ep-login__hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ep-muted);
  line-height: 1.35;
}
.ep-login__hotline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ep-accent-soft);
  color: var(--ep-accent);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}
.ep-login__hotline strong {
  display: block;
  color: var(--ep-accent);
  font-size: 14px;
  font-weight: 700;
}
.ep-login__top-link {
  color: var(--ep-text);
  text-decoration: none;
  font-size: 13px;
}
.ep-login__top-link:hover { color: var(--ep-accent); }

/* 中间主区（登录 + 简介 + slogan，同一背景） */
.ep-login__main {
  background:
    radial-gradient(900px 420px at 12% 10%, rgba(26, 107, 92, 0.22), transparent 55%),
    radial-gradient(700px 380px at 88% 80%, rgba(28, 36, 48, 0.18), transparent 50%),
    linear-gradient(135deg, #1c2430 0%, #1a6b5c 58%, #2a8f7c 100%);
  color: #fff;
  padding: 44px 28px 40px;
  flex: 1;
}
.ep-login__main-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.ep-login__main-row {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}
.ep-login__main-form { width: 100%; }
.ep-login__main-copy { min-width: 0; }
.ep-login__main-title {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.ep-login__main-desc {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.86);
  max-width: 520px;
}

.ep-login__slogans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.ep-login__slogan {
  --i: 0;
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  animation: epSloganIn .55s ease forwards;
  animation-delay: calc(var(--i) * 0.08s + 0.12s);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.ep-login__slogan::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f0d27a, rgba(240,210,122,0.15));
  opacity: 0.85;
}
.ep-login__slogan::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,210,122,0.28), transparent 70%);
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}
.ep-login__slogan:hover {
  transform: translateY(-6px);
  border-color: rgba(240,210,122,0.45);
  background: linear-gradient(160deg, rgba(255,255,255,0.2), rgba(255,255,255,0.07));
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
}
.ep-login__slogan:hover::after {
  transform: scale(1.35);
  opacity: 1;
}
.ep-login__slogan-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1c2430;
  background: linear-gradient(135deg, #f0d27a, #e8c35a);
  box-shadow: 0 4px 12px rgba(240,210,122,0.35);
}
.ep-login__slogan-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #f0d27a;
  letter-spacing: 0.06em;
}
.ep-login__slogan p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}
@keyframes epSloganIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 登录卡片美化 */
.ep-auth__card {
  width: 100%;
  background: #fff;
  color: var(--ep-text);
  border-radius: 16px;
  padding: 26px 24px 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.35),
    0 28px 64px rgba(0,0,0,0.32);
  position: relative;
  overflow: hidden;
}
.ep-auth__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a6b5c, #3aa890 60%, #f0d27a);
}
.ep-auth__head { margin-bottom: 16px; }
.ep-auth__brand {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a2332;
}
.ep-auth__desc {
  color: var(--ep-muted);
  font-size: 13px;
}
.ep-auth__panel { margin-top: 2px; }

.ep-login-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 18px;
  padding: 3px;
  background: #eef3f1;
  border-radius: 10px;
}
.ep-login-tab {
  flex: 1;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ep-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s, box-shadow .15s;
}
.ep-login-tab.active {
  background: #fff;
  color: var(--ep-accent);
  box-shadow: 0 1px 4px rgba(26, 107, 92, 0.16);
}
.ep-field { margin-bottom: 14px; }
.ep-field__label {
  display: block;
  font-size: 12px;
  color: var(--ep-muted);
  margin-bottom: 6px;
}
.ep-field input {
  width: 100%;
  height: 44px;
  border: 1px solid #d5dde6;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  background: #f8fafb;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ep-field input:focus {
  border-color: var(--ep-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 107, 92, 0.14);
}
.ep-field-row { display: flex; gap: 8px; }
.ep-field-row input { flex: 1; }
.ep-btn, .ep-btn-secondary {
  height: 44px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
}
.ep-btn {
  width: 100%;
  background: linear-gradient(135deg, #1a6b5c 0%, #248f7a 100%);
  color: #fff;
  margin-top: 2px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(26, 107, 92, 0.28);
}
.ep-btn:hover:not(:disabled) { filter: brightness(1.05); }
.ep-btn:disabled, .ep-btn-secondary:disabled { opacity: .6; cursor: not-allowed; }
.ep-btn-secondary {
  width: 118px;
  flex-shrink: 0;
  background: #e8eef2;
  color: var(--ep-text);
  font-size: 13px;
}
.ep-btn-secondary:hover:not(:disabled) { background: #dde5eb; }
.ep-agree {
  margin: 14px 0 2px;
  font-size: 12px;
  color: var(--ep-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.ep-agree input { margin-top: 2px; }
.ep-agree a { color: var(--ep-accent); text-decoration: none; }
.ep-agree a:hover { text-decoration: underline; }
.ep-auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e4e9ee;
  font-size: 13px;
}
.ep-auth-links--end { justify-content: flex-end; }
.ep-auth-links a {
  color: var(--ep-accent);
  text-decoration: none;
}
.ep-auth-links a:hover { text-decoration: underline; }
.ep-tip {
  margin: 10px 0 0;
  color: #c45656;
  font-size: 13px;
  min-height: 18px;
}
.aliyun-captcha-host { position: relative; width: 0; height: 0; overflow: visible; }
.aliyun-captcha-trigger {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
}
#aliyun-captcha-element { min-height: 0; }

.ep-login__footer {
  background: #1c2430;
  color: rgba(255,255,255,0.78);
  padding: 36px 28px 20px;
  margin-top: auto;
}
.ep-login__footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.4fr;
  gap: 20px;
}
.ep-login__footer h5 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}
.ep-login__footer a {
  display: block;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 12px;
  margin: 6px 0;
}
.ep-login__footer a:hover { color: #fff; }
.ep-login__footer-meta {
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}
.ep-login__footer-meta img {
  height: 36px;
  margin-bottom: 10px;
}
.ep-login__copy {
  max-width: 1100px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.ep-login__copy a { color: rgba(255,255,255,0.7); text-decoration: none; }

@media (max-width: 1100px) {
  .ep-login__main-row { grid-template-columns: 360px 1fr; gap: 28px; }
  .ep-login__slogans { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ep-login__footer-grid { grid-template-columns: repeat(3, 1fr); }
  .ep-login__footer-meta { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 860px) {
  .ep-app { flex-direction: column; }
  .ep-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .ep-nav { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 12px; }
  .ep-nav__group { width: 100%; }
  .ep-login__top { padding: 0 16px; height: auto; min-height: 64px; flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .ep-login__main { padding: 28px 16px 32px; }
  .ep-login__main-row { grid-template-columns: 1fr; gap: 24px; }
  .ep-login__main-title { font-size: 28px; }
  .ep-login__slogans { grid-template-columns: 1fr 1fr; }
  .ep-login__footer-grid { grid-template-columns: 1fr 1fr; }
}
