/* ============================================================
   china-geo-optimization.css
   China 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: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 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: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #eeeeee;
}

.chat-platforms-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.chat-plat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chat-plat-item span {
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

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

.chat-user-avatar {
  font-size: 20px;
  flex-shrink: 0;
  order: 2;
}

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

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

.chat-ai-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-bubble-ai {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  max-width: 360px;
}

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

/* ── Service Module Cards ── */
.service-module-card {
  display: flex;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 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;
  flex-shrink: 0;
}

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

.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: 12px;
}

/* ── Platform Items (dark bg) ── */
.platform-item-dark {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.platform-item-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(153,27,45,0.5);
}

.platform-logo-circle {
  width: 72px;
  height: 72px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ── Process Cards ── */
.process-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: 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: 40px;
  height: 40px;
  background: #991B2D;
  color: white;
  font-size: 14px;
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto;
}

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

.faq-row:first-child {
  border-top: 1px solid #e5e7eb;
}

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

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

.faq-toggle-icon {
  color: #991B2D;
  font-size: 12px;
  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: 14px;
  color: #4b5563;
  line-height: 1.75;
}

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

  .service-module-card {
    flex-direction: column;
  }

  .chat-platforms-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}


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