:root {
  color: #2c3e50;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #0068c9;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header {
  min-height: 70px;
  background: #2c3e50;
}

.site-nav {
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: auto;
}

.site-nav a {
  min-height: 70px;
  padding: 0 32px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f39c12;
}

.site-nav a.active {
  color: #f39c12;
  font-weight: 700;
  box-shadow: inset 0 -2px #f39c12;
}

#main-content {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
  flex: 1;
}

.brand-title {
  margin: 0;
  color: #31333f;
  font-size: 35px;
  line-height: 1.2;
}

.brand-c {
  color: red;
}

.brand-b {
  color: green;
}

.brand-i {
  color: blue;
}

.brand-t {
  color: orange;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 18px;
}

.home-copy {
  line-height: 2;
}

.carousel {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #f0f2f6;
}

.carousel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.carousel-control {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 52px;
  border: 0;
  transform: translateY(-50%);
  background: rgba(44, 62, 80, 0.68);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease;
}

.carousel:hover .carousel-control,
.carousel-control:focus-visible {
  opacity: 1;
}

.carousel-control.previous {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

.tab-list {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #dcdfe6;
  overflow-x: auto;
}

.tab-list button {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #303133;
  cursor: pointer;
  white-space: nowrap;
}

.tab-list button[aria-selected="true"] {
  color: #409eff;
  border-bottom-color: #409eff;
  font-weight: 600;
}

.home-tabs .tab-list {
  align-items: flex-end;
}

.home-tabs .home-tab {
  min-height: 80px;
  border: 1px solid #dcdfe6;
  border-bottom: 0;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
}

.home-tabs .home-tab[aria-selected="true"] {
  color: inherit;
  box-shadow: 0 0 8px #3d3939;
  position: relative;
  z-index: 1;
}

.home-tabs .map-tab {
  background: #ffa500;
  color: #000;
}

.home-tabs .pca-tab {
  background: #3c8dbd;
}

.home-tabs .table-tab {
  background: #00a660;
}

.tab-panel {
  margin-top: 30px;
}

.map,
.poa,
.table {
  border: 1px solid;
  border-radius: 4px;
  overflow: hidden;
}

.map {
  border-color: #ffa500;
}

.poa {
  border-color: #3c8dbd;
}

.table {
  padding: 40px;
  border-color: #00a660;
}

#canvas {
  width: 100%;
  height: 500px;
  background: #fff;
  touch-action: none;
}

#canvas svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#canvas svg:active {
  cursor: grabbing;
}

.map-country {
  fill: #d8d8d8;
  stroke: #eee;
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
}

.sample-site {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sample-site:focus,
.sample-site:hover {
  stroke: #2c3e50;
  stroke-width: 2;
}

.map-tooltip {
  position: fixed;
  z-index: 20;
  max-width: 300px;
  padding: 9px 12px;
  border-radius: 4px;
  background: rgba(44, 62, 80, 0.94);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.poa iframe {
  width: 100%;
  height: 700px;
  border: 0;
  display: block;
}

.table-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}

.table-tools a {
  text-decoration: none;
}

.filter-control {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  gap: 10px;
  align-items: center;
  text-align: right;
}

.filter-control input,
.form-control input,
.form-control select {
  width: 100%;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  color: #606266;
  background: #fff;
}

.filter-control input:focus,
.form-control input:focus,
.form-control select:focus {
  border-color: #409eff;
  outline: 2px solid rgba(64, 158, 255, 0.16);
}

.page-title {
  margin: 0 0 22px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.info-box {
  width: 100%;
  border-top: 2px solid green;
  font-size: 15px;
  line-height: 2;
}

.info {
  margin-bottom: 2%;
  font-size: 18px;
}

.info li + li {
  margin-top: 5px;
}

.inline-equation,
.equation {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.equation {
  display: inline-block;
  margin: 0 8px;
  font-family: Georgia, serif;
}

.analysis-form {
  margin: 18px auto;
}

.field-label {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  font-size: 16px;
}

.field-label a {
  text-decoration: none;
}

.upload-demo {
  min-height: 86px;
  position: relative;
  display: flex;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 12px 18px;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: #f0f2f6;
  cursor: pointer;
}

.upload-demo.dragging {
  border-color: #409eff;
  background: #e8f2fc;
}

.upload-demo input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  color: #97a6c3;
  font-size: 40px;
  line-height: 1;
}

.upload-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.upload-copy small {
  color: #606266;
  font-size: 13px;
}

.browse-button {
  min-width: 150px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
}

.selected-file {
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 5px;
  background: #e8f2fc;
  color: #0048a0;
  font-weight: 700;
  line-height: 1.5;
}

.form-control {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  font-size: 16px;
}

.analyse-button {
  min-width: 98px;
  min-height: 42px;
  margin-top: 22px;
  padding: 8px 20px;
  border: 2px solid #2c3e50;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  cursor: pointer;
}

.analyse-button:hover,
.analyse-button:focus-visible {
  background: #2c3e50;
  color: #fff;
}

.results {
  margin-top: 22px;
}

.results-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 2%;
  padding-top: 5px;
  border-top: 2px solid orange;
  font-size: 20px;
}

.results-title a {
  color: #409eff;
  text-decoration: none;
}

.tip {
  min-height: 44px;
  margin-top: 18px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  background: #ffebed;
  color: #853a41;
  font-weight: 700;
}

.data-table {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid #ebeef5;
  border-bottom: 1px solid #ebeef5;
}

.el-table__header-wrapper,
.el-table__body-wrapper {
  width: 100%;
  overflow-x: auto;
}

.el-table__header-wrapper {
  overflow-y: hidden;
  scrollbar-width: none;
}

.el-table__header-wrapper::-webkit-scrollbar {
  display: none;
}

.el-table__body-wrapper {
  max-height: 560px;
}

.data-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.wide-table table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.wide-table th,
.wide-table td {
  width: 132px;
  min-width: 132px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ebeef5;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.data-table th {
  background: #495a69;
  color: #fff;
  font-weight: 400;
}

.data-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.data-table tbody tr:hover {
  background: #f5f7fa;
}

.empty-table {
  padding: 42px 16px;
  color: #909399;
  text-align: center;
}

.pagination {
  min-height: 66px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  color: #606266;
}

.pagination .total {
  margin-right: auto;
}

.pagination select,
.pagination input,
.pagination button {
  min-height: 38px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
}

.pagination select {
  padding: 0 10px;
}

.pagination input {
  width: 64px;
  padding: 0 8px;
  text-align: center;
}

.pagination button {
  width: 38px;
  cursor: pointer;
}

.pagination button:disabled {
  color: #c0c4cc;
  cursor: default;
}

.pagination .current-page {
  min-width: 38px;
  color: #409eff;
  font-weight: 700;
  text-align: center;
}

.about-page {
  line-height: 2;
}

.site-footer {
  width: 100%;
  padding: 7px 20px;
  background: #f1f1f1;
  color: #000;
  text-align: center;
  line-height: 2;
}

.site-footer a {
  text-decoration: none;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.36);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  :root {
    font-size: 16px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 0 18px;
  }

  #main-content {
    width: min(100% - 28px, 1240px);
    padding-top: 18px;
  }

  .home-intro {
    grid-template-columns: 1fr;
  }

  .carousel {
    height: min(350px, 70vw);
  }

  .home-tabs .home-tab {
    min-height: 62px;
    padding: 0 18px;
    font-size: 16px;
  }

  .table {
    padding: 22px 16px;
  }

  .table-tools {
    grid-template-columns: 1fr;
  }

  .filter-control {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand-title {
    font-size: 28px;
  }

  .plain-tabs button {
    padding: 0 16px;
  }

  .upload-demo {
    gap: 12px;
    padding: 12px;
  }

  .upload-icon {
    display: none;
  }

  .browse-button {
    min-width: 108px;
  }

  .filter-control {
    grid-template-columns: 1fr;
  }

  .pagination .total {
    width: 100%;
    margin-right: 0;
    text-align: center;
  }
}
