/* ============================================================
   overseas-geo-optimization.css
   海外 GEO 優化服務頁面樣式
   對齊 aipogeo.com/zh-hk/geo-optimization.html 官網風格
   Primary: #991B2D | Font: Inter + PingFang TC
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
  color: #111827;
  line-height: 1.7;
}

/* ── HERO — Chat Window ── */
.chat-window-wrap {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.13), 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.chat-win-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8f9fa;
  border-bottom: 1px solid #eeeeee;
}

.chat-messages {
  padding: 20px 20px 10px;
  background: #f8f9fb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg-user {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.chat-bubble-user {
  background: #991B2D;
  color: white;
  padding: 12px 16px;
  border-radius: 16px 4px 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

.chat-msg-ai {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.chat-ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-bubble-ai {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.source-chip {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

/* ── Service Module Cards ── */
.service-module-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-module-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: #991B2D;
}

.service-module-icon {
  width: 48px;
  height: 48px;
  background: #fff5f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #991B2D;
  font-size: 20px;
  margin-bottom: 18px;
}

.service-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-checklist li {
  font-size: 13px;
  color: #6b7280;
  padding-left: 18px;
  position: relative;
}

.service-checklist li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: #991B2D;
  font-weight: 700;
  font-size: 10px;
  top: 2px;
}

/* ── Platform Items (light bg) ── */
.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-item:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  border-color: #991B2D;
}

.platform-logo-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-logo-circle img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── Process Cards ── */
.process-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.process-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.process-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #991B2D;
  color: white;
  font-size: 14px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 14px;
}

/* ── FAQ ── */
.faq-row {
  border-top: 1px solid #e5e7eb;
  cursor: pointer;
}

.faq-row:last-child {
  border-bottom: 1px solid #e5e7eb;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  gap: 16px;
  user-select: none;
  transition: color 0.15s ease;
  cursor: pointer;
}

.faq-q:hover {
  color: #991B2D;
}

.faq-toggle-icon {
  color: #991B2D;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.2s ease;
  padding-bottom: 0;
}

.faq-a p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  padding-bottom: 20px;
}

/* ── Comparison Table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  background: #991B2D;
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.compare-table th:first-child {
  border-radius: 8px 0 0 0;
}

.compare-table th:last-child {
  border-radius: 0 8px 0 0;
}

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #374151;
  vertical-align: top;
}

.compare-table tr:nth-child(even) td {
  background: #fafafa;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .chat-window-wrap {
    max-width: 100%;
  }

  .service-module-card {
    padding: 24px 20px;
  }

  .process-card {
    padding: 32px 20px;
    min-height: auto;
  }
}


/* ------------------------------------------------------------
   以下自 overseas-geo-optimization.html 的内联 <style> 外移
   ------------------------------------------------------------ */
/* 布局的一级导航链接带 .text-white，但导航条底色是白色；
   仅在 #navbar 内改成深色，避免影响本页 CTA 区块的白色文字 */
#navbar .text-white { color: #000000; }
#navbar a.bg-primary { color: #ffffff !important; }
