:root {
  --brand-blue: #000061;
  --brand-orange: #FF7A1A;
  --bg-light: #FAFAFA;
  --text-dark: #1A1A1A;
  --text-gray: #555;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

body {
  font-family: "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  color: #333;
  background: #fffdf9;
}

/* 無障礙隱藏文字 */
.hide {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   語言切換按鈕
   ========================================================= */
.english {
  position: fixed;
  right: 30px;
  top: 30px;
  background: rgba(0,0,0,0.7);
  padding: 5px 10px;
  z-index: 10;
  border-radius: 4px;
}
.english a {
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

/* =========================================================
   HERO 主視覺區
   ========================================================= */




.dna-visual {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
  animation: dnaFloat 10s ease-in-out infinite alternate;
}
@keyframes dnaFloat {
  0% { transform: translateY(0px) rotate(-1deg); }
  100% { transform: translateY(-10px) rotate(1deg); }
}




/* =========================================================
   ABOUT 前言區塊
   ========================================================= */
.about-section {
  position: relative;
  padding: 5rem 1rem;
  background: #f6f7f9;
  overflow: hidden;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.about-head h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.about-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: #FF6A00;
}
.about-body p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  letter-spacing: 0.01em;
  margin: 0 auto;
  max-width: 850px;
}
.about-glow {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 160%;
  background: radial-gradient(circle at 30% 40%, rgba(255,106,0,0.12), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(10,132,255,0.12), transparent 50%);
  filter: blur(60px);
  z-index: 1;
  animation: glow-move 12s ease-in-out infinite alternate;
}
@keyframes glow-move {
  0% { transform: translate(0,0); }
  100% { transform: translate(20px, -20px); }
}

/* =========================================================
   BOOTH 展館區塊
   ========================================================= */
.booth-section {
  text-align: center;
  padding: 5rem 1rem 6rem;
  background: #f6f7f9;
}
.booth-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #222;
}
.booth-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.booth-tab-wrap {
  position: relative;
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  align-items: center;
  padding: 0.3rem;
  gap: 0.3rem;
}
.booth-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  font-weight: 600;
  color: #444;
  font-size: 1rem;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.3s ease;
}
.booth-tab.active { color: #fff; }
.booth-tab-slider {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  border-radius: 999px;
  background: #0A84FF;
  transition: all 0.3s ease;
  z-index: 0;
}
.booth-base {
  max-width: 1200px;
  margin: 0 auto;
  background: #f1f2f4;
  border-radius: 24px;
  padding: 1.5rem 1rem 2rem;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}
.booth-container {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.booth-container.active { display: block; }
.booth-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  max-width: 1000px;
  margin: 0 auto 2rem;
}
.booth-left {
  flex: 0 0 160px;
  text-align: center;
  margin-top: 0.5rem;
}
.booth-feature-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.booth-link {
  display: inline-block;
  background: #0A84FF;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.booth-link:hover {
  background: #0074e8;
  transform: translateY(-2px);
}
.booth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 78%;
  gap: 0.8rem;
  line-height: 1.6;
  text-align: left;
}
.booth-company-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}
.booth-subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  border-left: 4px solid #0A84FF;
  padding-left: 0.5rem;
}
.booth-intro-box,
.booth-product-box {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-left: 1rem;
}
.booth-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.booth-logo {
  width: 75px;
  height: 75px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  padding: 0.4rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  opacity: 0.7;
}
.booth-logo:hover,*/
.booth-logo.active {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #f6f7f9;
  color: #333;
  font-family: "Noto Sans TC", "Inter", sans-serif;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.footer-social {
  padding: 0 1rem 2rem;
}
.footer-social-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
.follow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
@media (min-width: 992px) {
    .footer-social-inner {
    grid-template-columns: 1fr 340px;
    align-items: flex-start;
  }
  .follow-list { text-align: left; }
}
.follow-title {
  color: #FF6A00;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.follow-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #555;
  margin-right: 0.75rem;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}
.follow-icons a:hover {
  color: #fff;
  background: #FF6A00;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255,106,0,0.3);
}
.copyright {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(0,0,0,0.6);
  padding: 1rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: #fff;
}

/* =========================================================
   響應式設計
   ========================================================= */

/* 992px 以下：Hero 與 Booth 調整 */
@media (max-width: 992px) {
  

  /* Booth Tabs 平均分配 */
  .booth-tabs {
    justify-content: center;
  }
  .booth-tab-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 0.3rem;
  }
  .booth-tab {
    flex: 1 1 0;
    text-align: center;
    font-size: clamp(0.85rem, 2.8vw, 1rem);
    padding: 0.8rem 0.5rem;
  }
}

/* 768px 以下：手機版 Hero 與 Booth */
@media (max-width: 768px) {
  .booth-layout {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    max-height: 65vh;
    overflow-y: auto;
  }
  .booth-left {
    margin: 0 auto 1rem;
  }
  .booth-feature-logo {
    width: 120px;
    height: 120px;
  }
  .booth-right {
    max-width: 100%;
  }
  .booth-company-name {
    font-size: 1.2rem;
  }
  .booth-subtitle {
    border-left: none;
    border-bottom: 2px solid #0A84FF;
    display: inline-block;
  }
  .booth-intro-box,
  .booth-product-box {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }
  .booth-logos {
    gap: 0.8rem;
    margin-top: 1rem;
  }
  .booth-logo {
    width: 70px;
    height: 70px;
  }
}
/* 英文頁面 Hero 自適應縮放 */
body.lang-en .hero-headline,
body.en .hero-headline {
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  text-align: center;
  word-break: keep-all;
}
body.lang-en .hero-meta,
body.en .hero-meta {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  text-align: center;
}

/* === 手機與平板 Booth LOGO 顯示修正 === */
@media (max-width: 992px) {
  .booth-layout {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    max-height: none;     /* ❌ 移除 65vh 限制，避免被裁掉 */
    overflow: visible;    /* ❌ 不要捲動，讓內容自然展開 */
  }

  .booth-logos {
    display: flex;
    flex-wrap: wrap;      /* ✅ 自動換行 */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .booth-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }
}

@media (max-width: 600px) {
  .booth-logo {
    width: 70px;
    height: 70px;
    padding: 0.4rem;
  }
}
/* === Booth Tabs 三等分＋自動換行／縮小 === */
@media (max-width: 992px) {
  .booth-tabs {
    justify-content: center;
    overflow: hidden; /* 防止橫向捲動 */
  }

  .booth-tab-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ✅ 三個平均 */
    max-width: 700px;
    width: 100%;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 0.3rem;
  }

  .booth-tab {
    text-align: center;
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 1rem); /* ✅ 字會隨螢幕縮小 */
    line-height: 1.3;
    padding: 0.7rem 0.5rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    white-space: normal;   /* ✅ 可換行 */
    word-break: keep-all;  /* ✅ 中文自然斷行 */
    overflow-wrap: break-word;
    transition: all 0.25s ease;
  }

  .booth-tab.active {
    color: #fff;
  }

  .booth-tab-slider {
    border-radius: 999px;
  }
}

@media (max-width: 600px) {
  .booth-tab {
    font-size: clamp(0.75rem, 3.2vw, 0.9rem); /* ✅ 手機更小一點 */
    padding: 0.6rem 0.4rem;
  }
}
/* === 手機與平板：Booth Logo 橫向滑動 === */
@media (max-width: 992px) {
  .booth-logos {
    display: flex;
    flex-wrap: nowrap;           /* ❌ 不要換行 */
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;            /* ✅ 開啟水平滑動 */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* ✅ iOS 平滑滑動 */
    scroll-behavior: smooth;
    padding: 0.5rem 1rem;
  }

  .booth-logo {
    flex: 0 0 auto;              /* ✅ 固定寬度、可橫滑 */
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    scroll-snap-align: start;    /* ✅ 滑動停靠整齊 */
  }

  .booth-logos::-webkit-scrollbar {
    display: none;               /* ✅ 隱藏滑桿 */
  }
}

@media (max-width: 600px) {
  .booth-logo {
    width: 70px;
    height: 70px;
    padding: 0.4rem;
  }
}
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  text-align: center;
  overflow: hidden;
  padding: 480px 1rem 6rem; /* 上方留空給DNA圖 */
  z-index: 0;
}

/* ✅ 最終覆蓋，統一底部距離 */
.hero {
  padding-bottom: 0.5rem !important; /* 下方非常緊 */
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1600px;
  height: 480px;
  background: url("../images/MeetTaipeiVIideaV1110-02.png") center top/contain no-repeat;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.hero-copy { flex: 0 1 auto; }
@media (max-width: 992px) {
  .hero {
    text-align: center;
    padding: 260px 1rem 0.3rem; /* 上縮下緊，適合新版圖比例 */
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 400px;       /* ✅ 建議縮小高度，讓圖比例更自然 */
    background: url("../images/MeetTaipeiVIideaV1110-02.png") center top/contain no-repeat;
    opacity: 0.7;
    pointer-events: none;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    margin-top: -1rem;
  }

  .hero-headline {
    margin-top: 1.2rem;
    font-size: clamp(1.4rem, 7vw, 3rem);
    margin-bottom: 2.5rem;
  }

  .hero-meta {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-top: 0.3rem;
    margin-bottom: 0.2rem;
    line-height: 1.4;
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding: 220px 1rem 0.2rem; /* 上方保留DNA圖，下方緊貼About */
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1600px;
    height: 340px;        /* ✅ 更小的比例圖高度 */
    background: url("../images/MeetTaipeiVIideaV1110-02.png") center top/contain no-repeat;
    opacity: 0.6;
    pointer-events: none;
  }

  .hero-headline {
    margin-top: 2rem;
    margin-bottom: 2.4rem;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero-meta {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 4rem 1rem 2rem;
  }
  .hero-headline {
    font-size: clamp(1.2rem, 6vw, 2.4rem);
  }
  .hero-meta {
    font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  }
}
.hero-headline {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-shadow:
    0 3px 10px rgba(255, 255, 255, 0.85),
    0 2px 6px rgba(0, 0, 97, 0.25);
  transform-origin: left center;
  max-width: 100%;
}

.hero-headline .sub-title {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7em;
  font-weight: 700;
  color: #1a1a8f;
  line-height: 1.3;
}
/* === 平板與手機：讓標題＋時間地點移到圖片下方 === */
@media (max-width: 992px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0; /* ✅ 不再為圖片預留上方空間 */
  }

  .hero::before {
    position: relative; /* ✅ 背景圖變成普通圖片區塊 */
    top: 0;
    left: 0;
    transform: none;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* ✅ 讓圖片依比例縮放 */
    background: url("../images/MeetTaipeiVIideaV1110-02.png") center/contain no-repeat;
    opacity: 1;
  }

  .hero-inner {
    position: relative;
    z-index: 3;
    margin-top: 1rem; /* ✅ 圖片與文字之間距離 */
  }
}
/* === 768px 以下：Hero 改為圖片在上、文字在下 === */
@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem 1rem; /* ✅ 不再預留上方空間，下方保留少量留白 */
  }

  /* ✅ 背景圖變成圖片區塊 */
  .hero::before {
    position: relative;
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9; /* ✅ 維持比例 */
    background: url("../images/MeetTaipeiVIideaV1110-02.png") center top/contain no-repeat;
    opacity: 1;
    pointer-events: none;
  }

  .hero-inner {
    position: relative;
    z-index: 3;
    margin-top: 1rem; /* ✅ 圖片與文字之間的距離 */
  }

  .hero-headline {
    margin-top: 1rem;
    margin-bottom: 1.4rem;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero-meta {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
  }
}

/* === 600px 以下：手機比例更高、間距更緊 === */
@media (max-width: 600px) {
  .hero {
    padding: 0 1rem 0.8rem;
  }

  .hero::before {
    aspect-ratio: 4 / 3; /* ✅ 手機比例略高，圖片更飽滿 */
    background-size: contain;
  }

  .hero-headline {
    font-size: clamp(1.2rem, 6vw, 2.3rem);
    margin-bottom: 1.2rem;
  }

  .hero-meta {
    font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  }
}



.booth-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.booth-item {
  background: #fff;
  border-radius: 16px;
  border: 3px solid rgba(0,0,0,0.08);   /* ✅ 淡灰邊線強化邊界 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* ✅ 柔和陰影讓白底不黏牆 */
  padding: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.booth-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.booth-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* modal */
.booth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.booth-modal.show {
  visibility: visible;
  opacity: 1;
}
.booth-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  overflow-y: auto;
  max-height: 85vh;
}
.booth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}
.booth-modal-logo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1rem;
}
.booth-modal-name {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}
.booth-modal-intro,
.booth-modal-product {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}
.booth-modal-link {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s ease;
}
.booth-modal-link:hover {
  background: var(--brand-orange);
}
/* === Modal 按鈕水平置中 === */
.booth-modal-link {
  display: inline-block;              /* ✅ 讓它保持按鈕外觀 */
  margin: 1.5rem auto 0 auto;         /* ✅ 自動置中 */
  background: #0A84FF;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.booth-modal-link:hover {
  background: #0074e8;
  transform: translateY(-2px);
}

/* ✅ 確保 Modal 內容區支持置中對齊 */
.booth-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ 水平置中所有內部元素 */
  text-align: left;
}
/* === Modal 版本：公司簡介、產品介紹 樣式 === */
/* === Booth Modal：整體樣式 === */
.booth-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;           /* 整體文字預設左對齊 */
  padding: 2rem 2rem 2.5rem;
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: calc(100% - 2rem); /* ✅ 防止超出螢幕寬 */
  margin: 2rem auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow-x: hidden; /* ✅ 防止出現橫向滾動 */
  animation: modalFadeIn 0.3s ease-out;
}

/* Modal 淡入動畫 */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 關閉按鈕 */
.booth-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.booth-modal-close:hover {
  transform: scale(1.1);
  color: var(--brand-blue);
}

/* 公司 Logo */
.booth-modal-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* 公司名稱 */
.booth-modal-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-align: center;         /* 名稱置中 */
  margin: 1rem 0 1rem 0;
}

/* 副標題（公司簡介／產品介紹） */
.booth-modal-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  margin: 1.2rem 0 0.4rem;
  border-left: 4px solid #0A84FF;
  padding-left: 0.5rem;
  width: 100%;
  text-align: left;
}

/* 內文（公司簡介／產品介紹） */
.booth-modal-intro,
.booth-modal-product {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
  width: 100%;
  margin: 0.5rem 0 1rem 0.5rem; /* 微內縮效果 */
}

/* 前往官網按鈕 */
.booth-modal-link {
  display: inline-block;
  margin: 1.5rem auto 0 auto; /* 置中 */
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
}
.booth-modal-link:hover {
  background: var(--brand-orange);
  transform: translateY(-2px);
}


.about-body p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
  text-align: justify;      /* ✅ 兩端對齊 */
  text-align-last: left;    /* ✅ 最後一行靠左 */
  max-width: 800px;         /* ✅ 控制段落寬度，避免孤行 */
  margin: 0 auto;           /* ✅ 置中段落 */
  letter-spacing: 0.02em;
  word-break: break-word;   /* ✅ 中文自動換行 */
}
.about-section {
  background: #f7f8fa;
  padding: 5rem 1.5rem;
}

.about-head h2 {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.about-body p {
  color: #444;
  font-size: 1.05rem;
}


/**********************/
/* === 桌機版 Booth Grid：AI 4欄、Life/Health 3欄 === */
@media (min-width: 993px) {
  /* 預設：AI 分類 4欄 */
  .booth-container[data-category="ai"] .booth-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
  }

  /* 智慧生活／永續健康：3欄 */
  .booth-container[data-category="life"] .booth-grid,
  .booth-container[data-category="health"] .booth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
  }
}
