:root {
  --ag-dark: #2b363f;
  --ag-dark-blue: #26384a;

  --ag-orange: #f9481e;
  --ag-orange-hover: #d93a16;
  --ag-light-orange: #fff0eb;

  --ag-green: #a1b928;
  --ag-green-hover: #8faa23;

  --ag-purple: #5a3793;

  --ag-blue: #3a56c1;
  --ag-blue-hover: #3048a9;
  --ag-light-blue: #eef2ff;

  --ag-bg: #f6f7fb;
  --ag-background: #f6f7fb;
  --ag-card: #eeeff9;
  --ag-border: #e6e8ec;
  --ag-white: #ffffff;

  --ag-text: #2b363f;
  --ag-muted: #687384;

  --ag-shadow: 0 18px 55px rgba(28, 42, 77, 0.18);

  --font-zh:
    "Noto Sans TC",
    "Source Han Sans TC",
    "思源黑體 TC",
    "Microsoft JhengHei",
    sans-serif;

  --font-en:
    "Open Sans",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ag-dark);
  font-family: var(--font-zh);
}


/* =========================
   TOP BAR
========================= */

.topbar {
  width: 100%;
  padding: 0.25rem 0.75rem;
  background: var(--ag-dark);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
}

.topbar img {
  display: block;
  width: auto;
  height: 1.5rem;
  max-height: 1.5rem;
  object-fit: contain;
}

.topbar a + a {
  margin-left: 0.4rem;
}


/* =========================
   NAVBAR
========================= */

.navbar {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--ag-border);
}

.navbar .container-fluid {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 10px 18px;
}

.navbar-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin: 0 28px 0 0;
  padding: 0;
}

.navbar-brand img {
  display: block;
  width: 280px;
  max-width: 280px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

.navbar-collapse {
  flex: 1 1 auto;
  min-width: 0;
}

.navbar-nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.navbar-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.78rem;
  color: var(--ag-dark);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-zh);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.navbar-nav .btn:hover,
.navbar-nav .btn:focus {
  color: #ffffff;
  background: var(--ag-blue);
  transform: translateY(-1px);
}


/* FAQ 常見問題選單 */

.navbar-nav .btn-life {
  color: #ffffff !important;
  background: var(--ag-blue) !important;
}

.navbar-nav .btn-life:hover,
.navbar-nav .btn-life:focus {
  color: #ffffff !important;
  background: var(--ag-blue-hover) !important;
}


/* =========================
   HAMBURGER
========================= */

.navbar-toggler {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.55rem;
  background: transparent;
  border: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--ag-dark);
  transition: 0.25s ease;
}

.navbar-toggler span:not(:first-child) {
  margin-top: 5px;
}


/* =========================
   PAGE TITLE
========================= */

.page-title {
  padding: 86px 20px 54px;
  text-align: center;
  background: #ffffff;
}

.page-title h1 {
  margin: 0;
  color: var(--ag-dark);
  font-family: var(--font-en);
  font-style: italic;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-title h1 span {
  color: var(--ag-blue);
}

.page-title p {
  margin-top: 20px;
  color: var(--ag-dark);
  font-size: 1.05rem;
  line-height: 1.9;
}


/* =========================
   FAQ MAIN
========================= */

.info-hero{
  width:100%;
  height:560px;
  overflow:hidden;
}

.info-hero img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 10%;
}

.faq-main {
  padding: 72px 24px 100px;
  background: var(--ag-background);
}

.faq-intro {
  width: min(760px, 100%);
  margin: 0 auto 36px;
  text-align: left;
}

.faq-eyebrow {
  margin: 0 0 10px;
  color: var(--ag-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.faq-intro h2,
.faq-contact-card h2 {
  margin: 0 0 14px;
  color: var(--ag-dark-blue);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.faq-intro > p:last-child,
.faq-contact-card p {
  margin: 0;
  color: var(--ag-muted);
  font-size: 17px;
  line-height: 1.75;
}


/* =========================
   FAQ SEARCH
========================= */

.faq-search-section {
  width: min(850px, 100%);
  margin: 0 auto 42px;
}

.faq-search-box {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  padding: 0 18px;
  background: var(--ag-white);
  border: 1px solid var(--ag-border);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(31, 45, 74, 0.08);
}

.faq-search-icon {
  color: var(--ag-blue);
  font-size: 29px;
  line-height: 1;
}

.faq-search-box input {
  flex: 1;
  min-width: 0;
  height: 60px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ag-text);
  font: inherit;
  font-size: 16px;
}

.faq-search-box input::placeholder {
  color: #9aa3b1;
}

#clearFaqSearch {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--ag-muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

#clearFaqSearch.visible {
  display: block;
}


/* =========================
   FAQ LAYOUT
========================= */

.faq-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.faq-categories {
  position: sticky;
  top: 25px;
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 8px;
  padding: 12px;
  background: var(--ag-white);
  border: 1px solid var(--ag-border);
  border-radius: 18px;
}

.faq-category {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ag-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  transition: 0.2s ease;
}

.faq-category:hover {
  color: var(--ag-orange);
  background: var(--ag-light-orange);
}

.faq-category.active {
  color: var(--ag-white);
  background: var(--ag-orange);
}

.faq-content {
  min-width: 0;
}


/* =========================
   FAQ ITEM
========================= */

.faq-item {
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--ag-white);
  border: 1px solid var(--ag-border);
  border-radius: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd4ee;
}

.faq-item.open {
  border-color: rgba(63, 91, 196, 0.45);
  box-shadow: 0 12px 30px rgba(42, 61, 113, 0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--ag-dark-blue);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 750;
  text-align: left;
}

.faq-plus {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ag-light-blue);
  color: var(--ag-blue);
  font-size: 25px;
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-answer > div {
  overflow: hidden;
  color: var(--ag-muted);
  font-size: 16px;
  line-height: 1.75;
  text-align: left;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer > div {
  padding: 0 24px 23px;
}

.faq-no-results {
  padding: 55px 25px;
  background: var(--ag-white);
  border: 1px dashed #c9d0dd;
  border-radius: 16px;
  text-align: center;
}

.faq-no-results h3 {
  margin: 0 0 8px;
  color: var(--ag-dark-blue);
}

.faq-no-results p {
  margin: 0;
  color: var(--ag-muted);
}


/* =========================
   FAQ CONTACT
========================= */

.faq-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  width: min(1120px, 100%);
  margin: 65px auto 0;
  padding: 42px 46px;
  background: var(--ag-white);
  border: 1px solid var(--ag-border);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(35, 49, 82, 0.08);
}

.faq-contact-card h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.faq-contact-button {
  flex: 0 0 auto;
  padding: 15px 29px;
  border-radius: 999px;
  background: var(--ag-blue);
  color: var(--ag-white);
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.faq-contact-button:hover {
  color: var(--ag-white);
  background: var(--ag-blue-hover);
  transform: translateY(-2px);
}


/* =========================
   AI CHAT BUTTON
========================= */

.ai-chat-button {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9998;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ag-orange);
  color: var(--ag-white);
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(34, 54, 122, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ai-chat-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 40px rgba(34, 54, 122, 0.42);
}

.ai-chat-button svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.ai-online-dot {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 15px;
  height: 15px;
  background: #35bf68;
  border: 3px solid var(--ag-white);
  border-radius: 50%;
}


/* =========================
   AI CHAT PANEL
========================= */

.ai-chat-panel {
  position: fixed;
  right: 25px;
  bottom: 105px;
  z-index: 9999;

  display: flex;
  flex-direction: column;

  width: min(390px, calc(100vw - 30px));
  height: min(610px, calc(100vh - 135px));

  overflow: hidden;

  background: var(--ag-white);
  border: 1px solid var(--ag-border);
  border-radius: 22px;
  box-shadow: var(--ag-shadow);

  opacity: 0;
  visibility: hidden;

  transform: translateY(20px) scale(0.97);
  transform-origin: bottom right;

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;
}

.ai-chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}


/* =========================
   AI CHAT HEADER
========================= */

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 18px;
  background: linear-gradient(135deg, #354fb2, #4d69d4);
  color: var(--ag-white);
}

.ai-chat-agent {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ai-agent-logo {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  background: var(--ag-white);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: var(--ag-blue);
  font-size: 12px;
  font-weight: 900;
}

.ai-chat-agent strong {
  display: block;
  font-size: 15px;
}

.ai-chat-agent small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  background: #69e795;
  border-radius: 50%;
}

.ai-close-button {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ag-white);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}


/* =========================
   AI CHAT MESSAGES
========================= */

.ai-chat-messages {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 17px;
  background:
    radial-gradient(
      circle at top right,
      rgba(63, 91, 196, 0.08),
      transparent 35%
    ),
    #f7f8fc;
  text-align: left;
}


/* Every message row */

.ai-chat-messages .chat-message {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 8px;
  width: 100% !important;
  margin: 0 0 15px;
  text-align: left !important;
}


/* Assistant message stays on left */

.ai-chat-messages .chat-message.assistant-message {
  justify-content: flex-start !important;
  text-align: left !important;
}


/* User message stays on right */

.ai-chat-messages .chat-message.user-message {
  justify-content: flex-end !important;
  text-align: left !important;
}


/* Assistant avatar */

.chat-avatar {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  margin: 0;
  background: var(--ag-blue);
  border-radius: 50%;
  color: var(--ag-white);
  font-size: 10px;
  font-weight: 900;
}


/* Chat bubble */

.ai-chat-messages .chat-bubble {
  display: block !important;
  width: auto !important;
  max-width: 76% !important;
  padding: 12px 14px;

  background: var(--ag-white);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 5px 15px rgba(36, 50, 82, 0.08);

  color: var(--ag-text);
  font-size: 14px;
  line-height: 1.65;

  text-align: left !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Force every child element in assistant bubble to left */

.ai-chat-messages .assistant-message .chat-bubble,
.ai-chat-messages .assistant-message .chat-bubble p,
.ai-chat-messages .assistant-message .chat-bubble span,
.ai-chat-messages .assistant-message .chat-bubble div {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}


/* Assistant bubble position */

.ai-chat-messages .assistant-message .chat-bubble {
  margin-left: 0 !important;
  margin-right: auto !important;
}


/* User bubble */

.ai-chat-messages .user-message .chat-bubble {
  margin-left: auto !important;
  margin-right: 0 !important;
  background: var(--ag-blue);
  border-radius: 16px 16px 4px 16px;
  color: var(--ag-white);
  text-align: left !important;
}


/* =========================
   QUICK QUESTIONS
========================= */

.ai-quick-questions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 8px 0 10px 39px;
  text-align: left;
}

.ai-quick-questions button {
  padding: 9px 12px;
  background: var(--ag-white);
  border: 1px solid #cdd5ef;
  border-radius: 999px;
  color: var(--ag-blue);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.ai-quick-questions button:hover {
  background: var(--ag-light-blue);
}


/* =========================
   TYPING INDICATOR
========================= */

.ai-typing {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 55px;
}

.ai-typing span {
  width: 7px;
  height: 7px;
  background: #99a2b2;
  border-radius: 50%;
  animation: typingPulse 1.1s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingPulse {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}


/* =========================
   AI CHAT INPUT
========================= */

.ai-chat-form {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 9px;
  padding: 13px;
  background: var(--ag-white);
  border-top: 1px solid var(--ag-border);
}

.ai-chat-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 110px;
  padding: 11px 13px;
  overflow-y: auto;
  resize: none;
  border: 1px solid #d9dee8;
  border-radius: 14px;
  outline: none;
  color: var(--ag-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.ai-chat-form textarea::placeholder {
  color: #9299a5;
  text-align: left;
}

.ai-chat-form textarea:focus {
  border-color: var(--ag-blue);
  box-shadow: 0 0 0 3px rgba(63, 91, 196, 0.11);
}

.ai-chat-form button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  background: var(--ag-blue);
  border: 0;
  border-radius: 13px;
  color: var(--ag-white);
  cursor: pointer;
}

.ai-chat-form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ai-chat-form button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.ai-chat-footer {
  padding: 8px 13px 11px;
  background: var(--ag-white);
  color: #8a93a1;
  font-size: 10px;
  text-align: center;
}


/* =========================
   ACCESSIBILITY
========================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}


/* =========================
   FOOTER
========================= */

.footer {
  padding: 24px 40px;
  background: var(--ag-blue);
  color: #ffffff;
  font-family: var(--font-en);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  flex: 0 0 auto;
}

.footer-logo img {
  display: block;
  width: 220px !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}

.footer-copy {
  flex: 1;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.footer-social {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transition: 0.25s ease;
}

.footer-social img {
  display: block;
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
}

.footer-social a:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}


/* =========================
   SMALL DESKTOP
========================= */

@media (max-width: 1200px) {
  .navbar .container-fluid {
    padding-right: 12px;
    padding-left: 12px;
  }

  .navbar-brand {
    margin-right: 14px;
  }

  .navbar-brand img {
    width: 235px;
    max-width: 235px;
  }

  .navbar-nav .btn {
    padding: 0.68rem 0.5rem;
    font-size: 0.79rem;
  }
}


/* =========================
   TABLET / MOBILE NAV
========================= */

@media (max-width: 991.98px) {
     .info-hero{
    height:260px;
  }

  .info-hero img{
    object-position:center center;
  }

    
  .navbar {
    min-height: 92px;
    flex-wrap: wrap;
  }

  .navbar .container-fluid {
    min-height: 92px;
    flex-wrap: wrap;
    padding: 10px 18px;
  }

  .navbar-brand {
    margin-right: 0;
  }

  .navbar-brand img {
    display: block;
    width: auto;
    max-width: 76vw;
    max-height: 76px;
    object-fit: contain;
  }

  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    width: 100%;
    flex: 0 0 100%;
    margin-top: 10px;
  }

  .navbar-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 16px;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: left;
  }

  .navbar-nav .btn:hover,
  .navbar-nav .btn:focus {
    transform: none;
  }

  .navbar-nav .btn-life {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
  }
}


/* =========================
   FAQ TABLET
========================= */

@media (max-width: 800px) {
         .info-hero{
    height:260px;
  }

  .info-hero img{
    object-position:center center;
  }
    
  .faq-main {
    padding: 55px 17px 80px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-categories {
    position: static;
    display: flex;
    overflow-x: auto;
    flex-direction: row;
    padding: 8px;
  }

  .faq-category {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .faq-contact-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 25px;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
     .info-hero{
    height:260px;
  }

  .info-hero img{
    object-position:center center;
  }
    
  .page-title {
    padding: 60px 20px 34px;
  }

  .page-title h1 {
    font-size: 2.4rem;
  }

  #html-section > div > .row,
  #html-section > .row {
    padding: 18px;
    border-left: 4px solid var(--ag-blue);
    border-radius: 18px;
  }

  #html-section iframe {
    margin-bottom: 22px;
  }

  #html-section p[style*="font-size:1.4rem"],
  #html-section p[style*="font-size: 1.4rem"] {
    font-size: 1.35rem !important;
  }

  .contact-section {
    padding: 54px 18px 76px;
  }

  .contact-box {
    padding: 36px 22px;
    border-radius: 22px;
  }

  .contact-title {
    padding: 10px 32px;
    font-size: 1.25rem;
  }

  .contact-text {
    font-size: 1rem;
    line-height: 2;
  }

  .contact-info {
    font-size: 1rem;
    line-height: 2;
  }

  .footer {
    padding: 32px 22px 42px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    text-align: center;
  }

  .footer-logo img {
    width: 190px !important;
    max-width: 80vw !important;
  }

  .footer-copy {
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: normal;
  }

  .footer-social {
    justify-content: center;
    gap: 22px;
    width: 100%;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
  }

  .footer-social img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }
}


/* =========================
   SMALL MOBILE CHAT
========================= */

@media (max-width: 520px) {
  .faq-question {
    padding: 19px 17px;
    font-size: 15px;
  }

  .faq-item.open .faq-answer > div {
    padding: 0 17px 19px;
    font-size: 14px;
  }

  .ai-chat-button {
    right: 16px;
    bottom: 16px;
    width: 59px;
    height: 59px;
  }

  .ai-chat-panel {
    right: 10px;
    bottom: 84px;
    width: calc(100vw - 20px);
    height: calc(100vh - 105px);
    border-radius: 18px;
  }

  .ai-chat-messages {
    padding: 17px 13px;
  }

  .ai-chat-messages .chat-bubble {
    max-width: calc(100% - 42px) !important;
    padding: 11px 13px;
    font-size: 14px;
  }

  .ai-quick-questions {
    margin-left: 39px;
  }
}

/* 強制 AG AI 歡迎訊息從左側開始 */
#aiChatMessages {
    text-align: left !important;
}

#aiChatMessages .assistant-message {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: flex-end !important;
    text-align: left !important;
}

#aiChatMessages .assistant-message .chat-bubble,
#aiChatMessages .assistant-message .ai-welcome-message {
    display: block !important;

    width: auto !important;
    max-width: 80% !important;

    margin-left: 0 !important;
    margin-right: auto !important;

    padding: 12px 14px !important;

    text-align: left !important;
    text-indent: 0 !important;

    justify-content: flex-start !important;
    align-items: flex-start !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* 如果訊息裡有其他標籤，也強制靠左 */
#aiChatMessages .assistant-message .chat-bubble p,
#aiChatMessages .assistant-message .chat-bubble span,
#aiChatMessages .assistant-message .chat-bubble div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;

    text-align: left !important;
    text-indent: 0 !important;
}
