@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,900&display=swap');

:root {
  --light: #FDFDFD;
  --dark: #000000;
  --red: #880212;
  --dark-red: #5A010C;
  --dark-red-opacity: rgba(90, 1, 12, 0.65);
  --secondary: #757575;
  --purple: #3a1c71;
  --light-orange: #d76d77;
  --light-yellow: #ffaf7b;
  --light-pink: #F26680;
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
}

html,
body {
  font-family: 'Barlow', sans-serif;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.8px;
  background: var(--light);
  color: var(--dark);
  /* overflow-x: hidden; */
  font-size: 0.95rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

h3 {
  transition: transform .3s ease-in-out, top .5s ease, -webkit-transform .3s ease-in-out;
}

h3:hover {
  color: var(--red);
}

img {
  object-fit: cover;
  object-position: center center;
}

p {
  margin-bottom: 0 !important;
}

.btn:focus,
button:focus,
.btn:active,
button:active {
  border: 0 !important;
  box-shadow: 0 0 0 0 !important;
}

.form-control {
  box-shadow: inset 0 0 0 transparent;
}
.form-control::-ms-expand {
  background-color: transparent;
  border: 0;
}
.form-control:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #495057;
}
.form-control:focus {
  box-shadow: inset -2px -2px 4px rgba(255,255,255,.2), inset 2px 2px 12px rgba(0,0,0,.2);
}

.rounded {
  border-radius: 1rem !important;
}

.navbar-nav.sm-collapsible .sub-arrow::before {
  content: '＋' !important;
  font-size: 0.7rem !important;
  line-height: 1.7 !important;
}

.navbar-nav.sm-collapsible .show>a>.sub-arrow::before {
  content: '－' !important;
  font-size: 0.7rem !important;
  line-height: 1.7 !important;
}

.dropdown-menu {
  min-width: 13rem;
  border: 2px #FFAF7B solid;
  /* border-radius: 0.5rem; */
}

.logo1 {
  color: var(--purple) !important;
  font-weight: 900;
}

.logo2 {
  font-weight: 700;
  background: linear-gradient(to right, #3a1c71, #d76d77, #ffaf7b);
  background: -webkit-linear-gradient(to right, #3a1c71, #d76d77, #ffaf7b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* bootstrap 5 start */

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {

  .container-sm,
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {

  .container-md,
  .container-sm,
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {

  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {

  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {

  .container-xxl,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 1320px;
  }
}

.navbar>.container,
.navbar>.container-fluid,
.navbar>.container-sm,
.navbar>.container-md,
.navbar>.container-lg,
.navbar>.container-xl,
.navbar>.container-xxl {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row>* {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.col {
  flex: 1 0 0%;
}

.g-0,
.gx-0 {
  --bs-gutter-x: 0;
}

.g-0,
.gy-0 {
  --bs-gutter-y: 0;
}

.g-1,
.gx-1 {
  --bs-gutter-x: 0.25rem;
}

.g-1,
.gy-1 {
  --bs-gutter-y: 0.25rem;
}

.g-2,
.gx-2 {
  --bs-gutter-x: 0.5rem;
}

.g-2,
.gy-2 {
  --bs-gutter-y: 0.5rem;
}

.g-3,
.gx-3 {
  --bs-gutter-x: 1rem;
}

.g-3,
.gy-3 {
  --bs-gutter-y: 1rem;
}

.g-4,
.gx-4 {
  --bs-gutter-x: 1.5rem;
}

.g-4,
.gy-4 {
  --bs-gutter-y: 1.5rem;
}

.g-5,
.gx-5 {
  --bs-gutter-x: 3rem;
}

.g-5,
.gy-5 {
  --bs-gutter-y: 3rem;
}

@media (min-width: 576px) {

  .g-sm-0,
  .gx-sm-0 {
    --bs-gutter-x: 0;
  }

  .g-sm-0,
  .gy-sm-0 {
    --bs-gutter-y: 0;
  }

  .g-sm-1,
  .gx-sm-1 {
    --bs-gutter-x: 0.25rem;
  }

  .g-sm-1,
  .gy-sm-1 {
    --bs-gutter-y: 0.25rem;
  }

  .g-sm-2,
  .gx-sm-2 {
    --bs-gutter-x: 0.5rem;
  }

  .g-sm-2,
  .gy-sm-2 {
    --bs-gutter-y: 0.5rem;
  }

  .g-sm-3,
  .gx-sm-3 {
    --bs-gutter-x: 1rem;
  }

  .g-sm-3,
  .gy-sm-3 {
    --bs-gutter-y: 1rem;
  }

  .g-sm-4,
  .gx-sm-4 {
    --bs-gutter-x: 1.5rem;
  }

  .g-sm-4,
  .gy-sm-4 {
    --bs-gutter-y: 1.5rem;
  }

  .g-sm-5,
  .gx-sm-5 {
    --bs-gutter-x: 3rem;
  }

  .g-sm-5,
  .gy-sm-5 {
    --bs-gutter-y: 3rem;
  }
}

@media (min-width: 768px) {

  .g-md-0,
  .gx-md-0 {
    --bs-gutter-x: 0;
  }

  .g-md-0,
  .gy-md-0 {
    --bs-gutter-y: 0;
  }

  .g-md-1,
  .gx-md-1 {
    --bs-gutter-x: 0.25rem;
  }

  .g-md-1,
  .gy-md-1 {
    --bs-gutter-y: 0.25rem;
  }

  .g-md-2,
  .gx-md-2 {
    --bs-gutter-x: 0.5rem;
  }

  .g-md-2,
  .gy-md-2 {
    --bs-gutter-y: 0.5rem;
  }

  .g-md-3,
  .gx-md-3 {
    --bs-gutter-x: 1rem;
  }

  .g-md-3,
  .gy-md-3 {
    --bs-gutter-y: 1rem;
  }

  .g-md-4,
  .gx-md-4 {
    --bs-gutter-x: 1.5rem;
  }

  .g-md-4,
  .gy-md-4 {
    --bs-gutter-y: 1.5rem;
  }

  .g-md-5,
  .gx-md-5 {
    --bs-gutter-x: 3rem;
  }

  .g-md-5,
  .gy-md-5 {
    --bs-gutter-y: 3rem;
  }
}

@media (min-width: 992px) {

  .g-lg-0,
  .gx-lg-0 {
    --bs-gutter-x: 0;
  }

  .g-lg-0,
  .gy-lg-0 {
    --bs-gutter-y: 0;
  }

  .g-lg-1,
  .gx-lg-1 {
    --bs-gutter-x: 0.25rem;
  }

  .g-lg-1,
  .gy-lg-1 {
    --bs-gutter-y: 0.25rem;
  }

  .g-lg-2,
  .gx-lg-2 {
    --bs-gutter-x: 0.5rem;
  }

  .g-lg-2,
  .gy-lg-2 {
    --bs-gutter-y: 0.5rem;
  }

  .g-lg-3,
  .gx-lg-3 {
    --bs-gutter-x: 1rem;
  }

  .g-lg-3,
  .gy-lg-3 {
    --bs-gutter-y: 1rem;
  }

  .g-lg-4,
  .gx-lg-4 {
    --bs-gutter-x: 1.5rem;
  }

  .g-lg-4,
  .gy-lg-4 {
    --bs-gutter-y: 1.5rem;
  }

  .g-lg-5,
  .gx-lg-5 {
    --bs-gutter-x: 3rem;
  }

  .g-lg-5,
  .gy-lg-5 {
    --bs-gutter-y: 3rem;
  }
}

@media (min-width: 1200px) {

  .g-xl-0,
  .gx-xl-0 {
    --bs-gutter-x: 0;
  }

  .g-xl-0,
  .gy-xl-0 {
    --bs-gutter-y: 0;
  }

  .g-xl-1,
  .gx-xl-1 {
    --bs-gutter-x: 0.25rem;
  }

  .g-xl-1,
  .gy-xl-1 {
    --bs-gutter-y: 0.25rem;
  }

  .g-xl-2,
  .gx-xl-2 {
    --bs-gutter-x: 0.5rem;
  }

  .g-xl-2,
  .gy-xl-2 {
    --bs-gutter-y: 0.5rem;
  }

  .g-xl-3,
  .gx-xl-3 {
    --bs-gutter-x: 1rem;
  }

  .g-xl-3,
  .gy-xl-3 {
    --bs-gutter-y: 1rem;
  }

  .g-xl-4,
  .gx-xl-4 {
    --bs-gutter-x: 1.5rem;
  }

  .g-xl-4,
  .gy-xl-4 {
    --bs-gutter-y: 1.5rem;
  }

  .g-xl-5,
  .gx-xl-5 {
    --bs-gutter-x: 3rem;
  }

  .g-xl-5,
  .gy-xl-5 {
    --bs-gutter-y: 3rem;
  }
}

@media (min-width: 1400px) {

  .g-xxl-0,
  .gx-xxl-0 {
    --bs-gutter-x: 0;
  }

  .g-xxl-0,
  .gy-xxl-0 {
    --bs-gutter-y: 0;
  }

  .g-xxl-1,
  .gx-xxl-1 {
    --bs-gutter-x: 0.25rem;
  }

  .g-xxl-1,
  .gy-xxl-1 {
    --bs-gutter-y: 0.25rem;
  }

  .g-xxl-2,
  .gx-xxl-2 {
    --bs-gutter-x: 0.5rem;
  }

  .g-xxl-2,
  .gy-xxl-2 {
    --bs-gutter-y: 0.5rem;
  }

  .g-xxl-3,
  .gx-xxl-3 {
    --bs-gutter-x: 1rem;
  }

  .g-xxl-3,
  .gy-xxl-3 {
    --bs-gutter-y: 1rem;
  }

  .g-xxl-4,
  .gx-xxl-4 {
    --bs-gutter-x: 1.5rem;
  }

  .g-xxl-4,
  .gy-xxl-4 {
    --bs-gutter-y: 1.5rem;
  }

  .g-xxl-5,
  .gx-xxl-5 {
    --bs-gutter-x: 3rem;
  }

  .g-xxl-5,
  .gy-xxl-5 {
    --bs-gutter-y: 3rem;
  }
}

.fs-1 {
  font-size: calc(1.375rem + 1.5vw) !important;
}

.fs-2 {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.fs-3 {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.fs-4 {
  font-size: calc(1.275rem + 0.3vw) !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

.fs-6 {
  font-size: 1rem !important;
}

/* bootstrap 5 end */



/* loading start */

/* .loading-layout {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999;
  top: 0;
  left: 0;
  background: var(--light);
} */

.loading-layout {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999;
  top: 0;
  left: 0;
  background: var(--light);
}

.centerMe {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  height: 25px;
  width: 10px;
  border-radius: 10%;
  background: var(--light-orange);
  border-top-color: var(--light-pink);
  -webkit-animation: fade2 1s infinite;
  animation: fade2 1s infinite;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.loading:after,
.loading:before {
  content: '';
  position: absolute;
  display: block;
  height: 20px;
  width: 10px;
  background: var(--light-orange);
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  left: -15px;
  border-radius: 10%;
  -webkit-animation: fade1 1s infinite;
  animation: fade1 1s infinite;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.loading:before {
  left: 15px;
  -webkit-animation: fade3 1s infinite;
  animation: fade3 1s infinite;
}

@-webkit-keyframes fade1 {
  0% {
    background: var(--light-pink);
  }
}

@keyframes fade1 {
  0% {
    background: var(--light-pink);
  }
}

@-webkit-keyframes fade2 {
  33% {
    background: var(--light-pink);
  }
}

@keyframes fade2 {
  33% {
    background: var(--light-pink);
  }
}

@-webkit-keyframes fade3 {
  66% {
    background: var(--light-pink);
  }
}

@keyframes fade3 {
  66% {
    background: var(--light-pink);
  }
}

/* loading end */



/* 漢堡選單 start */

.burger-menu span {
  display: block;
  position: relative;
  width: 17px;
  height: 1px;
  background: var(--dark);
  visibility: inherit;
  opacity: 1;
  transform: matrix(1, 0, 0, 1, 0, 0);
  transition: transform .3s ease-in-out, top .5s ease, -webkit-transform .3s ease-in-out;
}

.burger-menu span:nth-child(2),
.burger-menu span:nth-child(3) {
  margin-top: 5px;
}

.active .burger-menu span:nth-child(1) {
  -webkit-transform-origin: top left;
  transform-origin: top left;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.active .burger-menu span:nth-child(2) {
  visibility: hidden;
  opacity: 0;
}

.active .burger-menu span:nth-child(3) {
  -webkit-transform-origin: bottom left;
  transform-origin: bottom left;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* 漢堡選單 end */


/* article start */

.article-content {
  font-size: 1rem;
}

article.article-content a {
  color: var(--light-pink) !important;
  text-decoration: none;
}

article.article-content img {
  max-width: 100% !important;
}

.article-content a {
  color: var(--light-pink);
  text-decoration: none;
}

.article-content a:hover,
.article-content a:active,
.article-content a:focus {
  color: var(--light-orange);
}

.article-content h1 {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.article-content h2 {
  font-size: calc(1.275rem + 0.3vw) !important;
}

.article-content h3 {
  font-size: 1.25rem !important;
}

.article-content hr {
  margin-top: 5 0px;
  margin-bottom: 50px;
  border-color: var(--light-orange);
}

.article-content pre {
  margin-top: 35px;
  margin-bottom: 35px;
  color: var(--light-orange);
}

.article-content blockquote {
  background-color: #fff;
  color: #020d0d !important;
  border-left: 0.7rem solid var(--light-orange);
  margin: 1.5em 0.7rem;
  padding: 0.5em 0.7rem;
}

/* article end */


/* 等比區塊設定 Start */

.aspect-ratio {
  position: relative;
  width: 100%;
  --w: 3;
  --h: 2;
}

.aspect-ratio.header {
  --w: 9.6;
  --h: 3;
}

.aspect-ratio.hot {
  --w: 5;
  --h: 3;
}

.aspect-ratio.info {
  --w: 9;
  --h: 5;
}

@media (max-width: 576px) {
  .aspect-ratio.header {
    --w: 13;
    --h: 5;
  }
}

.aspect-ratio:before {
  content: '';
  width: 100%;
  padding-top: calc(var(--h) * 100% / var(--w));
  display: block;
}

.header-content .aspect-ratio .content {
  filter: brightness(100%);
  -webkit-transition: all .5s;
  transition: all .5s;
}

.header-content .aspect-ratio .content:hover {
  filter: brightness(75%);
}

.aspect-ratio .content {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* filter: brightness(60%); */
}

.aspect-ratio img {
  width: 100%;
  height: 100%;
}

/* 等比區塊設定 End */


/* hashtags Start */
a.article-hashtags:before {
  content: '# ';
}

a.article-hashtags {
  color: var(--purple);
  border: var(--purple) 1px solid;
  margin: 5px;
  padding: 0.5rem;
  border-radius: 1rem !important;
  display: inline-block;
  cursor: pointer;

}

a.article-hashtags:hover,
a.article-hashtags:active {
  border: var(--light-orange);
  background: var(--light-orange);
  text-decoration: none;
  color: var(--light);
}

/* hashtags End */


/* pagination start */
.pagination {
  text-transform: capitalize;
  position: relative;
  display: block !important;
}

.pagination .previous {
  padding: 0.4rem 0.8rem;
  color: var(--light-orange);
  border: var(--light-orange) 1px solid;
  transform: 0.1s;
}

.pagination .next {
  padding: 0.4rem 0.8rem;
  color: var(--light-orange);
  border: var(--light-orange) 1px solid;
  transform: 0.1s;
}

.pagination .page {
  padding: 0.4rem 0.7rem;
  color: var(--light-orange);
  transform: 0.1s;
}

.pagination .page.active {
  background: var(--light-pink);
  color: var(--light);
}

.pagination a:hover,
.pagination a:active,
.pagination a:focus {
  background: var(--light-pink);
  color: var(--light);
  text-decoration: none;
  transform: scale(1.5);
}

/* pagination end */


/* hot start */
.hot-section {
  position: relative;
}

.hot-info {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  background-image: linear-gradient(to bottom, transparent 0%, #000000 35%);
}

/* hot end */


.my-5v {
  margin-top: 5vh;
  margin-bottom: 5vh;
}

.mt-8v {
  margin-top: 8vh;
}

.mt-10v {
  margin-top: 10vh;
}

.mb-10v {
  margin-bottom: 10vh;
}

.border-bottom {
  border-bottom: 1px dashed #C6C6C6 !important;
}

.badge-light {
  background-color: #F0F0F0 !important;
  border: 1px solid #DBDBDB !important;
}

.section-title {
  font-weight: 900 !important;
  text-transform: uppercase;
  font-style: italic;
  color: var(--secondary);
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.section-title:before {
  background-color: var(--light-pink);
  background: linear-gradient(to bottom, var(--light-pink), var(--light-orange), var(--purple));
  border-radius: 1rem;
  content: '';
  display: block;
  position: absolute;
  height: 29px;
  width: 5px;
  transform: skew(-15deg) translate(-12px, 0px);
}

.ellipsis1 {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  /*行數*/
  -webkit-box-orient: vertical;
  white-space: normal;
  /* word-wrap: break-word;
  word-break: break-all; */
  hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
}

.ellipsis2 {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  /*行數*/
  -webkit-box-orient: vertical;
  white-space: normal;
  /* word-wrap: break-word;
  word-break: break-all; */
  hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
}

.ellipsis3 {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  /*行數*/
  -webkit-box-orient: vertical;
  white-space: normal;
  /* word-wrap: break-word;
  word-break: break-all; */
  hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
}

.ellipsis8 {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 8;
  /*行數*/
  -webkit-box-orient: vertical;
  white-space: normal;
  /* word-wrap: break-word;
  word-break: break-all; */
  hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
}

.search-field {
    box-shadow: inset -2px -2px 4px rgba(255,255,255,.2), inset 2px 2px 12px rgba(0,0,0,.2);
    border-radius: 1rem;
}

.btn-search {
  background-color: var(--light-pink);
  color: var(--light) !important;
  border-radius: 0 1rem 1rem 0 !important;
  padding: 0 0.5rem;
  font-weight: 700;
}

.btn-search:hover {
  background-color: var(--light-orange);
}

marquee {
  background: var(--light-pink);
  color: var(--light);
  padding: 0.3rem 1rem;
  border-radius: 1rem;
}

.marquee-title {
  background-color: var(--light);
  color: var(--light-pink);
  border-radius: 1rem;
  font-size: 75%;
  padding: 0.25rem 0.4rem;
  font-weight: 700;
}

marquee a {
  color: var(--light) !important;
}

marquee:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 15px;
    height: 80%;
    border-bottom-left-radius: 1rem;
    border-top-left-radius: 1rem;
    background-color: var(--light-pink);
  }