@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");
:root {
  --design-width: 1920;
  --design-height: 1080;
  --small-width: 768;
}
* {
  box-sizing: border-box;
  font-family: "Noto Sans TC", sans-serif;
  scroll-margin-top: 64px;
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
.flex {
  display: flex;
  /* flex-wrap: wrap; */
  flex-wrap: nowrap;
}
.row {
  flex-direction: row;
  /* flex-wrap: wrap; */
}
.column {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.block {
  display: block;
}
.column {
  flex-direction: column;
}

.d-none {
  display: none;
}

.cursor-pointer {
  cursor: pointer;
}
/* header */
header {
  height: 64px;
  background-color: white;
  padding: 0 20px;
  z-index: 2;
  box-shadow: 0px 2px 4px 0px #0000001a;
  position: sticky;
  top: 0;
}

.logo {
  /* font-size: 22px; */
  font-weight: 700;
  color: #3f3f3f;
  /* font-size: calc(22 / var(--design-width) * 100vw);
   */
  font-size: 22px;
  height: 30px;
}

.logo img {
  height: 30px;
}

header .actions {
  color: #3f3f3f;
  /* column-gap: calc(52 / var(--design-width) * 100vw); */
  /* font-size: calc(14 / var(--design-width) * 100vw); */
  column-gap: calc(52 / var(--design-width) * 100vw);
  font-size: 14px;
}

header .actions .hamburger {
  display: none;
}

header .actions .links {
  display: flex;
  column-gap: calc(52 / var(--design-width) * 100vw);
}

header .actions .dropdown-item {
  height: 64px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  min-width: 125.28px;
  justify-content: center;
}

header .actions .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* header .actions .dropdown-item.extended {
  background-color: white;
} */

header .actions .dropdown-item .item-name {
  height: 64px;
  padding: 4px 16px;
}

header .actions .dropdown-item img {
  width: 18px;
  margin-left: 8px;
  transition: transform 0.2s linear;
}

header .actions .dropdown-item img.reverse {
  transform: rotate(180deg);
}

header .actions .dropdown-item img:not(.reverse) {
  transform: rotate(0deg);
}

header .actions .dropdown-item .item-list {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: white;
  transform: translateY(100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12);
  color: #3f3f3f;
  width: 100%;
}

header .actions .dropdown-item .item-list.hacker {
  width: 125.28px;
}

header .actions .dropdown-item .item-list .item {
  /* padding: 8px 16px; */
  color: #3f3f3f;
  width: 100%;
  height: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
}

header .actions .dropdown-item .item-list .item a {
  padding: 8px 16px;
  width: 100%;
  line-height: 20px;
}

header .actions .dropdown-item .item-list .item .item-content {
  padding: 8px 16px;
  width: 100%;
}

header .actions .dropdown-item .item-list .item:hover {
  background: rgba(0, 0, 0, 0.12);
}

header .actions .login-btn {
  /* margin-left: calc(24 / var(--design-width) * 100vw); */
  color: white;
  background: #31294a !important;
  border-radius: 3px;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  outline: 0;
  border: 0;
  vertical-align: middle;
  /* line-height: 1.715em; */
  text-decoration: none;
  background: transparent;
  /* font-weight: 500; */
  text-align: center;
  width: auto;
  height: auto;
  cursor: default;
  /* min-height: 2.572em; */
  cursor: pointer;
  /* font-size: calc(16 / var(--design-width) * 100vw); */
  font-size: 16px;
  /* padding: calc(6 / var(--design-width) * 100vw) */
  /* calc(37 / var(--design-width) * 100vw); */
  padding: 6px 37px;
  width: 120px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .actions .login-btn:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12);
  width: 120px;
  height: 44px;
}

header .actions .login-btn .login-block {
  width: 50px;
  height: 23px;
  line-height: 23px;
}

@media (max-width: 1279px) {
  /* @media (max-width: 1023px) { */
  header {
    padding-right: 0;
  }
  header .actions .links {
    display: none;
  }
  header .actions .links.expanded {
    display: block;
    background-color: #3f3f3f;
    position: fixed;
    top: 64px;
    right: 0;
    width: 100vw;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
  }
  header .actions .links .dropdown-item {
    height: unset;
    flex-direction: column;
  }
  header .actions .links .dropdown-item.extended .item-list {
    background-color: white;
  }

  header .actions .links .dropdown-item .item-name {
    width: 100%;
    color: white;
  }

  header .actions .links .dropdown-item .item-name img {
    filter: invert(100%);
  }

  header .actions .links .dropdown-item .item-list {
    position: unset;
    transform: unset;
    height: unset;
    width: 100%;
  }

  header .actions .links .dropdown-item .item-list .item {
    height: unset;
  }

  header .actions .hamburger {
    display: flex;
    cursor: pointer;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  header .actions .hamburger.expanded {
    background-color: #3f3f3f;
  }
  header .actions .hamburger.expanded img {
    filter: invert(100%);
  }
}

footer {
  height: 30px;
  padding: 0 20px;
  background-color: #3f3f3f;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

/* login */
.login-section {
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}
.login-section .login-card {
  background-color: white;
  min-height: 250px;
  justify-content: space-between;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  border-radius: 4px;
  padding: 24px 24px;
  z-index: 999;
  line-height: 1.5;
}
.login-section .login-card .login__header {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}
.text-underline {
  text-decoration: underline;
}
.login__button {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  border-radius: 3px;
  outline: 0;
  border: 0;
  vertical-align: middle;
  font-size: 14px;
  /* line-height: 1.715em; */
  text-decoration: none;
  color: inherit;
  background: transparent;
  font-weight: 500;
  text-align: center;
  width: auto;
  height: auto;

  padding: 4px 16px;
  min-height: 2.572em;
  cursor: pointer;
  line-height: 1.715em;
  /* width: 120px;
  height: 44px; */
}
.text-blue {
  color: #1559a1;
}
.login-section .icon-close {
  width: 32px;
  cursor: pointer;
}

.login-section .icon-close img {
  width: 32px;
}
.login-section .icon-google {
  width: 20px;
  margin-right: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-section .icon-google img {
  width: 20px;
}

.image.hourglass {
  max-width: 620px;
  /* max-height: 620px; */
}

/* project block */
.project-block {
  background-color: #f8f8f8;
  min-height: calc(100vh - 64px);
  padding-top: calc(60 / var(--design-width) * 100vw);
  padding-bottom: calc(68 / var(--design-width) * 100vw);
}
.project-block .block-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.project-block .block-wrapper .page-title {
  font-size: calc(28 / var(--design-width) * 100vw);
  font-weight: 700;

  margin-bottom: calc(32 / var(--design-width) * 100vw);
}
.project-block .subtitle,
.project-block .bold {
  font-size: calc(20 / var(--design-width) * 100vw);
  font-weight: 700;
}

.project-block .paragraph {
  margin-bottom: calc(32 / var(--design-width) * 100vw);
  font-size: calc(18 / var(--design-width) * 100vw);
}

.project-block .subtitle {
  margin-bottom: calc(8 / var(--design-width) * 100vw);
}

.project-block .block-wrapper .select-wrapper {
  margin: 10px 0;
}
.project-block .block-title {
  padding: 60px 0 40px 0;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
}
.project-block .search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 40px;
}
.project-block .search-wrapper .contact {
  margin-top: 8px;
  font-size: 14px;
  color: #999;
}
.project-block .search-wrapper .contact a {
  color: #147af3;
}
.project-block .project-groups {
  row-gap: calc(40 / var(--design-width) * 100vw);
  padding-bottom: calc(36 / var(--design-width) * 100vw);
  padding-top: calc(22 / var(--design-width) * 100vw);
}
.project-block .project-groups .project-group .group-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline; /* 讓所有子元素的文字底部對齊 */
}

.project-block .project-groups .project-group .group-title .project-count {
  font-weight: 400;
  margin-left: 16px;
}

.project-block .project-groups .project-group .group-title .count {
  margin-left: 8px;
  margin-right: 8px;
  color: red;
  font-weight: 800;
  font-size: 20px;
}
.project-block .project-groups .project-group .group-content {
  row-gap: 20px;
  column-gap: 20px;
}
.project-block .project-groups .project-group .group-content .project {
  width: calc((100% - 80px) / 5);
  padding: 11px 12px;
  background-color: white;
  border-radius: 4px;
  row-gap: 2px;
  cursor: pointer;
}
.project-block .project-groups .project-group .group-content .project.selected {
  border: 1px solid #31294a;
}
.project-block .project-groups .project-group .group-content .project__image {
  width: 33px;
  height: 33px;
  margin-right: 10px;
  object-fit: contain;
}

.project-block
  .project-groups
  .project-group
  .group-content
  .project__image.empty {
  background-color: gray;
  /* background-color: white; */
  /* width: 0; */
}
.project-block .project-groups .project-group .group-content .project__name {
  font-size: 16px;
  color: #333;
}

.project-block .project-groups .project-group .group-content .project-content {
  flex-wrap: nowrap;
}
.project-block .project-groups .project-group .group-content .project__version {
  font-size: 12px;
  color: #333333;
  word-break: break-word;
}
.project-block .sbom-wrapper {
  /* background-color: white; */
  padding: 16px 0;
  box-shadow: 0px -4px 4px 0px #000 0d;
  position: fixed;
  bottom: 0px;
  width: 100%;
  background: #31294a;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.project-block .sbom-wrapper.collapse {
  width: fit-content;
  right: 24px;
  padding: 8px 20px;
}

.project-block .sbom-wrapper.isFooterSeen {
  bottom: 24px;
}
.project-block .sbom-wrapper .upload-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.project-block .sbom-wrapper img {
  margin-left: 16px;
  cursor: pointer;
}

.project-block .sbom-wrapper img.reverse {
  transform: rotate(180deg);
}

.project-block .sbom-wrapper .upload-wrapper .upload-btn {
  /* margin-left: 24px; */
  /* color: white; */
  /* background: #1559A1 !important; */
  color: #31294a;
  background: white !important;
  border-radius: 3px;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  outline: 0;
  border: 0;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.715em;
  text-decoration: none;
  background: transparent;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  width: auto;
  height: auto;
  cursor: default;
  padding: 4px 16px;
  min-height: 2.572em;
  cursor: pointer;
  width: fit-content;
  margin-top: 16px;
}

.project-block .sbom-wrapper .upload-wrapper .upload-btn:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14),
    0 3px 1px -2px rgba(0, 0, 0, 0.12);
}

.project-block .sbom-wrapper .upload-wrapper .filename {
  position: absolute;
  right: 0;
}
.project-block .sbom-wrapper .contact {
  margin-top: 8px;
  font-size: 14px;
  color: #999;
}
.project-block .sbom-wrapper .contact a {
  color: #147af3;
}
.project-block .image-wrapper {
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 40px;
}
.project-block .image-wrapper .contact {
  margin-top: 8px;
  font-size: 14px;
  color: #999;
}
.project-block .image-wrapper .contact a {
  color: #147af3;
}
.project-block .image-wrapper .upload-btn {
  margin-left: 24px;
}

/* section */
.page-1 {
  height: calc(100vh - 64px);
  background-size: cover;
  padding: calc(50 / var(--design-width) * 100vw)
    calc(120 / var(--design-width) * 100vw)
    calc(158 / var(--design-width) * 100vw)
    calc(120 / var(--design-width) * 100vw);
  column-gap: 50px;
  /* justify-content: space-between; */
}

.page-1 .page-header {
  font-size: calc(44 / var(--design-width) * 100vw);
  font-weight: 700;
  margin-bottom: calc(14 / var(--design-width) * 100vw);
  height: calc(64 / var(--design-width) * 100vw);
  line-height: alc(52.8 / var(--design-width) * 100vw);
}

.page-1 .card {
  color: white;
  font-size: calc(18 / var(--design-width) * 100vw);
  font-weight: 400;
  padding: calc(20 / var(--design-width) * 100vw)
    calc(70 / var(--design-width) * 100vw);
  border-radius: 4px;
  max-width: calc(798 / var(--design-width) * 100vw);
  line-height: calc(26 / var(--design-width) * 100vw);
}

.page-1 .product {
  max-width: calc(750 / var(--design-width) * 100vw);
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
}

.page-1 .product img {
  width: 100%;
}

.page-1 .subtitle,
.page-1 .bold {
  font-size: calc(24 / var(--design-width) * 100vw);
  font-weight: 700;
}
.page-1 .subtitle {
  margin-bottom: calc(8 / var(--design-width) * 100vw);
}

.page-1 .paragraph,
.page-1 ul {
  margin-bottom: calc(32 / var(--design-width) * 100vw);
}
.page-1 .paragraph:last-child {
  margin-bottom: 0;
}
.page-1 ul {
  list-style: disc inside;
}

@media (max-width: 768px) {
  .page-1 {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    height: unset;
    gap: 20px;
  }
  .page-1 .page-header {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 14px;
    /* height: calc(64 / var(--small-width) * 100vw); */
    line-height: 44px;
    height: 44px;
  }

  .page-1 .card {
    color: white;
    font-size: 18px;
    padding: 20px 20px;
    border-radius: 4px;
    max-width: unset;
    line-height: 26px;
  }
  .page-1 .product {
    width: 100%;
    max-width: none;
  }

  .page-1 .product img {
    width: 100%;
  }

  .page-1 .subtitle,
  .page-1 .bold {
    font-size: 18px;
    font-weight: 700;
  }

  /* project block */
  .project-block {
    background-color: #f8f8f8;
    min-height: unset;
    padding: 20px;
    padding-top: 60px;
    padding-bottom: 68px;
  }
  .project-block .block-wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }

  .project-block .block-wrapper .page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
  }
  .project-block .subtitle,
  .project-block .bold {
    font-size: 20px;
    font-weight: 700;
  }

  .project-block .paragraph {
    margin-bottom: 32px;
    font-size: 18px;
    line-height: 24px;
  }

  .project-block .subtitle {
    margin-bottom: 8px;
  }

  .project-block .block-wrapper .select-wrapper {
    margin: 10px 0;
  }
  .project-block .block-title {
    padding: 60px 0 40px 0;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
  }
  .project-block .search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  .project-block .search-wrapper .contact {
    margin-top: 8px;
    font-size: 14px;
    color: #999;
  }
  .project-block .search-wrapper .contact a {
    color: #147af3;
  }
  .project-block .project-groups {
    row-gap: 40px;
    padding-bottom: 36px;
    padding-top: 22px;
  }
  .project-block .project-groups .project-group .group-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline; /* 讓所有子元素的文字底部對齊 */
  }

  .project-block .project-groups .project-group .group-title .project-count {
    font-weight: 400;
    margin-left: 16px;
  }

  .project-block .project-groups .project-group .group-title .count {
    margin-left: 8px;
    margin-right: 8px;
    color: red;
    font-weight: 800;
    font-size: 20px;
  }
  .project-block .project-groups .project-group .group-content {
    row-gap: 20px;
    column-gap: 20px;
    flex-direction: column;
  }
  .project-block .project-groups .project-group .group-content .project {
    width: 100%;
    padding: 11px 12px;
    background-color: white;
    border-radius: 4px;
    row-gap: 2px;
    cursor: pointer;
  }
  .project-block
    .project-groups
    .project-group
    .group-content
    .project.selected {
    border: 1px solid #31294a;
  }
  .project-block .project-groups .project-group .group-content .project__image {
    width: 33px;
    height: 33px;
    margin-right: 10px;
    object-fit: contain;
  }

  .project-block
    .project-groups
    .project-group
    .group-content
    .project__image.empty {
    background-color: gray;
    /* background-color: white; */
    /* width: 0; */
  }
  .project-block .project-groups .project-group .group-content .project__name {
    font-size: 16px;
    color: #333;
  }

  .project-block
    .project-groups
    .project-group
    .group-content
    .project-content {
    flex-wrap: nowrap;
  }
  .project-block
    .project-groups
    .project-group
    .group-content
    .project__version {
    font-size: 12px;
    color: #333333;
    word-break: break-word;
  }
  .project-block .sbom-wrapper {
    /* background-color: white; */
    padding: 16px 10px;
    box-shadow: 0px -4px 4px 0px #000 0d;
    position: fixed;
    bottom: 0px;
    right: 0;
    width: 100vw;
    background: #31294a;
    color: white;
    font-size: 14px;
    font-weight: 700;
  }

  .project-block .sbom-wrapper.collapse {
    width: fit-content;
    right: 0px;
    padding: 8px 20px;
  }

  .project-block .sbom-wrapper.isFooterSeen {
    bottom: 24px;
  }
  .project-block .sbom-wrapper .upload-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .project-block .sbom-wrapper img {
    margin-left: 16px;
    cursor: pointer;
  }

  .project-block .sbom-wrapper img.reverse {
    transform: rotate(180deg);
  }

  .project-block .sbom-wrapper .upload-wrapper .upload-btn {
    /* margin-left: 24px; */
    /* color: white; */
    /* background: #1559A1 !important; */
    color: #31294a;
    background: white !important;
    border-radius: 3px;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    outline: 0;
    border: 0;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.715em;
    text-decoration: none;
    background: transparent;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    width: auto;
    height: auto;
    cursor: default;
    padding: 4px 16px;
    min-height: 2.572em;
    cursor: pointer;
    width: fit-content;
    margin-top: 16px;
  }

  .project-block .sbom-wrapper .upload-wrapper .upload-btn:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14),
      0 3px 1px -2px rgba(0, 0, 0, 0.12);
  }

  .project-block .sbom-wrapper .upload-wrapper .filename {
    position: absolute;
    right: 0;
  }
  .project-block .sbom-wrapper .contact {
    margin-top: 8px;
    font-size: 14px;
    color: #999;
  }
  .project-block .sbom-wrapper .contact a {
    color: #147af3;
  }
  .project-block .image-wrapper {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  .project-block .image-wrapper .contact {
    margin-top: 8px;
    font-size: 14px;
    color: #999;
  }
  .project-block .image-wrapper .contact a {
    color: #147af3;
  }
  .project-block .image-wrapper .upload-btn {
    margin-left: 24px;
  }
}
