:root {
  --page-bg: #ffffff;
  --query-bg: #eaeff5;
  --siemens-blue: #005f87;
  --nav-text: #788791;
  --body-text: #606266;
  --muted-text: #909399;
  --line: #ebeef5;
  --input-line: #dcdfe6;
  --danger: #e21919;
}

@font-face {
  font-family: element-icons;
  src: url("./assets/element-icons.woff") format("woff");
  font-style: normal;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page-bg);
  color: #000;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.el-icon-search,
.el-icon-s-home {
  display: inline-block;
  font-family: element-icons !important;
  font-size: 14px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  speak: none;
  text-transform: none;
  vertical-align: baseline;
  -webkit-font-smoothing: antialiased;
}

.el-icon-search::before {
  content: "\e778";
}

.el-icon-s-home::before {
  content: "\e7b9";
}

#app {
  min-height: 100vh;
}

.toast-alert {
  position: fixed;
  top: 9px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  min-width: 380px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  background: #fef0f0;
  color: #f56c6c;
  transform: translateX(-50%);
}

.toast-alert[hidden] {
  display: none;
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-right: 12px;
  border-radius: 50%;
  background: #f56c6c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
}

.top-shell {
  height: 70px;
  background: #fff;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - 5vw);
  height: 70px;
  margin: 0 2.5vw;
  background: #fff;
  box-shadow: 0 2px 8px rgba(18, 34, 54, 0.1);
}

.navbar::before {
  content: "";
  position: absolute;
  left: -2.5vw;
  top: 40px;
  width: 1px;
  height: 40px;
  background: var(--siemens-blue);
}

.brand-space {
  flex: 1 1 auto;
  min-width: 0;
}

.user-option {
  display: flex;
  align-items: center;
  width: 301px;
  height: 30px;
  margin-right: 0;
  color: var(--nav-text);
  line-height: 16px;
}

.option-item,
.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border: 0;
  border-right: 1px solid #d9d9d9;
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
}

.option-item {
  width: 120px;
}

.login-button {
  width: 91px;
  padding: 0;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 20px;
  margin-right: 40px;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
}

.siemens-logo {
  display: inline-block;
  align-self: flex-start;
  width: 159px;
  height: 26px;
  margin-top: 25px;
  background-image: url("./assets/siemens-logo.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}

.icon-style,
.logout {
  display: inline-block;
  flex: 0 0 auto;
}

.icon-style {
  margin-right: 10px;
}

.logout {
  width: 12px;
  height: 12px;
  margin-bottom: -2px;
  background-image: url("./assets/login-icon.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.home-icon {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  transform: translateY(1px);
}

.home-icon::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(0, -6px) rotate(45deg);
}

.login-icon {
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 1px solid currentColor;
  border-left: 0;
  position: relative;
}

.login-icon::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 1px;
  background: currentColor;
}

.login-icon::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 2px;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

.app-main {
  min-height: calc(100vh - 70px);
  padding-top: 10px;
}

.confirm-certificate {
  width: 100%;
}

.query-band {
  height: 116px;
  background: var(--query-bg);
  padding-top: 30px;
}

.header-select {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4.06vw;
  height: 40px;
}

.query-input {
  width: 50vw;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--input-line);
  border-radius: 4px;
  background: #fff;
  color: var(--body-text);
  line-height: 40px;
  outline: 0;
}

.query-input:focus {
  border-color: var(--siemens-blue);
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 89px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--input-line);
  border-radius: 4px;
  background: var(--siemens-blue);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.search-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.search-button .el-icon-search {
  margin-right: 5px;
}

.header-placeholder {
  display: flex;
  justify-content: center;
  height: 26px;
}

.header-placeholder p {
  width: 50vw;
  margin: 10px calc(89px + 4.06vw) 0 0;
  color: var(--danger);
  font-size: 14px;
  line-height: 16px;
}

.table-container {
  padding-top: 20px;
}

.table-tool {
  display: flex;
  width: calc(100vw - 160px);
  margin: 0 auto 20px;
  line-height: 16px;
}

.result-label {
  margin-left: 30px;
  color: #000;
}

.result-message {
  width: calc(100vw - 160px);
  margin: 0 auto 10px;
  padding-left: 30px;
  color: red;
  line-height: 16px;
}

.result-message[hidden] {
  display: none;
}

.result-table {
  width: calc(100vw - 160px);
  margin: 0 auto;
  color: var(--body-text);
  background: #fff;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 48px;
}

.table-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 0 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-cell:first-child {
  justify-content: center;
  text-align: center;
}

.table-cell:not(:first-child) {
  justify-content: center;
  text-align: center;
}

.table-head .table-cell {
  background: var(--query-bg);
  color: var(--muted-text);
  font-weight: 700;
}

.table-head .table-cell:first-child {
  border-left: 1px solid var(--line);
}

.table-body-row .table-cell:first-child {
  border-left: 1px solid var(--line);
}

.certificate-code {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--siemens-blue);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  min-height: 48px;
  padding: 15px 0;
  border: 1px solid var(--line);
  border-top: 0;
  color: var(--muted-text);
  text-align: center;
}

@media (max-width: 760px) {
  .top-shell {
    height: 62px;
  }

  .navbar {
    width: calc(100% - 24px);
    height: 62px;
    margin: 0 12px;
  }

  .navbar::before {
    left: -12px;
    top: 36px;
  }

  .user-option {
    width: auto;
    margin-right: 0;
    margin-left: auto;
  }

  .option-item {
    width: 96px;
  }

  .login-button {
    width: 68px;
  }

  .language-button {
    margin-left: 12px;
    margin-right: 0;
  }

  .siemens-logo {
    width: 124px;
    height: 20px;
    margin-top: 21px;
  }

  .app-main {
    min-height: calc(100vh - 62px);
    padding-top: 8px;
  }

  .query-band {
    height: auto;
    min-height: 132px;
    padding: 20px 16px 16px;
  }

  .header-select {
    gap: 10px;
    justify-content: stretch;
  }

  .query-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .search-button {
    flex: 0 0 82px;
    width: 82px;
  }

  .header-placeholder {
    justify-content: flex-start;
  }

  .header-placeholder p {
    width: 100%;
    margin: 10px 0 0;
  }

  .table-container {
    padding-top: 18px;
  }

  .table-tool,
  .result-table,
  .result-message {
    width: calc(100vw - 32px);
  }

  .result-label {
    margin-left: 0;
  }

  .result-message {
    padding-left: 0;
  }

  .result-table {
    overflow-x: auto;
  }

  .table-row {
    min-width: 680px;
  }
}
