.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@-webkit-keyframes rotateAnima {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotateAnima {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes dotAnima {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
  }

  60% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: .5;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes dotAnima {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
  }

  60% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: .5;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 0;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  color: #333;
  -webkit-text-size-adjust: none;
  font-family: "Source Han Sans";
  -webkit-font-smoothing: antialiased;
}

a {
  color: #333;
  text-decoration: none;
  outline: none;
}

a:active {
  star: expression(this.onFocus=this.blur());
}

a:link {
  text-decoration: none;
  outline: none;
}

a:visited {
  text-decoration: none;
  outline: none;
}

a:hover {
  text-decoration: none;
  color: #e9690f;
  outline: none;
}

li {
  list-style: outside none;
}

li {
  list-style-type: none;
}

h1 {
  font-size: 16px;
}

h2 {
  font-size: 24px;
  line-height: 1.437em;
}

h3,
h4,
h5 {
  font-size: 16px;
  line-height: 1.437em;
}

textarea,
input {
  background: rgba(0,0,0,0);
  font-size: 12px;
  color: #222;
  outline: none;
  border: 0;
  font-family: "Source Han Sans";
}

em {
  font-style: normal;
}

img {
  vertical-align: middle;
  max-width: 100%;
  border: 0;
  object-fit: cover;
}

.wal {
  width: 1190px;
  margin: 0 auto;
}

@font-face {
  font-family: "iconfont";
  src: url("//at.alicdn.com/t/c/font_2640790_p50ltlmo4r8.woff2?t=1766848997530") format("woff2"),url("//at.alicdn.com/t/c/font_2640790_p50ltlmo4r8.woff?t=1766848997530") format("woff"),url("//at.alicdn.com/t/c/font_2640790_p50ltlmo4r8.ttf?t=1766848997530") format("truetype");
}
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@-webkit-keyframes rotateAnima {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotateAnima {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@-webkit-keyframes dotAnima {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
  }

  60% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: .5;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes dotAnima {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
  }

  60% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: .5;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 0;
  }
}

.g-head .head {
  border-bottom: #666 solid 1px;
  background: #fff;
  min-width: 1190px;
}

.g-head .wal {
  height: 136px;
  position: relative;
}

.g-head .logo {
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 275px;
}

.g-head .login-btn {
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 124px;
  height: 42px;
  border-radius: 30px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  background: #333;
}

.g-foot {
  padding: 90px 0 12px 0;
  border-top: #666 solid 1px;
  text-align: center;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  min-width: 1190px;
}

.login .wal {
  text-align: center;
  padding: 130px 0 300px 0;
}

.login .wal .title {
  font-size: 56px;
  margin-bottom: 44px;
  line-height: 68px;
  font-weight: 500;
}

.login .wal .form {
  width: 560px;
  margin: 0 auto;
}

.login .wal .form li {
  margin-bottom: 22px;
}

.login .wal .form li .input {
  border-radius: 12px;
  border: 1px solid #666;
}

.login .wal .form li .input input::-webkit-input-placeholder {
  color: #666;
}

.login .wal .form li .input input::-moz-placeholder {
  color: #666;
}

.login .wal .form li .input input:-moz-placeholder {
  color: #666;
}

.login .wal .form li .input input:-ms-input-placeholder {
  color: #666;
}

.login .wal .form li .input textarea::-webkit-input-placeholder {
  color: #666;
}

.login .wal .form li .input textarea::-moz-placeholder {
  color: #666;
}

.login .wal .form li .input textarea:-moz-placeholder {
  color: #666;
}

.login .wal .form li .input textarea:-ms-input-placeholder {
  color: #666;
}

.login .wal .form li .input input {
  width: 100%;
  height: 58px;
  line-height: 58px;
  padding: 0 20px;
  font-size: 16px;
  color: #333;
}

.login .wal .form li .tips {
  text-align: left;
  color: red;
  font-size: 14px;
  margin-top: 10px;
  padding-left: 20px;
  display: none;
}

.login .wal .form li.error .input {
  border-color: red;
}

.login .wal .form li.error .tips {
  display: block;
}

.login .wal .tips {
  margin-bottom: 44px;
}

.login .wal .tips a {
  color: #666;
  font-size: 16px;
  text-decoration: underline;
}

.login .wal .tips a:hover {
  color: #e9690f;
}

.login .wal .submit {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin: 0 auto;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: #333;
  width: 156px;
  height: 44px;
  border-radius: 40px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* 登入請求在途：按鈕降透明度並禁點，給用戶反饋 */
.login .wal .submit.loading {
  opacity: 0.6;
  pointer-events: none;
}

.page-bg {
  background: #f9f9f9;
  min-height: calc(100vh - 210px);
  min-width: 1190px;
}

.page-bg .wal {
  padding: 64px 0 110px 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.page-bg .left {
  width: 300px;
}

.page-bg .left .box {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 6.2px 1px rgba(0,0,0,.1);
  margin-bottom: 22px;
  min-height: 90px;
}

.page-bg .right {
  width: 860px;
  min-height: 300px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 6.2px 1px rgba(0,0,0,.1);
  padding: 0 30px 30px;
}

.member-side-info {
  height: 100px;
  padding: 0 15px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.member-side-info .img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.member-side-info .col {
  width: 100%;
  padding-left: 14px;
}

.member-side-info .col .name {
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 8px;
}

.member-side-info .col p {
  margin-top: 2px;
  color: #666;
  font-size: 12px;
  line-height: 20px;
}

.member-side-nav li {
  padding: 12px 0;
  border-bottom: 1px solid #e9e9e9;
}

.member-side-nav li:last-child {
  border: 0;
}

.member-side-nav li a {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0 12px;
  color: #666;
  font-size: 16px;
  height: 44px;
}

.member-side-nav li a:hover,
.member-side-nav li a.on {
  color: #333;
}

.page-title {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  height: 84px;
}

.page-title::before {
  content: "";
  display: block;
  width: 8px;
  height: 24px;
  border-radius: 20px;
  background: #333;
  margin-right: 8px;
}

.page-title h2 {
  font-size: 24px;
  font-weight: 400;
}

.page-search {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.page-search .add {
  width: 118px;
  height: 40px;
  border-radius: 30px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: #333;
  color: #fff;
}

.page-search .add::after {
  content: "";
  display: block;
  margin-left: 6px;
  width: 12px;
  height: 12px;
  background: url(../image/plus.svg) center no-repeat;
  background-size: 100%;
}

.page-search .input {
  margin-left: auto;
  border: 1px solid #666;
  border-radius: 30px;
  width: 360px;
  height: 40px;
  background: url(../image/search.svg) 20px center no-repeat;
  background-size: 20px;
}

.page-search .input input::-webkit-input-placeholder {
  color: #666;
}

.page-search .input input::-moz-placeholder {
  color: #666;
}

.page-search .input input:-moz-placeholder {
  color: #666;
}

.page-search .input input:-ms-input-placeholder {
  color: #666;
}

.page-search .input textarea::-webkit-input-placeholder {
  color: #666;
}

.page-search .input textarea::-moz-placeholder {
  color: #666;
}

.page-search .input textarea:-moz-placeholder {
  color: #666;
}

.page-search .input textarea:-ms-input-placeholder {
  color: #666;
}

.page-search .input input {
  width: 100%;
  height: 38px;
  line-height: 38px;
  padding-left: 48px;
  font-size: 14px;
  color: #333;
}

.page-search .submit {
  width: 72px;
  height: 40px;
  border-radius: 30px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: #333;
  color: #fff;
  margin-left: 18px;
  cursor: pointer;
}


.page-num {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 30px 0;
  font-size: 14px;
}

.page-num a {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin: 0 3px;
}

.page-num a:hover,
.page-num a.on {
  background: #333;
  color: #fff;
}

.page-num a.arrow {
  font-family: "iconfont";
}

.page-filter {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  height: 54px;
  padding: 0 20px;
}

.page-filter .select2,
.page-filter .select {
  position: relative;
}

.page-filter .select2 .name,
.page-filter .select .name {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  height: 34px;
}

.page-filter .select2 .layer,
.page-filter .select .layer {
  position: absolute;
  z-index: 2;
  left: -10px;
  top: 100%;
  background: #fff;
  border-radius: 6px;
  -webkit-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
  width: 100px;
  font-size: 13px;
  padding: 8px 10px;
  display: none;
}

.page-filter .select2 .layer::after,
.page-filter .select .layer::after {
  content: "";
  display: block;
  position: absolute;
  left: 18px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: #fff;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.page-filter .select2 .layer a,
.page-filter .select .layer a {
  display: block;
  line-height: 24px;
}

.page-filter .select2:hover,
.page-filter .select:hover {
  z-index: 20;
}

.page-filter .select2:hover .layer,
.page-filter .select:hover .layer {
  display: block;
}

.page-filter .select .name::after {
  content: "";
  width: 10px;
  height: 10px;
  background: url(../image/ico10.svg) center no-repeat;
  background-size: 100%;
  margin-left: 6px;
}

.page-filter .select2 .name::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url(../image/ico16.svg) center no-repeat;
  background-size: 100%;
  margin-left: 6px;
}


.confirm-layer {
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  background: rgba(0,0,0,.6);
}

.confirm-layer.show {
  opacity: 1;
  visibility: visible;
}

.confirm-layer .container {
  width: 320px;
  min-height: 120px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 24px;
}

.confirm-layer h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

.confirm-layer p {
  font-size: 16px;
  line-height: 1.7em;
  margin-bottom: 30px;
}

.confirm-layer .btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.confirm-layer .btns a {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 8px;
  border-radius: 30px;
  height: 40px;
  padding: 0 24px;
  border: #eee solid 1px;
  font-size: 16px;
}

.confirm-layer .btns a.confirm {
  background: #111;
  color: #fff;
}

/* Filter Drawer Styles */
.filter-mask {
  position: fixed;
  z-index: 900;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
}
.filter-drawer {
  position: fixed;
  z-index: 910;
  top: 0; right: -320px; bottom: 0;
  width: 320px;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.filter-drawer.open {
  right: 0;
}
.filter-drawer .header {
  height: 60px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 500;
}
.filter-drawer .close-btn {
  cursor: pointer;
  font-size: 24px;
  color: #999;
}
.filter-drawer .content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}
.filter-drawer .form-group {
  margin-bottom: 25px;
}
.filter-drawer .form-group label {
  display: block;
  margin-bottom: 10px;
  color: #333;
  font-weight: 500;
}
.filter-drawer input[type="text"],
.filter-drawer input[type="number"] {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 14px;
}
.filter-drawer .price-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-drawer .price-range span {
  color: #999;
}
.filter-drawer .footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}
.filter-drawer .btn {
  flex: 1;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.2s;
}
.filter-drawer .btn-reset {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}
.filter-drawer .btn-confirm {
  background: #333;
  color: #fff;
  border: none;
}
.filter-drawer .btn:hover {
  opacity: 0.8;
}

/* 覆盖浏览器自动填充样式 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #333 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ============================================================
   CW CARE 主题与通用组件
   ============================================================ */

/* 链接 hover 改黑色主题（覆盖上方橙色） */
a:hover { color: #000; }

/* 头部右侧图标组 */
.g-head .head-right {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 22px;
}
.g-head .head-right .ico img { width: 24px; height: 24px; object-fit: contain; }
.g-head .head-right .avatar { position: relative; }
.g-head .head-right .avatar img { width: 40px; height: 40px; border-radius: 50%; }

/* 头像账户下拉菜单（main.js 注入） */
.avatar-menu {
  display: none; position: absolute; right: 0; top: 48px; z-index: 60;
  min-width: 128px; background: #fff; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); padding: 6px 0;
}
.avatar-menu.show { display: block; }
.avatar-menu a { display: block; padding: 10px 18px; font-size: 14px; color: #333; white-space: nowrap; }
.avatar-menu a:hover { background: #f5f5f5; color: #000; }

/* 通知功能未上线，铃铛入口暂时隐藏 */
.g-head .head-right .ico[title="通知"] { display: none; }

/* 顶栏/侧栏头像图（更换头像后套用） */
.g-head .head-right .avatar img,
.member-side-info .img img { object-fit: cover; border-radius: 50%; }

/* 个人资料弹窗：头像预览 + 选择图片 */
.profile-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.profile-avatar-row .pic {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: #f0f0f0; flex-shrink: 0;
}
.profile-avatar-row .pic img { width: 100%; height: 100%; object-fit: cover; }

/* 黑色胶囊按钮（實心：匯出表單/搜尋/同步簽署/上傳文件…） */
.btn-dark {
  display: inline-block; min-width: 96px; height: 40px; line-height: 40px;
  padding: 0 22px; background: #1a1a1a; color: #fff; font-size: 15px;
  border-radius: 20px; text-align: center; cursor: pointer; border: 0;
}
.btn-dark:hover { opacity: .85; color: #fff; }

/* 白底描边胶囊按钮（新增表單/查看文件…） */
.btn-line {
  display: inline-block; min-width: 96px; height: 40px; line-height: 38px;
  padding: 0 22px; background: #fff; color: #1a1a1a; font-size: 15px;
  border: 1px solid #1a1a1a; border-radius: 20px; text-align: center; cursor: pointer;
}
.btn-line:hover { background: #f5f5f5; color: #1a1a1a; }

/* 页面操作行：按钮 + 搜索框 */
.op-bar { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; }
.op-bar .search-box {
  flex: 1; display: flex; align-items: center; height: 44px;
  border: 1px solid #ccc; border-radius: 22px; padding: 0 18px; background: #fff;
}
.op-bar .search-box input { flex: 1; font-size: 14px; height: 42px; }
.op-bar .search-box .ico-search { margin-right: 8px; line-height: 0; }

/* 视图切换/筛选行 */
.view-bar { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; }
.view-bar .filter-btn { font-size: 14px; color: #333; cursor: pointer; display: flex; align-items: center; gap: 4px; }

/* 下拉（点击开合，与 hover 兼容） */
.page-filter .select.open .layer,
.select.open .layer { visibility: visible; opacity: 1; }
.select {
  position: relative; display: inline-flex; align-items: center;
  min-width: 104px; height: 36px; padding: 0 14px;
  border: 1px solid #333; border-radius: 6px; cursor: pointer;
  font-size: 14px; background: #fff;
}
.select .name { display: flex; align-items: center; gap: 6px; }
.select .name::after {
  content: ""; width: 0; height: 0; border-left: 5px solid transparent;
  border-right: 5px solid transparent; border-top: 6px solid #333; margin-left: 4px;
}
.select .layer {
  visibility: hidden; opacity: 0; transition: all .2s;
  position: absolute; left: 0; top: 40px; z-index: 20; min-width: 128px;
  background: #fff; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  padding: 6px 0; text-align: center;
}
.select .layer li { padding: 9px 16px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.select .layer li:hover { background: #f5f5f5; }

/* 数据表格：黑表头 + 白行 */
.data-table { width: 100%; margin-bottom: 8px; }
.data-table .hd, .data-table li {
  display: flex; align-items: center; min-height: 54px; font-size: 14px;
}
.data-table .hd { background: #1a1a1a; color: #fff; border-radius: 4px; font-size: 14px; }
.data-table li { border-bottom: 1px solid #eee; color: #333; }
.data-table li:hover { background: #fafafa; }
.data-table .col { padding: 8px 12px; flex: 1; min-width: 0; }
.data-table .hd .col { font-weight: normal; }

/* 溢出省略单元格：内容截断时悬停显示完整内容浮层 */
.cell-ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hover-tip {
  position: absolute; z-index: 10000; display: none;
  max-width: 320px; padding: 8px 14px;
  background: #fff; border: 1px solid #d0d0d0; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  font-size: 13px; color: #333; line-height: 18px;
  text-align: center; word-break: break-all;
}

/* 小标题（模块分区） */
.sub-title {
  font-size: 17px; font-weight: bold; padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5; margin: 28px 0 16px;
}

/* 汇总灰条 */
.sum-bar {
  display: flex; background: #ececec; border-radius: 4px;
  min-height: 52px; align-items: center; font-size: 14px;
}
.sum-bar .col { flex: 1; padding: 8px 12px; }

/* 状态标签 */
.tag-pending { display: inline-block; background: #f5b400; color: #fff; border-radius: 14px; padding: 4px 14px; font-size: 13px; }

/* 行内图标按钮（铅笔/眼睛 内联 svg 容器） */
.ico-btn { display: inline-block; vertical-align: middle; margin-left: 6px; cursor: pointer; line-height: 0; }
.ico-btn svg { width: 16px; height: 16px; }

/* 蓝色文字链接 */
.link-blue { color: #2f7cd4; cursor: pointer; }
.link-blue:hover { color: #2f7cd4; text-decoration: underline; }

/* tab 面板 */
.tab-panel { display: none; }
.tab-panel.show { display: block; }
/* tab 头 */
.tab-head { display: flex; gap: 28px; border-bottom: 1px solid #e5e5e5; margin-bottom: 16px; }
.tab-head a { font-size: 15px; color: #999; padding: 0 2px 12px; cursor: pointer; }
.tab-head a.on { color: #111; font-weight: bold; border-bottom: 2px solid #111; }

/* 返回按钮 + 标题 */
.back-title { display: flex; align-items: center; gap: 12px; padding-top: 30px; margin-bottom: 10px; }
.back-title .back {
  width: 30px; height: 30px; border-radius: 50%; background: #1a1a1a; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px;
}
.back-title h2 { font-size: 22px; }

/* 弹窗层：flex 纵向布局，标题/错误提示/按钮固定，仅表单区滚动 */
.layer-mask { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); z-index: 50; }
.layer-box {
  display: none; position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 560px; max-height: 84vh; overflow: hidden; background: #fff; border-radius: 12px;
  padding: 24px 28px; z-index: 51; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.layer-box .layer-title { flex-shrink: 0; text-align: center; font-size: 17px; font-weight: bold; margin-bottom: 16px; }
.layer-box .close { position: absolute; right: 18px; top: 12px; font-size: 24px; cursor: pointer; line-height: 1; }
/* 表单区可滚动；标题、错误/成功提示、底部按钮不随内容滚动 */
.layer-box .set-form, .layer-box .layer-body { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.layer-box > div[id$="-err"], .layer-box > div[id$="-ok"] { flex-shrink: 0; }
.layer-box .foot-btn { flex-shrink: 0; text-align: right; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eee; background: #fff; }
.layer-box.show { display: flex; }
.layer-mask.show { display: block; }

/* 两栏资料 dl */
.info-grid { display: flex; flex-wrap: wrap; }
.info-grid p { width: 50%; font-size: 15px; line-height: 24px; padding: 10px 0; }

/* 文件追踪/合约卡片 */
/* min-height 保证右上状态角标（top:14 高约27）与右下按钮行（高40 bottom:18）纵向错开不重叠 */
.doc-card { border: 1px solid #e5e5e5; border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; position: relative; min-height: 110px; }
.doc-card .name { font-size: 16px; font-weight: bold; margin-bottom: 10px; }
.doc-card p { font-size: 13px; color: #666; line-height: 22px; }
.doc-card p .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f5b400; margin-right: 6px; }
.doc-card .tag-pending { position: absolute; right: 0; top: 14px; border-radius: 14px 0 0 14px; }
.doc-card .btns { position: absolute; right: 20px; bottom: 18px; display: flex; gap: 10px; }

/* 签名样式卡 */
.sign-list { display: flex; flex-wrap: wrap; gap: 14px; }
.sign-list .item { width: 118px; text-align: center; background: #f2f2f2; border-radius: 8px; padding: 14px 0 10px; }
.sign-list .item .pic { width: 60px; height: 46px; margin: 0 auto 8px; background: #d9d9d9; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.sign-list .item p { font-size: 12px; color: #555; }

/* 上传块（设置页） */
.upload-box {
  width: 120px; height: 120px; background: #f2f3f5; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; color: #7a8699; font-size: 13px; margin-bottom: 28px;
}

/* 设置页表单 */
.set-form .item { margin-bottom: 16px; }
.set-form .item .label { font-size: 14px; margin-bottom: 8px; }
/* 表单控件基线：number/date/password 等所有控件统一描边样式 */
.set-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.set-form select,
.set-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; background: #fff; outline: none;
}
.set-form input:focus, .set-form select:focus, .set-form textarea:focus { border-color: #1a1a1a; }
.set-form textarea { height: 96px; resize: none; }

/* 主页统计（总结视图数字链接） */
.money { }

/* 筛选漏斗图标（data URI） */
.ico-funnel {
  display: inline-block; width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%23333" stroke-width="1.4"><path d="M2 3h12l-4.5 5.5V13l-3 1.5V8.5z"/></svg>') no-repeat center / contain;
}

/* 总结指标旁的查看明细图标（表单+眼睛，data URI） */
.sum-ico {
  display: inline-block; width: 16px; height: 16px; margin-left: 6px;
  vertical-align: -2px; line-height: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%23333" stroke-width="1.2"><rect x="2" y="1.5" width="9.5" height="13" rx="1.5"/><path d="M4.5 5h4.5M4.5 7.5h4.5"/><circle cx="11.6" cy="11.6" r="2.8" fill="white"/><circle cx="11.6" cy="11.6" r="1.1"/></svg>') no-repeat center / contain;
}

/* 铅笔编辑图标（data URI，行内追加于文本后） */
.ico-btn.pencil {
  width: 15px; height: 15px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%232f7cd4" stroke-width="1.4"><path d="M11.3 2.1l2.6 2.6L5.2 13.4l-3.4.8.8-3.4z"/></svg>') no-repeat center / contain;
}
/* HKID 值 + 眼睛作為整體不換行，列寬不夠時值出省略號、眼睛始終可見 */
.hkid-wrap { display: inline-flex; align-items: center; white-space: nowrap; max-width: 100%; }
.hkid-wrap .secret-txt { overflow: hidden; text-overflow: ellipsis; }
.hkid-wrap .eye-toggle { flex-shrink: 0; }
/* 眼睛图标 */
.ico-btn.eye, .eye-toggle {
  display: inline-block; vertical-align: middle; margin-left: 6px; cursor: pointer;
  width: 17px; height: 17px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="%232f7cd4" stroke-width="1.4"><path d="M1.5 10s3-5.5 8.5-5.5S18.5 10 18.5 10s-3 5.5-8.5 5.5S1.5 10 1.5 10z"/><circle cx="10" cy="10" r="2.6"/></svg>') no-repeat center / contain;
}
.eye-toggle.open {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="%232f7cd4" stroke-width="1.4"><path d="M1.5 10s3-5.5 8.5-5.5S18.5 10 18.5 10s-3 5.5-8.5 5.5S1.5 10 1.5 10z"/><circle cx="10" cy="10" r="2.6"/><path d="M3 17L17 3"/></svg>') no-repeat center / contain;
}
/* 总结视图数字下划线链接 */
.num-link { text-decoration: underline; color: #333; }
.num-link:hover { color: #000; }
/* 总结视图数字旁小图标 */
.num-ico { display: inline-block; vertical-align: middle; margin-left: 6px; width: 16px; height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%23333" stroke-width="1.2"><rect x="1.5" y="2.5" width="10" height="11" rx="1.5"/><path d="M4 5.5h5M4 8h5M4 10.5h3"/><circle cx="12.5" cy="12" r="3" fill="white"/><path d="M11 12h3M12.5 10.5v3"/></svg>') no-repeat center / contain;
}

/* HKID 限时查看倒计时角标 */
.time-badge {
  display: inline-block; background: #e8f1fd; color: #2f7cd4; font-size: 12px;
  border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: middle;
}

/* 员工详情执照证书卡片 */
.cert-list { display: flex; flex-wrap: wrap; gap: 16px; }
.cert-list .item { width: 150px; background: #f2f2f2; border-radius: 8px; padding: 16px 0 12px; text-align: center; }
.cert-list .item .pic { width: 86px; height: 62px; margin: 0 auto 10px; background: #d9d9d9; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.cert-list .item .name { font-size: 13px; color: #333; margin-bottom: 5px; }
.cert-list .item .date { font-size: 12px; color: #888; }
.cert-list .item .date .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f5b400; margin-right: 5px; vertical-align: 1px; }
.cert-list .item.upload { background: #f7f7f7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #aaa; font-size: 12px; cursor: pointer; }

#global-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(12px);
  background: rgba(20,20,20,.92); color: #fff; border-radius: 8px;
  min-width: 160px; max-width: 420px; padding: 10px 16px; text-align: center;
  font-size: 14px; line-height: 20px; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; z-index: 10050;
}
#global-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.btn-disabled {
  opacity: .48;
  cursor: not-allowed !important;
  pointer-events: none;
}

.tag-signed,
.tag-done {
  display: inline-block;
  background: #2f9f63;
  color: #fff;
  border-radius: 14px;
  padding: 4px 14px;
  font-size: 13px;
}
.doc-card .tag-signed,
.doc-card .tag-done {
  position: absolute;
  right: 0;
  top: 14px;
  border-radius: 14px 0 0 14px;
}

/* 已作廢等失效狀態的灰色標籤 */
.tag-muted {
  display: inline-block;
  background: #9aa0a6;
  color: #fff;
  border-radius: 14px;
  padding: 4px 14px;
  font-size: 13px;
}
.doc-card .tag-muted {
  position: absolute;
  right: 0;
  top: 14px;
  border-radius: 14px 0 0 14px;
}

@media (max-width: 1240px) {
  .wal {
    width: calc(100% - 32px);
  }
  /* 窄屏下长编号/日期等整段字符在本列内折行，避免压到相邻列 */
  .data-table .col {
    overflow-wrap: anywhere;
  }
  .g-head .head,
  .g-foot,
  .page-bg {
    min-width: 0;
  }
  .page-bg .wal {
    gap: 24px;
  }
  .page-bg .left {
    width: 260px;
    flex: 0 0 260px;
  }
  .page-bg .right {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .g-head .logo {
    width: 230px;
  }
}

@media (max-width: 900px) {
  .wal {
    width: calc(100% - 24px);
  }
  .g-head .wal {
    height: 92px;
  }
  .g-head .logo {
    width: 178px;
  }
  .g-head .head-right {
    gap: 12px;
  }
  .g-head .head-right .ico img {
    width: 21px;
    height: 21px;
  }
  .g-head .head-right .avatar img {
    width: 34px;
    height: 34px;
  }
  .page-bg {
    min-height: calc(100vh - 160px);
  }
  .page-bg .wal {
    display: block;
    padding: 28px 0 60px;
  }
  .page-bg .left,
  .page-bg .right {
    width: 100%;
    min-width: 0;
  }
  .page-bg .left {
    margin-bottom: 16px;
  }
  .page-bg .right {
    padding: 0 16px 24px;
  }
  .member-side-info {
    height: auto;
    min-height: 84px;
    padding: 12px;
  }
  .member-side-info .img {
    width: 56px;
    height: 56px;
  }
  .member-side-nav ul {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
  }
  .member-side-nav li {
    border: 0;
    padding: 0;
  }
  .member-side-nav li a {
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background: #fff;
  }
  .member-side-nav li a.on {
    border-color: #333;
  }
  .page-title {
    height: 64px;
  }
  .page-title h2 {
    font-size: 22px;
  }
  .op-bar,
  .view-bar,
  .back-title {
    flex-wrap: wrap;
  }
  .op-bar .search-box {
    flex: 1 1 100%;
    order: 2;
  }
  .data-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table .hd,
  .data-table li {
    min-width: 720px;
  }
  .info-grid p {
    width: 100%;
  }
  .doc-card {
    padding-bottom: 76px;
  }
  .doc-card .btns {
    left: 20px;
    right: 20px;
    flex-wrap: wrap;
  }
  .sum-bar {
    overflow-x: auto;
  }
  .sum-bar .col {
    min-width: 150px;
  }
  .layer-box {
    width: auto;
    max-width: calc(100vw - 28px);
    padding: 22px 18px;
  }
  .layer-box .set-form > div[style*="display:flex"] {
    flex-direction: column;
    gap: 0 !important;
  }
  .login .wal {
    padding: 86px 0 180px;
  }
  .login .wal .title {
    font-size: 36px;
    line-height: 46px;
  }
  .login .wal .form {
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 520px) {
  .btn-dark,
  .btn-line {
    min-width: 86px;
    padding: 0 14px;
    font-size: 14px;
  }
  .page-bg .right {
    padding: 0 12px 22px;
  }
  .sub-title {
    margin: 22px 0 14px;
  }
  .tab-head {
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .sign-list .item {
    width: calc(50% - 7px);
  }
  .cert-list .item {
    width: calc(50% - 8px);
  }
  #global-toast {
    width: calc(100vw - 36px);
    max-width: none;
  }
}

/* 统一上传组件 */
.uploader-zone {
  border: 1px dashed #ccc;
  border-radius: 10px;
  background: #fafafa;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  color: #999;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.uploader-zone:hover,
.uploader-zone.dragover { border-color: #1a1a1a; background: #f2f3f5; color: #555; }
.uploader-zone p { font-size: 13px; margin-top: 6px; }
.uploader-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.uploader-grid:empty { display: none; }
.uploader-item { position: relative; width: 96px; height: 96px; }
.uploader-item .thumb {
  width: 100%; height: 100%; box-sizing: border-box;
  border: 1px solid #e3e3e3; border-radius: 8px; background: #f7f7f7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.uploader-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.uploader-item .thumb .fname {
  font-size: 11px; color: #666; padding: 4px 6px 0; max-width: 100%;
  box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uploader-item .del {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(20,20,20,.88); color: #fff;
  font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; z-index: 1;
}
.uploader-item .del:hover { background: #000; }
.uploader-status {
  min-height: 20px; margin-top: 8px; font-size: 12px; line-height: 20px;
  display: flex; align-items: center; gap: 6px;
}
.uploader-status.uploading { color: #666; }
.uploader-status.success { color: #2f9f63; }
.uploader-status.error { color: #c0392b; }
.uploader-status.error a { color: #2f7cd4; margin-left: 4px; }
.uploader-status-icon { font-size: 14px; font-weight: bold; }
.uploader-spinner {
  width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid #d8d8d8; border-top-color: #555;
  animation: uploader-spin .7s linear infinite;
}
.uploader-locked .uploader-zone,
.uploader-locked .uploader-item .del { pointer-events: none; opacity: .55; }
@keyframes uploader-spin { to { transform: rotate(360deg); } }

/* 分页控件 */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.pager:empty { display: none; }
.pager-btn {
  display: inline-block; height: 30px; line-height: 28px; padding: 0 16px;
  box-sizing: border-box; border: 1px solid #1a1a1a; border-radius: 15px;
  font-size: 13px; color: #1a1a1a; background: #fff; cursor: pointer;
}
.pager-btn:hover { background: #1a1a1a; color: #fff; }
.pager-btn.disabled { border-color: #ccc; color: #bbb; cursor: default; pointer-events: none; }
.pager-info { font-size: 13px; color: #666; }

/* 远程搜索下拉 */
.remote-select { position: relative; }
.remote-select .rs-display {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 8px;
  padding: 10px 12px; font-size: 14px; background: #fff; cursor: pointer; min-height: 41px;
}
.remote-select .rs-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote-select .rs-txt.ph { color: #999; }
.remote-select .rs-arrow {
  width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid #666; margin-left: 8px; flex: none;
}
.remote-select .rs-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.14); padding: 8px;
}
.remote-select .rs-search {
  width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 6px;
  padding: 8px 10px; font-size: 13px; outline: none; margin-bottom: 6px;
}
.remote-select .rs-search:focus { border-color: #1a1a1a; }
.remote-select .rs-list { max-height: 216px; overflow-y: auto; }
.remote-select .rs-item { padding: 8px 10px; font-size: 14px; color: #333; cursor: pointer; border-radius: 6px; }
.remote-select .rs-item:hover { background: #f5f5f5; }
.remote-select .rs-empty-opt { color: #999; }
.remote-select .rs-status { padding: 10px; font-size: 13px; color: #999; text-align: center; }

/* 普通員工（role!=1）隱藏管理操作：main.js 依 /me 角色給 body 加 role-normal */
body.role-normal .admin-only,
body.role-normal #btn-add-staff,
body.role-normal #btn-edit-staff,
body.role-normal #btn-set-password { display: none !important; }
