.price-tab-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0px;
  border-bottom: 1px solid #DEE2E6;
  margin-bottom: 24px;
  z-index: 1;
  white-space: nowrap;
}

.price-tab {
  list-style: none;
  padding: 4px 16px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #DEE2E6;
  margin-right: 4px;
  margin-bottom: 8px;
  font-size: 15px;
}

.price-tab:hover {
  background-color: #F9FAFB;
  border: 1px solid #ADB5BD;
  transition: background-color .15s ease-in;
}

.price-tab a {
  color: #6C757D;
  font-weight: 300;
}

.price-tab.active a {
  color: #fff;
  font-weight: 500;
}

.price-tab.active {
  background-color: #8EB554;
}

.price-title {
  font-size: 1.25em;
  color: #fff;
  background-color: #3F6830;
  text-align: center;
  padding: 12px 0;
  width: 100%;
}

.price-unit {
  font-size: 0.8em !important;
  color: #DEE2E6;
  margin-left: 0.5em;
}

.price-last-update {
  border-right: 1px solid #E0E0E0;
  border-left: 1px solid #E0E0E0;
}

.price-last-update p {
  padding: 4px 16px;
  font-size: 14px;
  text-align: right;
}

.table-container {
  width: 100%;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: auto;
}

.price-table tr {
  display: table-row;
}

.price-table thead th {
  background-color: #F8F9FA;
  font-weight: bold;
  white-space: normal;
  word-wrap: break-word;
}

.price-table th,
.price-table tbody td {
  border: 1px solid #ddd;
  padding: 8px 6px !important;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.icon-trend img {
  min-width: 24px;
}

.price-table tfoot td {
  padding: 4px 16px !important;
  background-color: #F8F9FA;
  border: 1px solid #ddd;
  border-top: 2px solid #ddd;
}

.price-table p {
  line-height: 1.5;
}

.price-notice,
.price-remark {
  padding: 4px 16px !important;
  margin-bottom: 0px;
  font-size: 14px;
  list-style: none;
  text-align: left !important;
  line-height: 1.75;
}

.price-notice {
  background-color: #FEF2F2;
  border: 1px solid #FEE2E2;
}

.price-notice a {
  color: #EF4444;
  text-decoration: underline;
}

.mobile-only {
  display: none;
}

.lcd-change {
  width: 16%;
}

.rise-trend {
  color: #198754;
}

.fall-trend {
  color: #DC3545;
}

.flat-trend {
  color: #6C757D;
}

/* 價格下方相關報告 */
.related-report-list {
  display: flex;
  justify-content: space-between;
  padding: 16px 12px;
  margin-bottom: 8px;
  background-color: #F9FAFB;
  border: 1px solid #E9ECEF;
}

.related-report-title {
  font-size: 1.25em;
}

.related-report-img {
  width: 33%;
}

.related-report-img img {
  width: 100%;
}

.related-report-card {
  width: 65%;
}

.report-card-content {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.report-card-content h4 {
  font-size: 1.125em;
  font-weight: bold;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.report-card-content p {
  font-size: 14px;
  margin-top: 0px;
  line-height: 1.8;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-more-btn {
  margin-top: 4px;
  font-size: 14px;
  padding: 4px 16px;
  background-color: #83B554;
  color: #fff;
  display: inline-block;
  text-align: right;
}

.report-more-btn:hover {
  background-color: #6C9B41;
}

.margin-b-25 {
  margin-bottom: 25px !important;
}

.margin-b-40 {
  margin-bottom: 40px !important;
}

/* 廣告版位 */
.price-advs-box {
  width: 100%;
  margin-bottom: 70px;
}

.price-advs-box img {
  width: 100%;
  display: block;
  margin-top: 16px;
  margin-right: auto;
  margin-left: auto;
}

@media screen and (min-width:576px) and (max-width: 768px) {
  .related-report-img {
    width: 45%;
  }

  .related-report-card {
    width: 50%;
  }
}

@media screen and (max-width:576px) {
  .related-report-list {
    flex-direction: column;
    padding: 16px 12px;
    margin-bottom: 8px;
    background-color: #F9FAFB;
  }

  .related-report-img,
  .related-report-card {
    width: 100%;
  }

  .related-report-img {
    margin-bottom: 8px;
  }

  .report-more-btn {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }
}

@media screen and (max-width: 768px) {
  .mobile-only {
    display: table-cell !important;
  }

  .desktop-only {
    display: none !important;
  }

  .price-table th,
  .price-table td {
    padding: 4px !important;
    font-size: 12px;
  }

  .lcd-change {
    width: 30%;
  }

  .lcd-num-s,
  .lcd-num-l {
    width: 12%;
  }
}

@media screen and (max-width:576px) {
  .limit-width {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  .dram-th-w {
    width: 15.75%;
  }
}

@media screen and (max-width:993px) {
  .price-advs-box.price-advs-right {
    display: none;
  }
}

@media screen and (max-width:768px) {
  .price-advs-box.price-advs-down {
    display: none;
  }
}
