/* 全站圖片：禁止拖曳 */
img {
  -webkit-user-drag: none; /* WebKit 專用 */
  user-select: none; /* 防止誤選取 */
  pointer-events: auto;
}

/* 全站文字：禁止選取 */
body {
  -webkit-user-select: none; /* Chrome / Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Edge (舊) */
  user-select: none; /* 標準寫法 */
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: clamp(400px, 55vw, 800px);
}

.hero__background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero__title-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
}

.hero__logo {
  width: clamp(70px, 9.7vw, 100px);
  height: clamp(70px, 9.7vw, 100px);
}

.hero__title,
.hero__subtitle {
  letter-spacing: 0.25em;
}

.hero__title {
  color: #fff;
}

.hero__subtitle {
  margin-top: 2rem;
  color: var(--color-accent);
}

.hero__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 5rem;
}

/* ---------- About Section ---------- */
.about__content {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: var(--font-size-lg);
}

.about__text-group {
  line-height: 2;
}

.about__text-group p:not(:last-child) {
  margin-bottom: 2rem;
}

.about__image {
  flex: 0 0 45%;
  border-radius: 20px;
  overflow: hidden;
}

.about__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- Services Section ---------- */
.h-services {
  border-radius: 50px;
  background-color: rgba(23, 37, 84, 1);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.h-services__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5rem;
  color: #fff;
  font-size: var(--font-size-lg);
  text-align: center;
}

.h-services__subtitle {
  margin: 1.25rem 0 2rem;
  font-weight: 700;
}

.h-services__description {
  margin-bottom: 2rem;
  line-height: 2;
}

.h-services__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0 auto;
  width: fit-content;
}

.h-services__btn img {
  width: 1.2em;
  height: 1.2em;
}

/* ---------- News Section ---------- */
.news__list {
  display: flex;
  gap: 1rem;
}

.news__list .news__item {
  flex: 0 1 33%;
}

.news__more-btn {
  margin: 2.5rem auto 0 auto;
  width: fit-content;
  box-shadow: var(--style-shadow);
}

/* ---------- Contact Section ---------- */
.h-contact {
  background-image: url("/static/main/assets/images/background3.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.h-contact__inner {
  display: flex;
  gap: 4rem;
}

.h-contact__text-group {
  flex-shrink: 0;
  margin: auto 0;
}

.h-contact__text-title {
  color: #fff;
}

.h-contact__text-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-accent);
}

.h-contact__form-group {
  flex-grow: 1;
  padding: 1.5rem;
  background: var(--color-theme);
  border-radius: 20px;
}

@media only screen and (max-width: 1024px) {
  .about__content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
  }

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

  .about__image {
    flex-basis: 100%;
  }

  .h-services {
    border-radius: 0;
  }

  .news__tag,
  .news__title {
    text-align: center;
  }

  .news__item-intro {
    display: none;
  }

  .news__footer,
  .news__author {
    flex-direction: column;
    align-items: center;
  }

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

  .h-contact__text-group {
    text-align: center;
  }

  .h-contact__inner {
    flex-direction: column;
    gap: 2.5rem;
  }
}

@media only screen and (max-width: 576px) {
  .hero__subtitle {
    margin-top: 1rem;
  }

  .hero__buttons {
    margin-top: 2.5rem;
  }

  .h-services__list {
    gap: 4rem;
  }

  .h-services__subtitle {
    margin: 1rem 0;
  }
}

/* ---------- Contact Page ---------- */

.c-contact__intro {
  margin-bottom: var(--section-padding-x);
  text-align: center;
  font-size: var(--font-size-lg);
}

.c-contact__intro p:not(:last-child) {
  margin-bottom: 2rem;
}

.c-contact__content {
  display: flex;
  gap: 5rem;
  padding: 5rem 7rem;
  border-radius: 25px;
  background-image: url("/static/main/assets/images/background3.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.c-contact__info {
  margin: auto 0;
}

.c-contact__info-text {
  text-align: center;
  color: #fff;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.c-contact__info-text::after {
  content: "";
  display: block;
  margin: 1em auto 0;
  width: 70%;
  height: 2px;
  background: var(--color-accent);
}

.c-contact__info-social {
  display: flex;
  justify-content: space-between;
  margin: 1.25rem;
}

.c-contact__info-image {
  width: 250px;
  aspect-ratio: 1 / 1;
}

.c-contact__info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-contact__form-group {
  flex-grow: 1;
}

@media only screen and (max-width: 1024px) {
  .c-contact__content {
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem;
  }

  .c-contact__info-social {
    justify-content: center;
    gap: 2rem;
  }

  .c-contact__info-image {
    width: min(250px, 80%);
    margin: 0 auto;
  }
}

/* ---------- News Page ---------- */
.news {
  max-width: var(--section-max-width);
  margin: 3rem auto;
  padding: 0 var(--section-padding-y);
}

.news__intro {
  text-align: center;
}

.news__intro p {
  font-size: var(--font-size-lg);
  line-height: 2;
}

.news__tabs {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 2rem 0 3rem;
  color: #fff;
  font-size: var(--font-size-lg);
  letter-spacing: 0.1rem;
}

.news__tab {
  padding: 0.5rem 3.5rem;
  border-radius: 10px;
  background: var(--color-bg-gray);
  box-shadow: var(--style-shadow);
  cursor: pointer;
}

.news__tab--active {
  background: var(--color-theme-light);
  font-weight: 700;
}

.news__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.5rem;
  row-gap: 3rem;
}

.news__footer {
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.pagination__pages {
  display: flex;
  gap: 1rem;
}

.pagination__prev,
.pagination__next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination__prev,
.pagination__next,
.pagination__page {
  cursor: pointer;
}

.pagination--disabled {
  opacity: 40%;
  pointer-events: none;
}

.pagination__page,
.pagination__gap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
}

.pagination__page--active,
.pagination__page:hover {
  background: var(--color-accent);
  color: #fff;
  transition: var(--style-transition);
}

.pagination__gap {
  font-weight: 700;
}

@media only screen and (max-width: 768px) {
  .news__tabs {
    gap: 2rem;
  }

  .news__tab {
    padding: 0.5rem 3rem;
  }
}

@media only screen and (max-width: 576px) {
  .news__tabs {
    flex-direction: column;
    align-items: center;
  }

  .pagination,
  .pagination__pages {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination__prev span,
  .pagination__next span {
    display: none;
  }
}

/* ---------- About Page ---------- */
.legal-intro {
  text-align: center;
}

.legal-intro__title {
  color: var(--color-theme-light);
}

.legal-intro__subtitle {
  color: var(--color-accent);
}

.legal-intro__description {
  margin-top: 1.5rem;
  font-size: var(--font-size-lg);
}

.mission {
  padding: 2.5rem var(--section-padding-y);
  border-radius: 25px;
  /* background-image: url("/static/main/assets/images/background6.webp"); */
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  text-align: center;
  color: #000000;
}

.mission > :not(:last-child) {
  margin-bottom: 2rem;
}

.mission p {
  font-size: var(--font-size-lg);
  line-height: 2;
}

.core-value__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-height: 400px;
  padding: 7%;
  border-radius: 40px;
  background-image: url("/static/main/assets/images/background5.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.core-value .core-value__item:not(:last-child) {
  margin-bottom: 7rem;
}

.core-value .core-value__item:nth-child(even) {
  flex-direction: row-reverse;
}

.core-value__image {
  flex-basis: 40%;
  overflow: hidden;
  border-radius: 20px;
}

.core-value__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-value__content {
  flex-grow: 1;
  text-align: center;
  color: #fff;
}

.core-value__description {
  margin-top: 1.5rem;
  font-size: var(--font-size-lg);
  line-height: 2;
}

.a-cta {
  border-radius: 50px;
  background-image: url("/static/main/assets/images/about5.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
}

.a-cta__inner {
  max-width: 650px;
  margin: 0 auto;
  padding: var(--section-padding-x) var(--section-padding-y);
}

.a-cta__inner > :not(:last-child) {
  margin-bottom: var(--section-padding-x);
}

.a-cta__content {
  font-size: var(--font-size-lg);
}

.a-cta__content > :not(:last-child) {
  margin-bottom: 1rem;
}

.a-cta__buttons {
  display: flex;
  gap: 2.5rem;
}

.a-cta__buttons .btn {
  width: 100%;
  box-shadow: var(--style-shadow);
}

.faq {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 6rem var(--section-padding-y);
}

.faq__title-group {
  margin-bottom: 3rem;
  text-align: center;
}

.faq__title {
  margin-bottom: 0.75rem;
  color: var(--color-theme-light);
}

.faq__subtitle,
.faq__content {
  font-size: var(--font-size-lg);
}

.faq__content {
  position: relative;
  display: flex;
  padding: 2rem;
  border-radius: 20px;
  background-image: url("/static/main/assets/images/background7.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.faq__inner {
  flex-basis: 50%;
}

.faq__item:not(:last-child) {
  margin-bottom: 1rem;
}

.faq__question,
.faq__answer-title {
  font-weight: 700;
}

.faq__question,
.faq__answer {
  border-radius: 20px;
  background: var(--color-bg-gray);
  box-shadow: var(--style-shadow);
}

.faq__question {
  padding: 1rem;
  cursor: pointer;
}

.faq__question:hover {
  box-shadow: inset var(--style-shadow);
}

.faq__question--active {
  background: var(--color-theme-light);
  box-shadow: inset var(--style-shadow);
  color: #fff;
}

.faq__answer {
  display: none;
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: calc(50% - 2rem - 2rem);
  height: fit-content;
  max-height: calc(100% - 4rem);
  overflow-y: auto;
  padding: 2rem 2rem;
  line-height: 2;
}

.faq__question--active + .faq__answer {
  display: block;
}

@media only screen and (max-width: 768px) {
  .core-value__item {
    flex-direction: column;
    max-height: unset;
  }

  .core-value .core-value__item:nth-child(even) {
    flex-direction: column;
  }

  .mission {
    background-image: url("/static/main/assets/images/background8.webp");
    background-position: 0;
  }

  .mission,
  .a-cta {
    border-radius: 20px;
    color: #f9f9f9;
  }

  .faq__content {
    display: block;
  }

  .faq__answer {
    display: block;
    position: static;
    transform: none;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.24s ease-out;
  }

  .faq__question--active + .faq__answer {
    height: auto;
    margin-top: 1rem;
    padding: 2rem;
    opacity: 1;
  }
}

@media only screen and (max-width: 576px) {
  .a-cta__inner > :not(:last-child) {
    margin-bottom: 2rem;
  }

  .a-cta__buttons {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* ---------- consult Page ---------- */
:root {
  --style-table-head-bg: #ffecbd;
  --style-table-border: 1px solid #00000033;
}

.issue__header {
  margin-bottom: 4.5rem;
}

.issue__section:not(:last-child) {
  margin-bottom: 2em;
}

.issue__section-title {
  margin-bottom: 1em;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.issue__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--style-table-border);
  border-radius: 12px;
  overflow: hidden;
}

.issue__table-head {
  background: var(--style-table-head-bg);
}

.issue__table-head th,
.issue__table-body tr:not(:last-child) td {
  border-bottom: var(--style-table-border);
}

.issue__table-head th:not(:last-child),
.issue__table-body tr td:not(:last-child) {
  border-right: var(--style-table-border);
}

.issue__table-head th {
  padding: 1rem 0;
}

.issue__table-body td {
  padding: 1rem;
}

.lawyers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  column-gap: 3rem;
  row-gap: 3rem;
}

.lawyer__image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
}

.lawyer__image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 5px solid var(--color-theme-light);
  border-radius: 20px;
  opacity: 50%;
}

.lawyer__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lawyer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background-color: #f9f9f9;
}

.lawyer__btn img {
  width: 1.2em;
  height: 1.2em;
}

.lawyer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem;
}

.lawyer__name {
  padding: 0 2em;
  border-radius: 5px;
  background: var(--color-bg-gray);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

@media only screen and (max-width: 768px) {
  .issue__header {
    margin-bottom: 2.5rem;
  }
}

@media only screen and (max-width: 576px) {
  .lawyers {
    gap: 1rem;
  }
}

/* ---------- Personal item Page ---------- */

.item-content {
  margin-bottom: 3rem;
}

.item-content p {
  text-align: justify;
}

.item-content__intro,
.item-content__example-intro {
  margin-left: calc(30px + 1rem);
}

.item-content__example-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.item-content__example-title img {
  width: 30px;
  height: 30px;
}

.item-content__data {
  display: flex;
  align-items: start;
  gap: 1.5rem;
  margin-top: 3rem;
}

.item-content__data-image {
  flex: 0 0 30%;
  box-shadow: var(--style-shadow);
}

.item-content__data-image img {
  display: block;
  width: 100%;
  height: auto;
}

.item-content__data-text > :not(:last-child) {
  margin-bottom: 1.5rem;
}

.item-content__data-info {
  display: flex;
}

.item-content__data-price {
  font-weight: 700;
}

.item-content__btn {
  width: fit-content;
  min-width: 240px;
  margin-left: auto;
  box-shadow: var(--style-shadow);
}

@media only screen and (max-width: 1024px) {
  .item-content__data {
    flex-direction: column;
    align-items: center;
  }

  .item-content__data-image {
    width: min(400px, 100%);
  }

  .item-content__data-text > div {
    text-align: center;
  }

  .item-content__data-info {
    flex-direction: column;
  }

  .item-content__data-divider {
    display: none;
  }

  .item-content__btn {
    margin: 0 auto;
  }
}

@media only screen and (max-width: 768px) {
  .item-content__example-title img {
    width: 20px;
    height: 20px;
  }

  .item-content__intro,
  .item-content__example-intro {
    margin-left: calc(20px + 1rem);
  }
}

/* ---------- Service_index Page ---------- */
.services__intro {
  max-width: 850px;
  margin: 0 auto var(--section-padding-x);
  padding: 2rem;
  border-radius: 25px;
  background-image: url("/static/main/assets/images/background5.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
  color: #fff;
  font-size: var(--font-size-lg);
  line-height: 2;
}

.services__list {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.services__item {
  display: flex;
  flex-direction: column;
  max-width: 360px;
  border-radius: 20px;
  box-shadow: var(--style-shadow);
}

.services__image {
  overflow: hidden;
  border-radius: 20px;
}

.services__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  gap: 1.5rem;
  padding: 1rem;
}

.services__title {
  width: max(70%, 110px);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  background: var(--color-accent);
  text-align: center;
  color: var(--color-theme-light);
}

.services__description {
  text-align: center;
  font-size: var(--font-size-lg);
  line-height: 2;
}

.services__btn {
  box-shadow: var(--style-shadow);
}

/* ---------- news_article Page ---------- */

.article {
  display: flex;
  gap: 5%;
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 3rem var(--section-padding-y);
}

.article__title {
  margin-bottom: 1rem;
}

.article__cover {
  overflow: hidden;
}

.article__cover img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: scale-down;
}

.article__info {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--color-theme);
}

.article__author-position {
  font-size: 0.88rem;
}

.article__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article__author-avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
}

.article__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__social {
  display: flex;
  align-self: flex-end;
  gap: 1.25rem;
}

.article__social img {
  width: 1.5rem;
  height: 1.5rem;
}

.article__sidebar {
  flex: 1 0 30%;
  color: var(--color-theme-light);
  font-weight: 700;
}

.article__sidebar-title {
  margin-bottom: 0.75rem;
  font-size: var(--font-size-lg);
}

.article__sidebar-list {
  padding: 1rem;
  border: 2px solid var(--color-accent);
  border-radius: 20px;
}

.article__sidebar-list a:not(:last-child)::after {
  content: "";
  display: block;
  width: 90%;
  height: 1px;
  margin: 1.5rem auto;
  background: var(--color-accent);
}

@media only screen and (max-width: 1024px) {
  .article {
    flex-direction: column;
    gap: 3rem;
  }

  .article__info {
    flex-wrap: wrap;
  }

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

/* ---------- service_consult_lawyer Page ---------- */

.lawyer-content {
  display: flex;
  align-items: start;
  gap: 3rem;
}

.lawyer-content__image {
  position: relative;
  overflow: hidden;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
}

.lawyer-content__image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 5px solid var(--color-theme-light);
  border-radius: 20px;
  opacity: 50%;
}

.lawyer-content__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lawyer-content__inner {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex-grow: 1;
  gap: 1.5rem;
}

.lawyer-content__title::after {
  content: "";
  display: block;
  width: 80%;
  height: 5px;
  margin: 0 auto;
  background: var(--color-accent);
}

.lawyer-content__info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}

.lawyer-content__info-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  margin-right: auto;
}

.lawyer-content__info-title {
  font-weight: 700;
}

.lawyer-content__info-item > div {
  display: flex;
  gap: 1rem;
}

.lawyer-content__info-btn {
  background: var(--color-theme-light);
  color: var(--color-accent);
}

@media only screen and (max-width: 1024px) {
  .lawyer-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .lawyer-content__image {
    width: min(400px, 100%);
    max-width: unset;
  }

  .lawyer-content__info-item {
    margin-right: 0;
  }

  .lawyer-content__inner {
    align-items: center;
  }

  .lawyer-content__info,
  .lawyer-content__info-item > div {
    flex-direction: column;
  }

  .lawyer-content__info-item > div {
    align-items: center;
    text-align: center;
  }
}
