@import url("vendor/reset.css");
@import url("https://fonts.googleapis.com/css2?family=Alatsi&family=Roboto&family=DM+Mono:wght@400;500&family=Inter&family=Noto+Sans+TC:wght@200;300;400;500;600;700;900&display=swap");

body,
html {
  font-family: "Noto Sans TC", serif;
  -webkit-tap-highlight-color: transparent;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-text-size-adjust: none;
  color: #686868;
  background-color: #F1E3CB;
}

a {
  transition: 0.5s ease;
  text-decoration: none;
}

button {
  transition: 0.5s ease;
}

textarea,
select,
input,
button {
  outline: none;
}

:focus {
  outline-color: transparent;
  outline-style: none;
}

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

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

h3,
p {
  text-align: justify;
  text-justify: inter-word;
}

.clear-fix {
  clear: both;
}

input::-moz-placeholder {
  color: #BABABA;
  opacity: 1;
  /* Firefox */
}

input::placeholder {
  color: #BABABA;
  opacity: 1;
  /* Firefox */
}

textarea::-moz-placeholder {
  color: #BABABA;
  opacity: 1;
  /* Firefox */
}

textarea::placeholder {
  color: #BABABA;
  opacity: 1;
  /* Firefox */
}

textarea::-ms-input-placeholder {
  /* Edge 12-18 */
  color: #BABABA;
}

header {
  position: relative;
}

header .header-div {
  padding: 30px 0;
}

header .header-div .outer-div {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

header .header-div .outer-div .brand {
  display: flex;
  align-items: center;
  height: 50px;
  flex: 0 0 auto;
}

header .header-div .outer-div .brand a {
  display: flex;
  align-items: center;
  height: 100%;
}

header .header-div .outer-div .brand a img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

header .header-div .outer-div .brand a img:nth-child(1) {
  height: 50px;
  margin-right: 10px;
}

header .header-div .outer-div .brand a img:nth-child(2) {
  height: 25px;
  margin-left: 0;
}

header .header-div .outer-div .links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
}

header .header-div .outer-div .links:last-child {
  justify-content: flex-end;
}

header .header-div .outer-div .links .search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 20px;
  width: 300px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header .header-div .outer-div .links .search-container input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 15px;
  border: 2px solid #E06609;
  border-radius: 15px;
  font-size: 16px;
  background-color: #F8E0BC;
  color: #152F2B;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform-origin: right center;
}

header .header-div .outer-div .links .search-container input:focus {
  outline: none;
  border-color: #E06609;
  box-shadow: 0 0 15px rgba(224, 102, 9, 0.15);
  background-color: #FFFFFF;
  width: 100%;
  transform: scale(1.02);
}

header .header-div .outer-div .links .search-container .search-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

header .header-div .outer-div .links .search-container .search-button i {
  font-size: 18px;
  color: #E06609;
}

@media all and (max-width: 992px) {
  header .header-div .outer-div .links .search-container {
    width: 250px;
  }
}

@media all and (max-width: 768px) {
  header .header-div .outer-div .links .search-container {
    width: 200px;
  }
}

@media all and (max-width: 576px) {
  header .header-div .outer-div .links .search-container {
    width: 40px;
  }

  header .header-div .outer-div .links .search-container input {
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
  }

  header .header-div .outer-div .links .search-container.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 80px;
    background-color: #F1E3CB;
    z-index: 1000;
    padding: 0 15px;
    display: flex;
    align-items: center;
    animation: expandSearch 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  header .header-div .outer-div .links .search-container.expanded input {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    background-color: #ffffff;
    animation: slideInput 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
}

@keyframes expandSearch {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes slideInput {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 搜尋建議框樣式 */
.search-suggestions {
  position: absolute;
  top: calc(100% -10px);
  right: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: none;
  padding: 15px;
}

/* 修改手機版樣式 */
@media all and (max-width: 576px) {

  /* 預設情況下，搜尋容器的寬度很小，內部輸入框隱藏 */
  header .header-div .outer-div .links .search-container {
    width: 40px;
  }

  header .header-div .outer-div .links .search-container input {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* 當搜尋容器加上 expanded 時，寬度擴展至 100% 且內部輸入框顯示 */
  header .header-div .outer-div .links .search-container.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* 如果需要高度依 header 高度設定 */
    height: 80px;
    background-color: #F1E3CB;
    /* 可根據設計調整 */
    z-index: 1000;
    padding: 0 15px;
    /* 根據需要調整內距 */
  }

  header .header-div .outer-div .links .search-container.expanded input {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background-color: #ffffff;
  }

  .search-suggestions {
    top: calc(100% - 10px) !important;
    width: auto;
    margin: 0 15px;
    right: 0;
  }
}

header .header-div .outer-div .links .user-icon,
header .header-div .outer-div .links .login {
  flex: 0 0 auto;
}

header .header-div .outer-div .links a {
  display: inline-block;
  font-family: "Alatsi", sans-serif;
  color: #152F2B;
  background-image: url(./../images/header_dot.svg);
  background-repeat: no-repeat;
  font-size: 24px;
  padding-left: 15px;
}

main {
  position: relative;
}

.block-contact {
  margin-top: 170px;
  padding-bottom: 40px;
}

.block-contact .outer-div {
  text-align: center;
}

.block-contact .outer-div .info {
  margin-top: 45px;
  padding-bottom: 25px;
  position: relative;
}

.block-contact .outer-div .info:before {
  content: "";
  position: absolute;
  left: calc(50% - 60px);
  bottom: 0;
  width: 120px;
  height: 2px;
  background-color: #fff;
}

.block-contact .outer-div .info p {
  text-align: center;
  color: #fff;
  font-size: 16px;
}

@media all and (max-width: 992px) {
  header .header-div {
    padding: 15px 0;
  }

  header .header-div .outer-div .brand {
    height: 50px;
  }

  header .header-div .outer-div .brand a img:nth-child(1) {
    height: 45px;
    margin-right: 8px;
  }

  header .header-div .outer-div .brand a img:nth-child(2) {
    height: 22px;
  }

  .body-detail header .header-div .outer-div .brand a img:nth-child(1) {
    height: 20px;
    margin-right: 0px;
  }
}

@media all and (max-width: 576px) {
  header .header-div {
    padding: 10px 0;
    padding-top: 20px;
  }

  header .header-div .outer-div {
    flex-direction: row;
    align-items: stretch;
    padding: 0 15px;
  }

  header .header-div .outer-div .brand {
    justify-content: center;
  }

  header .header-div .outer-div .links {
    width: 100%;
    gap: 10px;
  }

  header .header-div .outer-div .links .search-container {
    width: 100% !important;
  }

  header .header-div .outer-div .links .search-container input {
    height: 36px;
    font-size: 14px;
    padding: 0 35px 0 12px;
  }

  header .header-div .outer-div .links .search-container .search-button {
    right: 10px;
  }

  header .header-div .outer-div .links .search-container .search-button i {
    font-size: 16px;
  }

  .user-icon {
    width: 36px;
    height: 36px;
    margin: 5px 0;
  }

  .block-contact {
    margin-top: 50px;
    padding-bottom: 30px;
    text-align: center;
  }

  .block-contact .outer-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }

  .block-contact .outer-div .title {
    display: flex;
    justify-content: center;
  }

  .block-contact .outer-div .title img {
    margin: 0 auto;
  }

  .block-contact .outer-div .info {
    margin-top: 25px;
    padding: 0 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .block-contact .outer-div .info p {
    text-align: center;
    font-size: 14px;
    max-width: 90%;
    margin: 0 auto;
  }
}

@media all and (max-width: 375px) {
  header .header-div .outer-div .links .search-container {
    width: 30px !important;
  }
}

@media all and (max-width: 480px) {
  .block-contact .outer-div .title img {
    height: 35px;
  }

  .block-contact .outer-div .info {
    margin-top: 15px;
  }

  .block-contact .outer-div .info p {
    font-size: 13px;
    max-width: 95%;
  }
}

@media all and (max-width: 390px) {
  .block-contact {
    margin-top: 30px;
  }

  .block-contact .outer-div .info {
    margin-top: 20px;
  }

  .block-contact .outer-div .info p {
    font-size: 13px;
    max-width: 95%;
  }
}

.section-home-banner {
  margin-top: 40px;
}

.section-home-banner .outer-div {
  max-width: 1440px;
  margin: 0 auto;
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols .col01 {
  width: 1080px;
  margin-left: -1080px;
  margin-right: -100%;
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols .col01 .img {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  -webkit-border-top-left-radius: 50px;
  -webkit-border-bottom-left-radius: 50px;
  -moz-border-radius-topleft: 50px;
  -moz-border-radius-bottomleft: 50px;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols .col01 .img img {
  width: 100%;
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols .col02 {
  width: calc(100% - 1080px);
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols .col02 a {
  display: block;
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols .col02 a h1 {
  color: #152F2B;
  font-family: "Alatsi", sans-serif;
  font-size: 24px;
  background-image: url(./../images/home_news_arrow.svg);
  background-position: left bottom;
  background-repeat: no-repeat;
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols .col02 a p {
  color: #152F2B;
  font-family: "DM Mono", monospace;
  font-size: 16px;
  margin-top: 15px;
  line-height: 1.5;
  margin-right: 20px;
}

.section-home-banner .outer-div .owl-home-banner .item .two-cols .col02 a:hover {
  opacity: 0.3;
}

.section-home-banner .outer-div .owl-home-banner .owl-dots {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.section-home-banner .outer-div .owl-home-banner .owl-dots .owl-dot {
  margin: 0 3px;
}

.section-home-banner .outer-div .owl-home-banner .owl-dots .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 100px;
}

.section-home-banner .outer-div .owl-home-banner .owl-dots .owl-dot.active span {
  background-color: rgb(255, 255, 255);
}

.section-home-search-news {
  background-image: url(./../images/home_deco.svg);
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
  margin-top: 80px;

}

.section-home-search-news .block-01 .outer-div {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}


.section-home-search-news .block-01 .two-cols {
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1024px) {
  .section-home-search-news .block-01 .two-cols {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .section-home-search-news .block-01 .two-cols {
    width: 95%;
  }
}

.section-home-search-news .block-01 .two-cols .col01 {
  width: 300px;
  padding-right: 40px;
}

.section-home-search-news .block-01 .two-cols .col01 img {
  max-width: 100%;
}

.section-home-search-news .block-01 .two-cols .col02 {
  width: calc(100% - 300px);
}

@media (max-width: 768px) {
  .section-home-search-news .block-01 .two-cols .col02 {
    width: 100%;
  }

  .section-home-search-news .block-01 .two-cols .col01 {
    display: none;
  }
}

@media (max-width: 576px) {
  .section-home-search-news .block-01 .outer-div {
    padding: 0 10px;
  }
}

.section-home-search-news .block-01 .two-cols .col02 .item {
  color: #4e5646;
  position: relative;
}

.section-home-search-news .block-01 .two-cols .col02 .item .action a:hover {
  opacity: 0.5;
}

.section-home-search-news .block-01 .two-cols .col02 .item:nth-child(1) {
  padding-bottom: 50px;
}

.section-home-search-news .block-01 .two-cols .col02 .item:nth-child(1) .action {
  margin-bottom: 33px;
}

.section-home-search-news .block-01 .two-cols .col02 .item:nth-child(1) .action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #954527;
  color: #fff;
  border-radius: 10px;
  font-family: "DM Mono", monospace;
  font-size: 16px;
  min-width: 156px;
  min-height: 56px;
  position: relative;
}

.section-home-search-news .block-01 .two-cols .col02 .item:nth-child(1) .action a:before {
  content: url(./../images/home_arrow_click.svg);
  position: absolute;
  left: -45px;
  bottom: -45px;
}

.section-home-search-news .block-01 .two-cols:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 2px;
  /* background-color: #152F2B; */
}

.section-home-search-news .block-01 .two-cols .col02 .item:nth-child(2) .action {
  margin-top: 20px;
}

.section-home-search-news .block-01 .two-cols .col02 .item:nth-child(2) .action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #E06609;
  color: #fff;
  border-radius: 10px;
  font-family: "DM Mono", monospace;
  font-size: 16px;
  min-width: 270px;
  min-height: 50px;
}

.section-home-search-news .block-01 .two-cols .col02 .item .info h3 {
  font-size: 32px;
  font-family: "DM Mono", monospace;
  font-weight: 500;
}

.section-home-search-news .block-01 .two-cols .col02 .item .info p {
  font-size: 20px;
  font-family: "DM Mono", monospace;
}

.section-home-search-news .block-02 {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}

.section-home-search-news .block-02 .outer-div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-home-search-news .block-02 h2 {
  font-size: 32px;
  color: #152F2B;
  text-align: center;
  font-weight: 700;
  padding-bottom: 25px;
  margin-bottom: 40px;
  position: relative;
}

.section-home-search-news .block-02 h2:before {
  content: "";
  position: absolute;
  left: calc(50% - 60px);
  bottom: 0;
  width: 120px;
  height: 2px;
  background-color: #152F2B;
}

.search-result-lists {
  margin-left: -12px;
  margin-right: -12px;
  display: flex;
  flex-wrap: wrap;
}

.search-result-lists .item {
  width: calc(25% - 24px);
  margin: 12px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(21, 47, 43, 0.08);
  transition: all 0.3s ease;
  height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-result-lists .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(21, 47, 43, 0.12);
}

.search-result-lists .item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.search-result-lists .item .box {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.search-result-lists .item .box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.search-result-lists .item:hover .box img {
  transform: scale(1.05);
}

.search-result-lists .item .content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-result-lists .item .content .title-wrapper {
  margin-bottom: 10px;
}

.search-result-lists .item .content .title {
  font-size: 18px;
  font-weight: 600;
  color: #152F2B;
  line-height: 1.4;
  margin: 0;
}

.search-result-lists .item .content .preview {
  font-size: 14px;
  color: #686868;
  line-height: 1.5;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-lists .item .content .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.search-result-lists .item .content .tags .tag {
  background-color: #F1E3CB;
  color: #152F2B;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.search-result-lists .item .content .tags .tag:hover {
  background-color: #954527;
  color: #fff;
  transform: translateY(-2px);
}

.section-home-search-news .block-02 .more {
  text-align: center;
  margin-top: 40px;
}

.section-home-search-news .block-02 .more a {
  display: inline-block;
  padding: 18px 40;
  background: #E06609;
  color: #FFFFFF;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.section-home-search-news .block-02 .more a:hover {
  background: #954527;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 47, 43, 0.2);
}

@media all and (max-width: 1200px) {

  .search-result-lists .item,
  .block-article-list .outer-div .search-result-lists .item {
    width: calc(33.33% - 24px);
  }
}

@media all and (max-width: 992px) {

  .search-result-lists .item,
  .block-article-list .outer-div .search-result-lists .item {
    width: calc(50% - 24px);
  }
}

@media all and (max-width: 576px) {

  .search-result-lists,
  .block-article-list .outer-div .search-result-lists {
    margin-left: -10px;
    margin-right: -10px;
  }

  .search-result-lists .item,
  .block-article-list .outer-div .search-result-lists .item {
    width: calc(100% - 20px);
    margin: 10px;
    height: auto;
    min-height: 380px;
  }

  .section-home-search-news .block-02 h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .search-result-lists .item .content {
    padding: 15px;
  }

  .search-result-lists .item .content .title {
    font-size: 16px;
  }

  .section-home-search-news .block-02 .more a {
    padding: 10px 25px;
    font-size: 14px;
  }
}

.owl-welcome-banner {
  overflow: hidden;
}

.owl-welcome-banner .item {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  border-radius: 50px;
}

.owl-welcome-banner .item .info {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.owl-welcome-banner .item .info img {
  height: 60px;
  margin-bottom: 60px;
}

.owl-welcome-banner .owl-dots {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.owl-welcome-banner .owl-dots .owl-dot {
  margin: 0 3px;
}

.owl-welcome-banner .owl-dots .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 100px;
}

.owl-welcome-banner .owl-dots .owl-dot.active span {
  background-color: rgb(255, 255, 255);
}

.body-brown {
  background-color: #954527;
}

/* 為 login 頁面的 brand 添加特定樣式 */
.body-brown header .header-div .outer-div .brand {
  height: 50px;
}

.body-brown header .header-div .outer-div .brand a img:nth-child(1) {
  height: 50px;
  margin-right: 10px;
}

.body-brown header .header-div .outer-div .brand a img:nth-child(2) {
  height: 25px;
  filter: brightness(0) invert(1);
  /* 將 logo 文字轉為白色 */
  opacity: 0.9;
}

/* 響應式調整 */
@media all and (max-width: 992px) {
  .body-brown header .header-div .outer-div .brand {
    height: 45px;
  }

  .body-brown header .header-div .outer-div .brand a img:nth-child(1) {
    height: 45px;
  }

  .body-brown header .header-div .outer-div .brand a img:nth-child(2) {
    height: 22px;
  }
}

@media all and (max-width: 576px) {
  .body-brown header .header-div .outer-div .brand {
    height: 40px;
  }

  .body-brown header .header-div .outer-div .brand a img:nth-child(1) {
    height: 40px;
  }

  .body-brown header .header-div .outer-div .brand a img:nth-child(2) {
    height: 20px;
  }
}

@media all and (max-width: 400px) {
  .body-brown header .header-div .outer-div .brand {
    height: 35px;
  }

  .body-brown header .header-div .outer-div .brand a img:nth-child(1) {
    height: 35px;
  }

  .body-brown header .header-div .outer-div .brand a img:nth-child(2) {
    height: 18px;
  }

  header .header-div .outer-div .brand a img:nth-child(1) {
    height: 35px;
  }

  header .header-div .outer-div .brand a img:nth-child(2) {
    height: 18px;
  }

  header .header-div .outer-div .links a {
    font-size: 20px;
    background-image: url(./../images/header_dot.svg);
    background-size: 25px 25px;
    padding-left: 10px;
  }

  .user-icon {
    width: 30px !important;
    height: 30px !important;
  }

}

.section-adult-beauty {
  background-image: url(./../images/adult_beauty_deco.svg);
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.section-adult-beauty .block-adult-beauty .outer-div {
  max-width: 1280px;
  padding: 0 20px;
  margin: 0 auto;
}

.section-adult-beauty .block-adult-beauty .outer-div .block-02 {
  margin-top: 60px;
}

.section-adult-beauty .block-adult-beauty .outer-div .block-02 h2 {
  font-size: 32px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding-bottom: 25px;
  margin-bottom: 40px;
  position: relative;
}

.section-adult-beauty .block-adult-beauty .outer-div .block-02 h2:before {
  content: "";
  position: absolute;
  left: calc(50% - 60px);
  bottom: 0;
  width: 120px;
  height: 2px;
  background-color: #fff;
}

.section-adult-beauty .block-adult-beauty .outer-div .block-02 .link-lists {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 130px;
}

.section-adult-beauty .block-adult-beauty .outer-div .block-02 .link-lists .item {
  width: 50%;
}

.section-adult-beauty .block-adult-beauty .outer-div .block-02 .link-lists .item h3 {
  display: none;
}

.section-adult-beauty .block-adult-beauty .outer-div .block-02 .link-lists .item a {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-adult-beauty .block-adult-beauty .outer-div .block-02 .link-lists .item a:hover {
  opacity: 0.5;
}

.section-login {
  background-image: url(./../images/login_deco.svg);
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
  padding-top: 100px;
  min-height: calc(100vh - 98.39px - 100px);
}

.section-login .block-login .outer-div {
  max-width: 326px;
  margin: 0 auto;
}

.section-login .block-login .outer-div h2 {
  font-size: 50px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.section-login .block-login .outer-div .form-div .item {
  margin: 20px 0;
}

.section-login .block-login .outer-div .form-div .item input {
  width: 100%;
  height: 50px;
  border: 1px solid #BABABA;
  border-radius: 5px;
  padding: 0 15px;
  font-size: 16px;
}

.section-login .block-login .outer-div .form-div .item.forgot a {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.section-login .block-login .outer-div .form-div .item.forgot a:hover {
  color: #0ACF83;
}

.section-login .block-login .outer-div .form-div .item.action button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 5px;
  background-color: #FF6B00;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.section-login .block-login .outer-div .form-div .item.action button:hover {
  background-color: #FF8533;
}

.section-login .block-login .outer-div .form-div .item.remark {
  text-align: center;
  font-size: 14px;
  color: #fff;
}

.section-login .block-login .outer-div .form-div .item.remark a {
  color: #FF6B00;
}

.section-login .block-login .outer-div .form-div .item.remark a:hover {
  color: #FF8533;
}

.section-article-list {
  background-image: url(./../images/article_deco.svg);
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.block-article-list .outer-div {
  max-width: 1280px;
  padding: 0 20px;
  margin: 0 auto;
}

.block-article-list .outer-div .block-02 {
  margin-top: 60px;
}

.block-article-list .outer-div .block-02 h2 {
  font-size: 32px;
  color: #E06609;
  text-align: center;
  font-weight: 700;
  padding-bottom: 25px;
  font-family: "Noto Sans TC", serif;
  position: relative;
}

.block-article-list .outer-div .block-02 h2:before {
  content: "";
  position: absolute;
  left: calc(50% - 60px);
  bottom: 0;
  width: 120px;
  height: 2px;
  background-color: #E06609;
}

.block-article-list .outer-div .search-div {
  max-width: 737px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.block-article-list .outer-div .search-div input {
  width: 526px;
  border: 2px solid #E06609;
  font-size: 16px;
  border-radius: 15px;
  min-height: 54px;
  padding: 0 20px;
  background-color: #F8E0BC;
  color: #152F2B;
  transition: all 0.3s ease;
}

.block-article-list .outer-div .search-div input:focus {
  outline: none;
  border-color: #E06609;
  box-shadow: 0 0 10px rgba(224, 102, 9, 0.2);
  background-color: #FFFFFF;
}

.block-article-list .outer-div .search-div button {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 15px;
  min-height: 54px;
  background-color: #954527;
  min-width: 154px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.block-article-list .outer-div .search-div button:hover {
  background-color: #E06609;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 102, 9, 0.2);
}

.block-article-list .outer-div .search-div button i {
  font-size: 18px;
}

.block-article-list .outer-div .search-result-lists {
  margin-left: -12px;
  margin-right: -12px;
  display: flex;
  flex-wrap: wrap;
}

.search-result-lists .item {
  width: calc(25% - 24px);
  margin: 12px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(21, 47, 43, 0.08);
  transition: all 0.3s ease;
  height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.block-article-list .outer-div .search-result-lists .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(21, 47, 43, 0.12);
}

.block-article-list .outer-div .search-result-lists .item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.block-article-list .outer-div .search-result-lists .item .box {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-bottom: 0;
}

.block-article-list .outer-div .search-result-lists .item .box .img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.3s ease;
}

.block-article-list .outer-div .search-result-lists .item:hover .box .img {
  transform: scale(1.05);
}

.block-article-list .outer-div .search-result-lists .item .content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* gap: 15px; */
}

.block-article-list .outer-div .search-result-lists .item .content .title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 5px;
}

.block-article-list .outer-div .search-result-lists .item .content .title-wrapper .title {
  font-size: 18px;
  font-weight: 600;
  color: #152F2B;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  /* 新增以下屬性 */
  text-align: left;
  white-space: normal;
  word-spacing: normal;
  text-justify: none;
}

.block-article-list .outer-div .search-result-lists .item .content .article-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
}

.block-article-list .outer-div .search-result-lists .item .content .article-actions button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.block-article-list .outer-div .search-result-lists .item .content .article-actions .edit-btn {
  color: #E06609;
}

.block-article-list .outer-div .search-result-lists .item .content .article-actions .edit-btn:hover {
  background-color: rgba(149, 68, 39, 0.1);
}

.block-article-list .outer-div .search-result-lists .item .content .article-actions .delete-btn {
  color: #dc3545;
}

.block-article-list .outer-div .search-result-lists .item .content .article-actions .delete-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

.block-article-list .outer-div .search-result-lists .item .content .article-actions button i {
  font-size: 16px;
}

@media all and (max-width: 768px) {
  .block-article-list .outer-div .search-result-lists .item .content .title-wrapper .title {
    font-size: 16px;
  }

  .block-article-list .outer-div .search-result-lists .item .content .article-actions button {
    padding: 4px;
  }

  .block-article-list .outer-div .search-result-lists .item .content .article-actions button i {
    font-size: 14px;
  }
}

.section-article-detail {
  background-image: url(./../images/detail_deco.svg);
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.section-article-detail .block-article-detail .outer-div {
  max-width: 1280px;
  padding: 0 20px;
  margin: 0 auto;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 40px 0;
  gap: 30px;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col01 {
  width: 350px;
  flex-shrink: 0;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col01 img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col01 img:hover {
  transform: scale(1.02);
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 {
  flex: 1;
  min-width: 300px;
  padding: 20px 0;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 h5 {
  color: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  margin-bottom: 10px;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 h2 {
  font-size: 24px;
  color: #152F2B;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 p {
  color: rgba(0, 0, 0, 0.8);
  font-size: 16px;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  margin-bottom: 20px;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 .tags .tag {
  background-color: #E0D5C1;
  color: #152F2B;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 .tags .tag:hover {
  background-color: #152F2B;
  color: #E0D5C1;
  transform: translateY(-2px);
}

.section-article-detail .block-article-detail .outer-div .block-detail .action {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  padding: 0 20px;
}

.section-article-detail .block-article-detail .outer-div .block-detail .action a {
  padding: 12px 24px;
  border-radius: 10px;
  min-width: 134px;
  border: 2px solid #954527;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
  text-align: center;
  color: #954527;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: transparent;
}

.section-article-detail .block-article-detail .outer-div .block-detail .action a:hover {
  background-color: #954527;
  color: #F1E3CB;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(149, 69, 39, 0.2);
}

.section-article-detail .block-article-detail .outer-div .block-detail .action a i {
  margin: 0 8px;
  font-size: 18px;
}

@media all and (max-width: 1200px) {
  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item {
    margin: 30px 0;
    gap: 25px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col01 {
    width: 300px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 h2 {
    font-size: 22px;
  }
}

@media all and (max-width: 992px) {
  .section-article-detail .block-article-detail .outer-div {
    padding: 0 15px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item {
    margin: 25px 0;
    gap: 20px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col01 {
    width: 250px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 {
    padding: 15px 0;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 p {
    font-size: 15px;
  }
}

@media all and (max-width: 768px) {

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item,
  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item:nth-child(even) {
    flex-direction: column;
    margin: 30px 0;
    gap: 20px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col01 {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 {
    width: 100%;
    padding: 0;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .action {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin-top: 30px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .action a {
    width: 100%;
    padding: 15px 20px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 .tags {
    margin: 12px 0;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 .tags .tag {
    font-size: 13px;
    padding: 5px 10px;
  }
}

@media all and (max-width: 480px) {
  .section-article-detail .block-article-detail .outer-div {
    padding: 0 10px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item {
    margin: 20px 0;
    gap: 15px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 h5 {
    font-size: 13px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 p {
    font-size: 14px;
    line-height: 1.5;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .action {
    margin-top: 25px;
    gap: 12px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .action a {
    font-size: 14px;
    padding: 12px 16px;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 .tags {
    margin: 10px 0;
  }

  .section-article-detail .block-article-detail .outer-div .block-detail .list-items .item .col02 .tags .tag {
    font-size: 12px;
    padding: 4px 8px;
  }
}

.section-post {
  padding: 80px 0;
  background-color: #F1E3CB;
}

.section-post .block-post .outer-div {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-post .block-post .outer-div .box-div {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-post .block-post .outer-div .box-div h2 {
  color: #152F2B;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-post .block-post .outer-div .box-div h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #152F2B;
}

.section-post .block-post .outer-div .box-div .form-div .item {
  margin-bottom: 30px;
}

.section-post .block-post .outer-div .box-div .form-div .item .label h3 {
  color: #152F2B;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller {
  position: relative;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller input,
.section-post .block-post .outer-div .box-div .form-div .item .controller textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0D5C1;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
  box-sizing: border-box;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller input:focus,
.section-post .block-post .outer-div .box-div .form-div .item .controller textarea:focus {
  border-color: #152F2B;
  box-shadow: 0 0 0 3px rgba(21, 47, 43, 0.1);
}

.section-post .block-post .outer-div .box-div .form-div .item .controller textarea {
  min-height: 200px;
  resize: vertical;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .tags-input-container {
  width: 100%;
  border: 2px solid #E0D5C1;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  min-height: 50px;
  box-sizing: border-box;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .tags-input-container input {
  width: calc(100% - 16px);
  border: none;
  padding: 8px;
  margin: 0;
  font-size: 16px;
  background: transparent;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item {
  width: 100%;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box {
  width: 100%;
  box-sizing: border-box;
  border: 2px dashed #E0D5C1;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  background-color: rgba(241, 227, 203, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box:hover {
  border-color: #152F2B;
  background-color: rgba(21, 47, 43, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 47, 43, 0.1);
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box .img {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box .img img {
  max-width: 250px;
  height: auto;
  display: block;
  object-fit: cover;
}

@media all and (max-width: 480px) {
  .section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box .img img {
    max-width: 100%;
  }
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box .btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) url('../images/icon_close.svg') center/16px no-repeat;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box .btn-close:hover {
  background-color: #954527;
  background-image: url('../images/icon_close.svg');
  transform: rotate(90deg);
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box::before {
  content: '點擊或拖曳圖片至此處上傳';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #152F2B;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box.has-image::before {
  display: none;
}

@media all and (max-width: 640px) {
  .section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box {
    padding: 20px;
  }

  .section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box::before {
    font-size: 14px;
  }

  .section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box .img {
    max-width: 250px;
  }

  .section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box .btn-close {
    width: 28px;
    height: 28px;
    background-size: 14px;
  }
}

/* 添加文章操作按鈕的樣式 */
.article-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.article-actions button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.article-actions .edit-btn {
  color: #E06609;
}

.article-actions .edit-btn:hover {
  background-color: rgba(149, 68, 39, 0.1);
}

.article-actions .delete-btn {
  color: #dc3545;
}

.article-actions .delete-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

.article-actions button i {
  font-size: 16px;
}

@media all and (max-width: 768px) {
  .article-actions button {
    padding: 6px;
  }

  .article-actions button i {
    font-size: 14px;
  }
}

.block-article-list .outer-div .search-result-lists .item .content .article-actions button i {
  font-size: 16px;
}

.block-article-list .outer-div .search-result-lists .item .content .preview {
  font-size: 14px;
  color: #686868;
  line-height: 1.5;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-article-list .outer-div .search-result-lists .item .content .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: -2px;
  margin-top: 2px;
  margin-bottom: 6px;
  /* margin: 10px 0; */
}

.block-article-list .outer-div .search-result-lists .item .content .tags .tag {
  background-color: #F1E3CB;
  color: #152F2B;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.block-article-list .outer-div .search-result-lists .item .content .tags .tag:hover {
  background-color: #954527;
  color: #fff;
  transform: translateY(-2px);
}

.block-article-list .outer-div .search-result-lists .item .content .meta {
  margin-top: auto;
  color: #686868;
  font-size: 14px;
  padding-top: 15px;
}

@media all and (max-width: 768px) {
  .block-article-list .outer-div .search-result-lists .item .content .title-wrapper .title {
    font-size: 16px;
  }

  .block-article-list .outer-div .search-result-lists .item .content .article-actions button {
    padding: 4px;
  }

  .block-article-list .outer-div .search-result-lists .item .content .article-actions button i {
    font-size: 14px;
  }

  .block-article-list .outer-div .search-result-lists .item .content .tags .tag {
    font-size: 12px;
    padding: 3px 10px;
  }

  .block-article-list .outer-div .search-result-lists .item .content .preview {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}

/* 圖片網址輸入框樣式 */
.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box.url-input {
  border: none;
  padding: 20px;
  background-color: #f8f9fa;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller .upload-list .sub-item .box.url-input:hover {
  background-color: #f1f3f5;
  transform: none;
  box-shadow: none;
}

.url-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  border: 2px solid #E0D5C1;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.url-input-wrapper:focus-within {
  border-color: #152F2B;
  box-shadow: 0 0 0 3px rgba(21, 47, 43, 0.1);
}

.url-input-wrapper i {
  color: #954527;
  font-size: 16px;
}

.url-input-wrapper input {
  flex: 1;
  border: none !important;
  padding: 8px !important;
  font-size: 15px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.url-input-wrapper input:focus {
  border: none !important;
  box-shadow: none !important;
}

.url-input-wrapper .btn-submit {
  background-color: #954527;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.url-input-wrapper .btn-submit:hover {
  background-color: #E06609;
  transform: translateY(-1px);
}

.url-hint {
  display: block;
  margin-top: 8px;
  color: #686868;
  font-size: 13px;
  padding-left: 4px;
}

@media all and (max-width: 640px) {
  .url-input-wrapper {
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .url-input-wrapper input {
    width: 100%;
    padding: 6px !important;
  }

  .url-input-wrapper .btn-submit {
    width: 100%;
    padding: 10px;
  }

  .url-hint {
    font-size: 12px;
    text-align: center;
  }
}

/* 下拉式選單樣式 */
.section-post .block-post .outer-div .box-div .form-div .item .controller select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D4C5A9;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #152F2B;
  font-size: 14px;
  font-family: "Noto Sans TC", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152F2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller select:hover {
  border-color: #E06609;
  box-shadow: 0 2px 8px rgba(224, 102, 9, 0.1);
}

.section-post .block-post .outer-div .box-div .form-div .item .controller select:focus {
  border-color: #E06609;
  box-shadow: 0 2px 8px rgba(224, 102, 9, 0.2);
}

.section-post .block-post .outer-div .box-div .form-div .item .controller select option {
  padding: 12px;
  background-color: #FFFFFF;
  color: #152F2B;
}

.section-post .block-post .outer-div .box-div .form-div .item .controller select option:hover {
  background-color: #F1E3CB;
}

/*# sourceMappingURL=main.css.map */

/* 新增使用者圖片的樣式 */
.user-icon {
  width: 50px;
  /* 調整大小 */
  height: 50px;
  border-radius: 50%;
  /* 使圖片圓形 */
  cursor: pointer;
  /* 填滿 */
  object-fit: cover;
}

/* 響應式調整 */
@media (max-width: 600px) {
  .user-icon {
    width: 40px;
    height: 40px;
  }
}

/* 統一的導航欄搜尋框樣式 */
header .header-div .outer-div .links .search-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 20px;
  width: 350px;
}

header .header-div .outer-div .links .search-container input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 15px;
  border: 2px solid #E06609;
  border-radius: 15px;
  font-size: 16px;
  background-color: #F8E0BC;
  color: #152F2B;
  transition: all 0.3s ease;
}

header .header-div .outer-div .links .search-container input:focus {
  outline: none;
  border-color: #E06609;
  box-shadow: 0 0 10px rgba(224, 102, 9, 0.2);
  background-color: #FFFFFF;
}

header .header-div .outer-div .links .search-container .search-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

header .header-div .outer-div .links .search-container .search-button i {
  font-size: 18px;
  color: #E06609;
}

@media all and (max-width: 992px) {
  header .header-div .outer-div .links .search-container {
    width: 350px;
  }
}

@media all and (max-width: 768px) {
  header .header-div .outer-div .links .search-container {
    width: 250px;
  }
}

@media all and (max-width: 640px) {
  header .header-div .outer-div .links .search-container {
    width: 220px;
    margin-right: 10px;
  }

  header .header-div .outer-div .links .search-container input {
    height: 36px;
    font-size: 14px;
  }

  header .header-div .outer-div .links .search-container .search-button {
    padding: 6px;
  }

  header .header-div .outer-div .links .search-container .search-button i {
    font-size: 14px;
  }
}

/* 文章列表頁的"更多"連結樣式 */


.section-home-search-news .block-02 .more a {
  color: #f8e0bc;
  text-decoration: none;
  padding: 5px 15px;
  border: 1px solid #f8e0bc;
  border-radius: 20px;
  font-size: 20px;
  transition: all 0.3s ease;
}

.search-container {
  position: relative;
  margin-right: 20px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-container input {
  width: 300px;
  padding: 12px 40px 12px 15px;
  border: 2px solid #E06609;
  border-radius: 15px;
  font-size: 16px;
  background-color: #F8E0BC;
  color: #152F2B;
  transition: all 0.3s ease;
}

.search-container input:focus {
  width: 350px;
  border-color: #E06609;
  box-shadow: 0 0 10px rgba(224, 102, 9, 0.2);
  background-color: #FFFFFF;
}

.search-container .fa-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #E06609;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.3s ease;
}

.search-container .fa-search:hover {
  color: #954527;
  transform: translateY(-50%) scale(1.1);
}

/* 手機版樣式 */
@media all and (max-width: 576px) {
  header .header-div .outer-div .links .search-container .fa-search {
    position: absolute;
    left: 70%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #E06609;
    cursor: pointer;
    z-index: 2;
    background: none;
    border: none;
    padding: 8px;
  }

  header .header-div .outer-div .links .search-container.expanded .fa-search {
    right: 10px;
    left: auto;
  }
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px;
  z-index: 1000;
}

.popular-keywords h4 {
  color: #152F2B;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-list span {
  background: #F1E3CB;
  color: #152F2B;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.keyword-list span:hover {
  background: #4A8178;
  color: #fff;
}

.autocomplete-results {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.autocomplete-results .result-item {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.autocomplete-results .result-item:hover {
  background: #F1E3CB;
}

.autocomplete-results .result-item .title {
  font-size: 14px;
  color: #152F2B;
  font-weight: 600;
}

@media all and (max-width: 768px) {
  .search-container input {
    width: 200px;
  }

  .search-container input:focus {
    width: 250px;
  }
}

.owl-carousel {
  width: 88%;
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* 新的輪播樣式 */
.home-banner {
  width: 80%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 450px;
}

.banner-slide {
  min-width: 100%;
  position: relative;
  height: 100%;
}

/* 寬圖片布局 */
.banner-slide .wide-layout {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide .wide-layout .background-image {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.banner-slide .wide-layout .content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(149, 68, 39, 0.95) 70%, rgba(149, 68, 39, 0) 100%);
  padding: 40px 60px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px 0 0 20px;
}

.banner-slide .wide-layout .content-overlay h1 {
  color: #F1E3CB;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.banner-slide .wide-layout .content-overlay p {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

/* 長圖片布局 */
.banner-slide .tall-layout {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.banner-slide .tall-layout .content-side {
  width: 60%;
  padding: 40px 60px 40px 80px;
  background: linear-gradient(90deg, rgba(149, 68, 39, 0.95) 70%, rgba(149, 68, 39, 0.8) 100%);
  border-radius: 20px 0 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.banner-slide .tall-layout .image-side {
  width: 40%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0 20px 20px 0;
  position: relative;
}

.banner-slide .tall-layout .image-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(149, 68, 39, 0.3) 0%, rgba(149, 68, 39, 0) 100%);
  border-radius: 0 20px 20px 0;
}

.banner-slide .tall-layout .content-side h1 {
  color: #F1E3CB;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.banner-slide .tall-layout .content-side p {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

/* 響應式調整 */
@media (max-width: 1024px) {
  .home-banner {
    width: 90%;
  }

  .banner-slider {
    height: 400px;
  }

  .banner-slide .wide-layout .content-overlay,
  .banner-slide .tall-layout .content-side {
    padding: 30px;
  }

  .banner-slide .wide-layout .content-overlay h1,
  .banner-slide .tall-layout .content-side h1 {
    font-size: 28px;
  }

  .banner-slide .wide-layout .content-overlay p,
  .banner-slide .tall-layout .content-side p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .home-banner {
    width: 95%;
  }

  .banner-slider {
    height: 350px;
  }

  .banner-slide .wide-layout .content-overlay {
    width: 70%;
  }

  .banner-slide .tall-layout .content-side {
    width: 70%;
  }

  .banner-slide .tall-layout .image-side {
    width: 30%;
  }
}

@media (max-width: 480px) {
  .banner-slider {
    height: 300px;
  }

  .banner-slide .wide-layout .content-overlay h1,
  .banner-slide .tall-layout .content-side h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .banner-slide .wide-layout .content-overlay p,
  .banner-slide .tall-layout .content-side p {
    font-size: 14px;
  }

  .banner-slide .tall-layout {
    flex-direction: column;
  }

  .banner-slide .tall-layout .content-side {
    width: 100%;
    height: 60%;
    border-radius: 20px 20px 0 0;
  }

  .banner-slide .tall-layout .image-side {
    width: 100%;
    height: 40%;
    border-radius: 0 0 20px 20px;
  }

  .banner-slide .tall-layout .image-side::before {
    background: linear-gradient(180deg, rgba(149, 68, 39, 0.3) 0%, rgba(149, 68, 39, 0) 100%);
    border-radius: 0 0 20px 20px;
  }
}

.banner-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.banner-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
}

.banner-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(21, 47, 43, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.banner-nav:hover {
  background: rgba(21, 47, 43, 0.9);
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

.banner-nav i {
  color: #fff;
  font-size: 20px;
}

@media (max-width: 1024px) {
  .home-banner {
    width: 90%;
  }

  .banner-slider {
    height: 400px;
  }

  .banner-slide .wide-layout .content-overlay,
  .banner-slide .tall-layout .content-side {
    padding: 30px;
  }

  .banner-slide .wide-layout .content-overlay h1,
  .banner-slide .tall-layout .content-side h1 {
    font-size: 28px;
  }

  .banner-slide .wide-layout .content-overlay p,
  .banner-slide .tall-layout .content-side p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .home-banner {
    width: 95%;
  }

  .banner-slider {
    height: 350px;
  }

  .banner-slide .wide-layout .content-overlay {
    width: 70%;
  }

  .banner-slide .tall-layout .content-side {
    width: 70%;
  }

  .banner-slide .tall-layout .image-side {
    width: 30%;
  }
}

@media (max-width: 480px) {
  .banner-slider {
    height: 300px;
  }

  .banner-slide .wide-layout .content-overlay h1,
  .banner-slide .tall-layout .content-side h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .banner-slide .wide-layout .content-overlay p,
  .banner-slide .tall-layout .content-side p {
    font-size: 14px;
  }

  .banner-slide .tall-layout {
    flex-direction: column;
  }

  .banner-slide .tall-layout .content-side {
    width: 100%;
    height: 60%;
    border-radius: 20px 20px 0 0;
  }

  .banner-slide .tall-layout .image-side {
    width: 100%;
    height: 40%;
    border-radius: 0 0 20px 20px;
  }
}

.banner-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.banner-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
}

.banner-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(21, 47, 43, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.banner-nav:hover {
  background: rgba(21, 47, 43, 0.9);
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

.banner-nav i {
  color: #fff;
  font-size: 20px;
}

/* 管理頁面樣式 */
.body-admin {
  background-color: #F1E3CB;
}

.section-admin {
  background-image: url(./../images/admin_deco.svg);
  background-position: center bottom;
  background-size: 100% auto;
  background-repeat: no-repeat;
  padding: 60px 0;
  min-height: calc(100vh - 98.39px - 60px);
}

.section-admin .outer-div {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-admin .outer-div h2 {
  color: #152F2B;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.section-admin .outer-div h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background-color: #152F2B;
  transition: width 0.3s ease;
}

.section-admin .outer-div h2:hover:after {
  width: 180px;
}

.section-admin .admin-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-admin .admin-actions button {
  background-color: #954527;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  box-shadow: 0 4px 6px rgba(149, 69, 39, 0.2);
}

.section-admin .admin-actions button:hover {
  background-color: #E06609;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(224, 102, 9, 0.3);
}

.section-admin .admin-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(21, 47, 43, 0.1);
  min-height: 400px;
}

.section-admin .header-div .outer-div .links .logout {
  color: #954527;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 20px;
  border: 2px solid #954527;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.section-admin .header-div .outer-div .links .logout:hover {
  background-color: #954527;
  color: #fff;
}

@media all and (max-width: 768px) {
  .section-admin {
    padding: 40px 0;
  }

  .section-admin .outer-div h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .section-admin .admin-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .section-admin .admin-actions button {
    width: 100%;
    max-width: 300px;
  }

  .section-admin .admin-content {
    padding: 20px;
    min-height: 300px;
  }
}

@media all and (max-width: 480px) {
  .section-admin {
    padding: 30px 0;
  }

  .section-admin .outer-div {
    padding: 0 15px;
  }

  .section-admin .outer-div h2 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .section-admin .admin-content {
    padding: 15px;
    border-radius: 15px;
  }
}

/* 標籤輸入相關樣式 */
.tags-input-container {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.selected-tags .tag {
  background-color: #f0f0f0;
  border-radius: 16px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.selected-tags .tag .remove {
  cursor: pointer;
  color: #666;
  font-size: 18px;
}

.selected-tags .tag .remove:hover {
  color: #ff4444;
}

.tag-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.tag-suggestions .suggestion {
  padding: 8px 12px;
  cursor: pointer;
}

.tag-suggestions .suggestion:hover {
  background-color: #f5f5f5;
}

.popular-tags {
  margin-top: 16px;
}

.popular-tags h4 {
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-cloud .tag {
  background-color: #f0f0f0;
  border-radius: 16px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tags-cloud .tag:hover {
  background-color: #e0e0e0;
}

/* 確保所有容器使用 border-box */
* {
  box-sizing: border-box;
}

/* 修正標籤建議框的寬度 */
.tag-suggestions {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}

/* 修正熱門標籤區域的寬度 */
.popular-tags {
  width: 100%;
  margin-top: 16px;
  box-sizing: border-box;
}

.tags-cloud {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}

.section-post .block-post .outer-div .box-div .form-div .item.action {
  text-align: center;
  margin-top: 40px;
}

.section-post .block-post .outer-div .box-div .form-div .item.action button {
  background: #152F2B;
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 160px;
}

.section-post .block-post .outer-div .box-div .form-div .item.action button:hover {
  background: #1a3832;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 47, 43, 0.2);
}

@media all and (max-width: 640px) {
  .section-post .block-post .outer-div .box-div .form-div .item.action button {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
  }
}

/* Markdown 樣式 */
.markdown-body {
  color: #152F2B;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
  padding: 20px 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #152F2B;
}

.markdown-body h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #E0D5C1;
}

.markdown-body h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #E0D5C1;
}

.markdown-body h3 {
  font-size: 1.25em;
}

.markdown-body h4 {
  font-size: 1em;
}

.markdown-body p {
  margin-bottom: 16px;
  text-align: justify;
}

.markdown-body code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(149, 69, 39, 0.1);
  border-radius: 3px;
  font-family: "DM Mono", monospace;
}

.markdown-body pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f6f8fa;
  border-radius: 6px;
  margin-bottom: 16px;
}

.markdown-body pre code {
  padding: 0;
  margin: 0;
  font-size: 100%;
  background-color: transparent;
}

.markdown-body blockquote {
  padding: 0 1em;
  color: #686868;
  border-left: 0.25em solid #E0D5C1;
  margin-bottom: 16px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 2em;
  margin-bottom: 16px;
}

.markdown-body li {
  margin-bottom: 0.25em;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.markdown-body hr {
  height: 2px;
  padding: 0;
  margin: 24px 0;
  background-color: #E0D5C1;
  border: 0;
}

.markdown-body table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
}

.markdown-body table th,
.markdown-body table td {
  padding: 8px 16px;
  border: 1px solid #E0D5C1;
}

.markdown-body table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

.markdown-body strong {
  font-weight: 600;
}

.markdown-body ul {
  list-style-type: disc;
}

.markdown-body ol {
  list-style-type: decimal;
}

.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ul,
.markdown-body ol ol {
  margin: 0.5em 0;
}

.markdown-body li {
  margin: 0.5em 0;
  color: #152F2B;
}

/* 響應式調整 */
@media all and (max-width: 768px) {
  .markdown-body {
    font-size: 15px;
    padding: 15px 0;
  }

  .markdown-body h1 {
    font-size: 1.8em;
  }

  .markdown-body h2 {
    font-size: 1.4em;
  }

  .markdown-body h3 {
    font-size: 1.2em;
  }
}

@media all and (max-width: 480px) {
  .markdown-body {
    font-size: 14px;
    padding: 10px 0;
  }

  .markdown-body pre {
    padding: 12px;
  }

  .markdown-body img {
    margin: 16px 0;
  }
}

/* 新增: 搜尋框展開後填滿 header 整個寬度 */
header {
  position: relative;
}

header .nav-search-input.expanded {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  z-index: 999;
  transition: all 0.3s ease;
  padding: 0 15px;
  /* 根據設計需求調整左右間距 */
}

/* 可選：如果希望搜尋框的高度根據 header 調整，也可額外設定高度 */
header .nav-search-input.expanded {
  height: 50px;
  /* 或設定成 header 的高度 */
}

/* 手機版首頁 banner 樣式 */
@media all and (max-width: 576px) {
  .section-home-banner {
    margin-top: 20px;
    padding: 0 10px;
  }

  .home-banner {
    position: relative;
    overflow: hidden;
  }

  .banner-slider {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
  }

  .banner-slide {
    min-width: 100%;
  }
}

.password-hint {
  color: #ffffff;
  font-size: 0.8em;
  margin-top: 4px;
  display: block;
}

.verification-hint {
  color: #ffffff;
  font-size: 0.8em;
  /* text-align: center; */
  display: block;
  margin-top: 4px;
}

.cf-turnstile {
  width: 100% !important;
  margin: 10px 0;
}

.cf-turnstile div {
  width: 100% !important;
}

.cf-turnstile iframe {
  width: 100% !important;
  overflow: hidden;
}

/* 確保 turnstile 容器在表單中正確對齊 */
.form-div .item .cf-turnstile {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 添加載入動畫 */
.loading-spinner-bot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #954527;
}

.loading-spinner-bot::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid #F1E3CB;
  border-top-color: #954527;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

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