/*
 * 敖途后台（manager.walkertour.cn）外观主题 —— 只改样式，不改任何功能
 * 配色取自公司 logo：橙红 #E8501E + 黑 + 白。
 * 用法：在后台的 index.html 里，放在原有样式之后引入这一个文件；删掉这一行引用就恢复原样。
 */

/* ---------- 1. 主色：把 Element Plus 默认的蓝色换成 logo 的橙红 ---------- */
:root {
  --el-color-primary: #e8501e;
  --el-color-primary-light-3: #ef8562;
  --el-color-primary-light-5: #f4a78f;
  --el-color-primary-light-7: #f8cabc;
  --el-color-primary-light-8: #fadcd2;
  --el-color-primary-light-9: #fdede8;
  --el-color-primary-dark-2: #ba4018;
  --el-border-radius-base: 8px;
  --el-font-size-base: 14px;
  --wt-ink: #1c1917;        /* 正文黑（带一点暖色） */
  --wt-muted: #78716c;      /* 次要文字 */
  --wt-line: #ebe7e2;       /* 分隔线 */
  --wt-canvas: #f6f4f1;     /* 页面底色 */
}
body { background: var(--wt-canvas); color: var(--wt-ink); -webkit-font-smoothing: antialiased; }

/* ---------- 2. 顶栏：白底，logo 完整显示 ---------- */
.el-header.main-header-tool {
  background: #fff !important; height: 60px; padding: 0 20px 0 0 !important;
  border-bottom: 1px solid var(--wt-line); position: relative; z-index: 10;
}
.el-header.main-header-tool > div:first-child {
  width: 200px; height: 60px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
/* 原图是 640×640 的方图，被拉成 200×120 变了形；这里按原比例缩小，上下留白裁掉 */
.el-header.main-header-tool > div:first-child img {
  width: 112px !important; height: 112px !important; object-fit: contain; flex: none;
}
.el-header.main-header-tool .toolbar,
.el-header.main-header-tool .toolbar .el-icon,
.el-header.main-header-tool .toolbar .el-dropdown { color: var(--wt-ink) !important; }
.el-header.main-header-tool .toolbar svg { color: inherit !important; } /* 图标上写死了白色，白底上看不见 */
.el-header.main-header-tool .toolbar .el-icon { cursor: pointer; transition: color .15s; }
.el-header.main-header-tool .toolbar .el-icon:hover { color: var(--el-color-primary) !important; }

/* ---------- 3. 左侧菜单：当前项用橙色标出 ---------- */
.el-aside.left-content { background: #fff; border-right: 1px solid var(--wt-line); }
.el-aside.left-content .el-menu { border-right: 0; background: transparent; padding: 8px 0; }
.el-aside.left-content .el-sub-menu__title,
.el-aside.left-content .el-menu-item {
  height: 44px; line-height: 44px; margin: 2px 6px; border-radius: 8px; color: var(--wt-ink);
}
.el-aside.left-content .el-sub-menu__title { padding-left: 14px !important; padding-right: 30px !important; }
.el-aside.left-content .el-sub-menu__title .el-sub-menu__icon-arrow { right: 10px; }
.el-aside.left-content .el-sub-menu__title:hover,
.el-aside.left-content .el-menu-item:hover { background: var(--wt-canvas); }
.el-aside.left-content .el-menu-item.is-active {
  background: var(--el-color-primary-light-9); color: var(--el-color-primary); font-weight: 600;
}
.el-aside.left-content .el-sub-menu.is-active > .el-sub-menu__title { color: var(--el-color-primary); font-weight: 600; }
.el-aside.left-content .el-sub-menu .el-menu-item { padding-left: 44px !important; min-width: 0; }

/* ---------- 4. 版面高度：整页撑满窗口，表格占满剩余高度 ----------
 * 原来表格的高度写死成 720 像素：大屏幕下面空一大片，小屏幕又超出窗口。
 * 这里改成：顶栏固定，菜单和内容区占满剩余高度，表格在内容区里自动伸缩。 */
/* 注意：不要给 #app 下面的 div 统一设高度——底部备案号那一层也是它的子元素，会被撑成全屏盖住页面 */
html, body, #app { height: 100%; }
.common-layout.left-right-content { height: 100vh; }
.common-layout.left-right-content > .el-container { height: 100%; min-height: 0; }
.common-layout.left-right-content > .el-container > .el-container { flex: 1 1 auto; min-height: 0; height: auto; }
.el-aside.left-content { height: auto; overflow-y: auto; }
.el-main.right-content { display: flex; flex-direction: column; min-height: 0; padding-bottom: 36px !important; /* 给底部固定的备案号留位置 */ }
.el-main.right-content > * { flex: none; }
.el-main.right-content > .el-table { flex: 1 1 auto; height: auto !important; min-height: 240px; }
.el-main.right-content > .search-jsj-tatle { align-self: flex-end; } /* 搜索栏保持靠右 */

/* ---------- 5. 内容区：浅底色上放白色卡片 ---------- */
.el-main.right-content { background: var(--wt-canvas); padding: 16px 20px; }
.el-main.right-content > .el-table,
.el-main.right-content .el-table {
  border-radius: 12px; border: 1px solid var(--wt-line); overflow: hidden;
  --el-table-border-color: var(--wt-line);
  --el-table-header-bg-color: #faf8f6;
  --el-table-header-text-color: var(--wt-muted);
  --el-table-text-color: var(--wt-ink);
  --el-table-row-hover-bg-color: #fdf3ef;
}
.el-table th.el-table__cell { font-weight: 600; font-size: 13px; }
.el-table .el-table__cell { padding: 10px 0; }
.el-table .el-button.is-link { font-weight: 500; }

/* 表单页（订单录入等）：表单放进白色卡片 */
.el-main.right-content > .el-form {
  background: #fff; border: 1px solid var(--wt-line); border-radius: 12px; padding: 24px 24px 12px;
}
.el-form-item__label { color: var(--wt-muted); }

/* 搜索工具条 */
.search-jsj-tatle { margin-bottom: 12px; }
.el-input__wrapper, .el-select__wrapper, .el-textarea__inner { border-radius: 8px; }
.el-button { border-radius: 8px; font-weight: 500; }

/* 分页 */
.pagination-custom { margin-top: 12px; }
.el-pagination.is-background .el-pager li,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next { border-radius: 8px; background: #fff; border: 1px solid var(--wt-line); }
.el-pagination.is-background .el-pager li.is-active { background: var(--el-color-primary); border-color: var(--el-color-primary); color: #fff; }

/* 弹窗、抽屉 */
.el-dialog { border-radius: 14px; }
.el-dialog__title { font-weight: 600; }
.el-drawer__header { margin-bottom: 12px; font-weight: 600; color: var(--wt-ink); }

/* 页脚备案号：弱化 */
#app a[href*="beian"] { color: var(--wt-muted); text-decoration: none; font-size: 12px; }

/* ==================== 登录页 ====================
 * 原来是晚霞海面的视频背景加一个玻璃水滴形的登录框，文字压在视频上看不清。
 * 改成和 logo 一个色调：暖黑色背景带一抹橙色光晕，中间一张白色卡片，卡片顶部是公司 logo。
 * 所有规则都限定在 .loginVideo 里面，不影响登录后的页面。 */
.loginVideo {
  min-height: 100vh; display: flex !important; align-items: center; justify-content: center;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(232, 80, 30, .32) 0%, rgba(232, 80, 30, 0) 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(232, 80, 30, .14) 0%, rgba(232, 80, 30, 0) 60%),
    linear-gradient(155deg, #171514 0%, #231a15 55%, #3a1e10 100%);
}
.loginVideo > video { display: none !important; } /* 背景视频不再显示 */

/* 登录框：从"绝对定位的圆形水滴"改成居中的圆角白卡片 */
.loginVideo .loginBox {
  position: relative !important; top: auto !important; left: auto !important; transform: none !important;
  width: 380px; max-width: calc(100vw - 32px);
}
.loginVideo .container { width: 100% !important; height: auto !important; }
.loginVideo .drop {
  width: 100% !important; height: auto !important; display: block !important;
  border-radius: 18px !important; background: #fff;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7) !important; transition: none;
}
.loginVideo .drop::before, .loginVideo .drop::after { display: none !important; } /* 水滴上的两个高光点 */
.loginVideo .content { padding: 28px 36px 32px !important; gap: 0 !important; }

/* 卡片顶部的 logo（walker-logo.jpg 和这个样式文件放在同一个目录） */
.loginVideo .content::before {
  content: ""; display: block; height: 118px; margin: 0 auto 2px; width: 100%;
  background: url(walker-logo.jpg) center / 190px auto no-repeat;
}
.loginVideo .content h2 {
  color: #78716c !important; font-size: 14px !important; font-weight: 500 !important;
  margin: 0 0 22px !important; letter-spacing: 1px;
}

/* 输入框 */
.loginVideo form { gap: 14px !important; }
.loginVideo .inputBox {
  width: 100% !important; border-radius: 10px !important; box-shadow: none !important;
  background: #f7f6f4 !important; border: 1px solid #e4e0da; transition: border-color .15s, box-shadow .15s;
}
.loginVideo .inputBox:focus-within { border-color: #e8501e; box-shadow: 0 0 0 3px rgba(232, 80, 30, .2) !important; }
.loginVideo .inputBox input {
  width: 100% !important; box-sizing: border-box; padding: 12px 14px !important; font-size: 15px !important;
  color: #1c1917 !important; background: transparent !important; border: 0 !important; outline: none !important;
}
.loginVideo .inputBox input::placeholder { color: #a8a29e; }

/* 登录按钮（表单里最后一个框） */
.loginVideo form .inputBox:last-child {
  margin: 8px 0 0 !important; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #f0612d, #d9481a) !important; transition: filter .15s;
}
.loginVideo form .inputBox:last-child:hover { filter: brightness(1.07); }
.loginVideo form .inputBox:last-child input {
  color: #fff !important; font-weight: 600; letter-spacing: 4px; cursor: pointer; padding: 12px !important;
}

/* 登录页底部的备案号：深色背景上改成浅色 */
.loginVideo ~ div a { color: rgba(255, 255, 255, .45) !important; text-decoration: none; font-size: 12px; }
