#article {
  padding-left: 3rem;
  padding-right: 3rem;
}
main a {
  text-decoration: underline;
  color: #345799;
}
main a:hover {
  opacity: 0.8;
}
.banner {
  margin: 0;
  max-width: none;
  padding-left: 36px;
  padding-right: 36px;
}
.banner,
.head {
  padding-top: 20px;
}
.head {
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid #dcdcdc;
  line-height: 1.5;
}
.head ul {
  margin: 0;
}
h1 {
  padding-right: 168px;
  font-size: min(max(3vw, 1.5rem), 2rem);
}
.author {
  font-size: 14px;
  position: absolute;
  right: 1rem;
  top: 11%;
}
.author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.author a {
  text-decoration: none;
}
.type {
  color: #fff;
  font-size: 1.375rem;
  font-size: min(5vw, 1.375rem);
  font-weight: 700;
  background-color: #5e812f;
  display: inline-block;
  padding: 0.5rem;
  border-radius: 0.125rem;
}
.focus .type,
.type[data-type="本月焦點"] {
  background-color: #434b54;
  mix-blend-mode: hard-light;
}
.product .type,
.type[data-type="產品特寫"] {
  background-color: #4978b8;
}
.lt .type,
.type[data-type="技術交流"] {
  background-color: #238570;
}
.job .type,
.management .type,
.type[data-type="管理專欄"] {
  background-color: #0a3a57;
}
.cartoon .type,
.type[data-type="漫畫資通"] {
  background-color: #5f1985;
}
#article figure img {
  aspect-ratio: auto 16/9;
  object-fit: contain;
}
aside {
  padding: 1rem;
  line-height: 1.9;
}
#article {
  line-height: 1.9;
  margin-bottom: 2rem;
}
figure {
  margin: 2rem auto;
  max-width: 800px;
}
h2,
h3 {
  margin: 3rem 0 1.5rem;
  font-size: min(max(3vw, 1.4rem), 1.9rem);
}
h3 {
  font-size: min(max(3vw, 1.2rem), 1.5rem);
}
table {
  width: 100%;
}
caption {
  caption-side: top;
}
article ol,
article ul,
p {
  margin-bottom: 1.5rem;
}
blockquote {
  font-style: italic;
  border: none;
  font-size: 1rem;
  opacity: 0.8;
}
blockquote[cite]::after {
  content: "-- " attr(cite);
  display: block;
  text-align: right;
}
.keyword {
  text-decoration: none;
  position: relative;
}
.keyword::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #6ac7ef;
  transform-origin: bottom right;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.keyword:hover {
  color: #6ac7ef;
}
.keyword:hover::before,
.keyword:focus::before {
  transform-origin: bottom left;
  transform: scaleX(1);
}
.key-words ~ .banner {
  display: none;
}
.q::before {
  content: "Q：";
  font-weight: bold;
}
.a::before {
  content: "A：";
  font-weight: bold;
}
.contact-aside {
  color: #345799;
  background-color: #efefef;
  text-align: center;
  padding: 1rem;
}
input[name="star"] {
  -webkit-appearance: none;
  border: none;
  outline: none;
  display: none;
}
#star-area label {
  font-size: 1.5rem;
  padding-right: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
#star-area label::after {
  content: "\2606";
  color: #999;
  transition: color 0.4s ease;
}
input[name="star"]:checked + label::after,
#star-area label:hover::after {
  content: "\2605";
  color: #ffa822;
}
input[name="star"]:checked + label ~ label::after,
#star-area label:hover ~ label::after {
  content: "\2605";
  color: #ffa822;
}
#star-area label:hover {
  transform: scale(1.2);
}
.mark {
  display: inline;
  background-image: linear-gradient(0deg, #94e8ea 40%, transparent 41%);
  text-decoration: none;
  font-weight: 700;
}
.d-flex {
  display: flex !important;
}
.flex-row-reverse {
  flex-direction: row-reverse !important;
}
#toc,
#toc-js {
  border: 0;
  border-radius: 4px;
  padding: 1rem;
  background-color: #eaebef;
  margin-bottom: 1rem;
  display: inline-block;
}
#toc::before,
#toc-js::before {
  content: "\6587\7ae0\76ee\9304";
  display: block;
  font-size: 18px;
  font-weight: bold;
}
#toc li,
#toc-js li {
  margin: 0;
}
#toc ol,
#toc ul,
#toc-js ol {
  counter-reset: toc;
  list-style-type: none;
  padding-left: 1rem;
  margin-bottom: 0;
}
#toc li::before,
#toc-js li::before {
  counter-increment: toc;
  content: counters(toc, ".") " ";
}
a.btn {
  text-decoration: none;
}
video,
iframe.banner {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}
#more-article {
  margin-top: -84px;
  max-width: 970px;
}
@media (min-width: 768px) {
    h1 {
        white-space: nowrap;
    }
}
@media (min-width: 576px) {
  .col-sm-auto {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
  /* .author {
    top: calc(50% - 30px);
  } */
}
@media (max-width: 991px) {
  #article {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    padding-right: 0;
  }
  #more-article {
    margin-top: 2rem;
  }
}

@media (max-width: 520px) {
  .author {
    top: 6%;
  }
}


@media (prefers-color-scheme: dark) {
  #all,
  section.gray-bg {
    background-color: #334;
  }
  body {
    color: #e1e1e1;
  }
  main a {
    color: #f494f7;
  }
  main a.keyword {
    color: #c4eeff;
  }
  h2,
  .h2 {
    color: #fff;
  }
  .thumbnail {
    box-shadow: none;
  }
  .table-striped > tbody > tr:nth-of-type(odd) {
    color: #000;
  }
  .fff-bg,
  .gray-bg,
  #nav ul {
    background-color: #262136;
  }
  .gray-color {
    color: #e1e1e1;
  }
  .contact-aside {
    background-color: #262136;
    color: #999;
  }
  .fancybox-image-wrap {
    background: #fff !important;
  }
  #toc,
  #toc-js {
    background-color: #242424;
  }
  .mark {
    background-image: linear-gradient(0deg, #b8ffce 4%, transparent 5%);
  }
}
code {
  -webkit-user-select: all;
  user-select: all;
}
code:focus {
  animation: select 100ms step-end forwards;
}
@keyframes select {
  to {
    user-select: text;
  }
}
.clear {
  clear: both;
}
#article-content {
  letter-spacing: 1px;
}
.contact-aside-gray {
  color: #345799;
  background-color: #efefef;
  text-align: left;
  padding: 1rem;
}
