#ui-MainBody .display-card {
  max-height: calc(100% - 16px) !important;
  height: calc(100% - 16px) !important;
  width: calc(100% - 16px) !important;
  background: transparent !important;
}
#main-body-with-submenu #ui-MainBody .display-card {
  max-height: 100% !important;
  height: 100% !important;
  width: 100% !important;
}
#ui-MainBody .display-card #ui-body-frame {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}
#ui-MainBody .display-card #ui-body-frame #ui-body {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-x: hidden !important;
}
#main-body-with-submenu #ui-MainBody .display-card #ui-body-frame #ui-body {
  overflow: hidden !important;
}
#ui-MainBody .display-card #ui-body-frame #ui-body #ui-body-title {
  display: none !important;
}
#ui-MainBody .display-card #ui-body-frame #ui-body #ui-body-content {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

#ui-body-content {
  padding: 0 30px;
}

.purchase-anno {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  text-align: left;
}
.purchase-anno .scroll-to-top {
  position: fixed;
  width: 48px;
  height: 48px;
  right: 60px;
  bottom: -50px;
  background: var(--primary-color-dark, #2091ed);
  border-radius: 3px;
  cursor: pointer;
  transition: all ease-in-out 0.2s;
  opacity: 0.5;
  z-index: 1;
}
.purchase-anno .scroll-to-top.show {
  bottom: 60px;
}
.purchase-anno .scroll-to-top::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-left: 2px solid white;
  border-top: 2px solid white;
  transform: rotate(45deg);
  left: 19px;
  top: 21px;
}
.purchase-anno .scroll-to-top:hover {
  opacity: 1;
}

.purchase-anno .close-window {
  position: fixed;
  right: 0;
  top: 0;
  width: 70px;
  height: 70px;
  padding: 20px;
  z-index: 1;
  line-height: 30px;
  text-align: center;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.purchase-anno-body {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-start;
  align-items: stretch;
  justify-content: center;
  min-height: 1000px;
  background: white;
  box-shadow: 0px 0px 26px 1px var(--primary-content-bg-color, #e1e1e1);
  margin-bottom: 30px;
  margin-top: 30px;
  gap: 4px;
  transition: all ease-in-out 0.2s;
}

/* list */
.purchase-anno-body .list-warpper {
  width: 250px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: stretch;
  padding: 60px 0;
  box-shadow: 4px 0px 4px 0px #e5e5e5;
  transition: all ease-in-out 0.2s;
}
.purchase-anno-body .list-warpper .list-name .text {
  height: 56px;
  width: 90%;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  line-height: 56px;
  text-align: center;
  letter-spacing: 0.1em;
  font-size: 24px;
  font-weight: bold;
  font-family: 微软雅黑;
  color: white;
  background: linear-gradient(120deg, #1565c0 1%, #2196f3 55%, #03a9f4 97%);
  box-shadow: 2px 2px 4px 1px #999;
  transition: all ease-in-out 0.2s;
}
.purchase-anno-body .list-warpper .list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  align-items: stretch;
  justify-content: flex-start;
  margin-top: 40px;
}
.purchase-anno-body .list-warpper .list .item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-start;
  align-items: stretch;
  justify-content: flex-end;
  height: 100px;
  gap: 8px;
}
.purchase-anno-body .list-warpper .list .item .check {
  position: relative;
  width: 50px;
  height: 50px;
  background: #dcdcdc;
  border-radius: 25px;
  box-shadow: 0 0 0 1px white;
  transition: all ease-in-out 0.2s;
}
.purchase-anno-body .list-warpper .list .item .check::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 17px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(45deg);
  top: 13px;
  left: 20px;
  transition: all ease-in-out 0.2s;
}
.purchase-anno-body .list-warpper .list .item:not(:last-child) .check::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 46px;
  background: #dcdcdc;
  border-radius: 1px;
  left: calc(50% - 1px);
  top: calc(100% + 2px);
  box-shadow: 0 0 0 1px white;
  transition: all ease-in-out 0.2s;
}
.purchase-anno-body .list-warpper .list .item .title {
  width: 140px;
}
.purchase-anno-body .list-warpper .list .item .title .text {
  font-size: 16px;
  font-family: 微软雅黑;
  margin-top: 8px;
}
.purchase-anno-body .list-warpper .list .item .title .date {
  font-size: 14px;
  font-family: 微软雅黑;
  margin-top: 8px;
  color: #999;
}

.purchase-anno-body .list-warpper .list .item.active {
  cursor: pointer;
  transition: all ease-in-out 0.2s;
}
.purchase-anno-body .list-warpper .list .item.active:hover,
.purchase-anno-body .list-warpper .list .item.selected {
  background: #eaffeb;
}
.purchase-anno-body .list-warpper .list .item.active .check {
  background: #4caf50;
}
.purchase-anno-body .list-warpper .list .item.line-active .check::after {
  background: #4caf50;
}

.purchase-anno-body .list-warpper .latest-purchase-file {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  margin: 20px 20px 0 20px;
}
.purchase-anno-body .list-warpper .latest-purchase-file .title {
  border-top: 1px solid #ddd;
  padding-top: 10px;
}
.purchase-anno-body .list-warpper .latest-purchase-file .attachment {
  text-decoration: none;
  display: block;
  color: #1e88e5;
}
.purchase-anno-body .list-warpper .latest-purchase-file .tip {
  color: #666;
}

/* content */
.purchase-anno-body .content-warpper {
  min-width: 850px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 40px;
  gap: 20px;
}
.purchase-anno-body .content-warpper .header {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 800px;
}
.purchase-anno-body .content-warpper .header .title {
  font-size: 24px;
  font-weight: bold;
  font-family: 微软雅黑;
  width: 850px;
  padding: 0 40px;
  text-align: center;
}
.purchase-anno-body .content-warpper .header .description {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  font-size: 12px;
  font-family: 微软雅黑;
  color: #666;
  gap: 2px;
}
.purchase-anno-body .content-warpper .header .description .purchase-type,
.purchase-anno-body .content-warpper .header .description .purchase-way {
  font-size: 12px;
  transform: scale(0.9);
  transform-origin: left center;
}
.purchase-anno-body .content-warpper .header .description .purchase-type,
.purchase-anno-body .content-warpper .header .description .purchase-way {
  border-radius: 2px;
  padding: 0 6px;
  line-height: 1.6em;
}
.purchase-anno-body
  .content-warpper
  .header
  .description
  .purchase-type[data-purchase-type="COMMODITY"] {
  background: rgba(25, 118, 210, 0.8);
}
.purchase-anno-body
  .content-warpper
  .header
  .description
  .purchase-type[data-purchase-type="SERVICE"] {
  background: rgba(56, 142, 60, 0.8);
}
.purchase-anno-body
  .content-warpper
  .header
  .description
  .purchase-type[data-purchase-type="PROJECT"] {
  background: rgba(210, 170, 25, 0.8);
}
.purchase-anno-body .content-warpper .header .description .purchase-type {
  color: white;
}
.purchase-anno-body .content-warpper .header .description .purchase-way {
  box-shadow: inset 0 0 0 1px #838383;
}
.purchase-anno-body .content-warpper .header .description .read-count {
  margin-left: 2px;
}

.purchase-anno-body .content-warpper .content {
  text-align: center;
}

.purchase-anno-body .content-warpper .footer {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 0 120px 60px 120px;
  gap: 20px;
}

.purchase-anno-body .content-warpper .footer .attachments .list .attachment {
  text-decoration: none;
  max-width: 500px;
  display: block;
  color: #1e88e5;
  margin-top: 8px;
}
.purchase-anno-body
  .content-warpper
  .footer
  .attachments
  .list
  .attachment.out-of-date::after {
  content: "(该附件已过期，请查看最新的公告)";
  display: block;
  font-weight: bold;
}
.purchase-anno-body
  .content-warpper
  .footer
  .attachments
  .list
  .attachment.out-of-date
  span {
  text-decoration: line-through;
}

/* 报名相关按钮 */
.purchase-anno .join-info-button {
  min-width: 180px;
  height: 60px;
  right: 20px;
  bottom: 120px;
  line-height: 56px;
  text-align: center;
  letter-spacing: 0.1em;
  background: #607d8b;
  font-size: 20px;
  font-weight: bold;
  font-family: 微软雅黑;
  color: white;
  border-radius: 3px;
  padding: 0 1em;
  transition: all ease-in-out 0.2s;
  cursor: pointer;
}
.purchase-anno .join-info-button[data-join-state="CAN_JOIN"] {
  background: #2196f3;
}
.purchase-anno .join-info-button[data-join-state="CAN_JOIN"]:hover {
  background: #55aef6;
}
.purchase-anno .join-info-button[data-join-state="JOINED"],
.purchase-anno .join-info-button[data-join-state="JOINED_CHECK_PASS"] {
  background: #4caf50;
}
.purchase-anno .join-info-button[data-join-state="JOINED"]:hover,
.purchase-anno .join-info-button[data-join-state="JOINED_CHECK_PASS"]:hover {
  background: #5dd361;
}
.purchase-anno .join-info-button[data-join-state="JOINED_CHECKING"] {
  background: #ffb300;
}
.purchase-anno .join-info-button[data-join-state="JOINED_CHECKING"]:hover {
  background: #ffc02c;
}
.purchase-anno
  .join-info-button[data-join-state="JOINED_CHECK_UNPASS_OUTOFDATE"] {
  background: #616161;
}
.purchase-anno
  .join-info-button[data-join-state="JOINED_CHECK_UNPASS_OUTOFDATE"]:hover {
  background: #747474;
}
.purchase-anno .join-info-button[data-join-state="JOINED_PARTIAL_CHECK_PASS"],
.purchase-anno .join-info-button[data-join-state="JOINED_CHECK_UNPASS_ADDING"] {
  background: #f44336;
}
.purchase-anno
  .join-info-button[data-join-state="JOINED_PARTIAL_CHECK_PASS"]:hover,
.purchase-anno
  .join-info-button[data-join-state="JOINED_CHECK_UNPASS_ADDING"]:hover {
  background: #fd5347;
}

/* @media */
@media screen and (max-width: 1200px) {
  #main-body-with-submenu #ui-MainBody-wrapper {
    overflow-y: hidden !important;
  }

  .purchase-anno {
    justify-content: flex-start;
  }
  .purchase-anno-body .list-warpper {
    width: auto;
  }
  .purchase-anno-body {
    margin-bottom: 0;
    margin-top: 0;
  }
}
@media screen and (max-width: 1096px) {
  #ui-body-content {
    padding: 0;
  }
  .purchase-anno {
    position: relative;
    display: block;
    width: 100%;
  }
  .purchase-anno-body {
    justify-content: flex-start;
    box-shadow: none;
  }
  .purchase-anno-body .list-warpper {
    padding: 0;
    width: 100px;
  }
  .purchase-anno-body .list-warpper .list-name .text {
    font-size: 16px;
    width: 100%;
    border-radius: 0;
  }
  .purchase-anno-body .list-warpper .list .item {
    position: relative;
    height: 80px;
  }
  .purchase-anno-body .list-warpper .list .item .check {
    width: 100px;
  }
  .purchase-anno-body .list-warpper .list .item .check::before {
    width: 4px;
    height: 9px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    top: 7px;
    left: 12px;
  }
  .purchase-anno-body .list-warpper .list .item:not(:last-child) .check::after {
    height: 26px;
  }
  .purchase-anno-body .list-warpper .list .item .title {
    position: absolute;
    left: 24px;
    top: 11px;
    width: unset;
    right: 0;
  }
  .purchase-anno-body .list-warpper .list .item .title .text {
    font-size: 12px;
    color: white;
    margin-top: 0px;
  }
  .purchase-anno-body .list-warpper .list .item .title .date {
    font-size: 12px;
    color: white;
    transform: scale(0.8);
    transform-origin: left center;
    margin-top: 0;
    line-height: 1em;
    white-space: nowrap;
  }

  .purchase-anno-body .list-warpper .latest-purchase-file {
    display: none;
  }

  .purchase-anno-body .content-warpper {
    flex-grow: 1;
    min-width: unset;
  }

  #ui-MainBody
    .display-card
    #ui-body-frame
    #ui-body
    #ui-body-content
    .purchase-anno-body
    .content-warpper {
    overflow-x: auto;
  }
  #ui-MainBody-wrapper
    #ui-MainBody
    .display-card
    #ui-body-frame
    #ui-body
    #ui-body-content
    .purchase-anno-body
    .content-warpper {
    overflow-x: hidden;
  }
}
@media screen and (max-width: 800px) {
  .purchase-anno-body .list-warpper {
    width: 50px;
  }
  .purchase-anno-body .list-warpper .list-name .text {
    line-height: 1.4em;
    height: auto;
    padding: 8px 0;
  }
  .purchase-anno-body .list-warpper .list .item .check::before {
    top: 3px;
    left: 22px;
  }
  .purchase-anno-body .list-warpper .list .item .title {
    top: 14px;
    left: 0;
  }
  .purchase-anno-body .list-warpper .list .item .title .text {
    white-space: nowrap;
    overflow: hidden;
  }
  .purchase-anno-body .list-warpper .list .item .title .date {
    transform: scale(0.6);
    transform-origin: left center;
    line-height: 1em;
    margin-left: 5px;
  }
  .purchase-anno .close-window {
    width: 50px;
    height: 50px;
    padding: 10px;
  }
}
