/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  background: #1c1814;
  padding: 16px 20px 18px;
  line-height: normal;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  max-width: max-content;
  margin: 0 auto;
}

.footer-rating {
  flex-shrink: 0;
  display: block;
  width: 52px;
  height: auto;
}

.footer-content {
  flex: none;
}

.footer-text p {
  font-size: 11px;
  line-height: 1.55;
  color: #b5aea6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 6px;
}

.footer-links a,
.footer-contact-btn {
  font-size: 11px;
  color: #d8d0c8;
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-contact-btn {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-links a:hover,
.footer-contact-btn:hover {
  color: #fff;
}

/* 暫無提示弹窗 */
.unavailable-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.unavailable-modal[hidden] {
  display: none;
}

.unavailable-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.unavailable-modal-dialog {
  position: relative;
  width: min(280px, 100%);
  padding: 32px 24px 28px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.unavailable-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  color: #8a9aa6;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.unavailable-modal-close:hover {
  color: #3d4a54;
}

.unavailable-modal-text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #3d4a54;
}

/* 聯繫我們弹窗 */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.contact-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.contact-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  color: #8a9aa6;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.contact-modal-close:hover {
  color: #3d4a54;
}

.contact-modal-title {
  margin: 0 32px 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #3d4a54;
}

.contact-modal-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-modal-copy-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 14px;
  color: #2b7cd3;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.contact-modal-copy-btn:hover {
  color: #1a5fad;
}

.contact-modal-copy-btn.is-copied {
  color: #3d9a5f;
}

.contact-modal-email {
  font-size: 15px;
  color: #3d4a54;
  word-break: break-all;
}

.contact-modal-copy {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 14px;
  color: #2b7cd3;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.contact-modal-copy:hover {
  color: #1a5fad;
}

.contact-modal-copy.is-copied {
  color: #3d9a5f;
}

/* 语言选择上拉 */
.footer-lang {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 2;
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 12px;
  color: #b5aea6;
  background: #2e2a26;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.footer-lang-btn:hover {
  color: #d8d0c8;
  background: #3a3530;
}

.footer-lang-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  transition: transform 0.2s;
}

.footer-lang.is-open .footer-lang-arrow {
  transform: rotate(180deg);
}

.footer-lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  min-width: 100%;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #2e2a26;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
}

.footer-lang-menu[hidden] {
  display: none;
}

.footer-lang-option {
  padding: 6px 10px;
  font-size: 12px;
  color: #b5aea6;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.footer-lang-option:hover,
.footer-lang-option.is-active {
  color: #fff;
  background: #3a3530;
}

/* ===== 页脚 手机端 ===== */
@media (max-width: 768px) {
  .site-footer {
    padding: 24px 16px 28px;
  }

  .footer-inner {
    gap: 16px;
  }

  .footer-rating {
    width: 56px;
  }

  .footer-text p {
    font-size: 12px;
    line-height: 1.7;
  }

  .footer-links {
    gap: 16px;
    margin-top: 8px;
  }

  .footer-links a,
  .footer-contact-btn {
    font-size: 12px;
  }

  .footer-lang {
    right: 16px;
    bottom: 20px;
  }

  .footer-lang-btn,
  .footer-lang-option {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 20px 12px 24px;
  }

  .footer-rating {
    width: 48px;
  }

  .footer-text p {
    font-size: 11px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-links a,
  .footer-contact-btn {
    font-size: 11px;
  }

  .footer-lang {
    right: 12px;
    bottom: 16px;
  }

  .footer-lang-btn,
  .footer-lang-option {
    font-size: 11px;
  }
}
