/* ============================================================
   AI Mode GEO Optimization Service Page — CSS (English)
   Design: Google-inspired 4-color accents on clean white/light gray
   Brand Colors: Blue #4285F4, Red #EA4335, Yellow #FBBC05, Green #34A853
   CTA: #991B2D | Text: #1A1A1A | Background: #FFFFFF / #F8F9FA
   Font: Inter (English)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g-blue:   #4285F4;
  --g-red:    #EA4335;
  --g-yellow: #FBBC05;
  --g-green:  #34A853;
  --brand-cta: #991B2D;
  --brand-cta-hover: #7A1524;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #767676;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-section: #F1F3F4;
  --border: #E8EAED;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.aim-hero {
  background: var(--bg-white);
  padding: 80px 48px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.aim-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.aim-hero-badge img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}
.aim-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.aim-hero h1 .highlight-blue  { color: var(--g-blue); }
.aim-hero h1 .highlight-red   { color: var(--g-red); }
.aim-hero h1 .highlight-brand { color: var(--brand-cta); }
.aim-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}
.aim-hero-checks {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aim-hero-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.aim-hero-checks li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--g-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.aim-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.aim-btn-primary {
  background: var(--brand-cta);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.aim-btn-primary:hover {
  background: var(--brand-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(153,27,45,0.3);
}
.aim-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.aim-btn-secondary:hover {
  border-color: var(--g-blue);
  color: var(--g-blue);
  transform: translateY(-1px);
}

/* Hero Chat Window */
.aim-hero-chat-col {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.aim-chat-header {
  background: var(--text-primary);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.aim-chat-header img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
.aim-chat-header-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.aim-chat-header-text p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}
.aim-chat-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-white);
}
.aim-chat-user {
  background: var(--brand-cta);
  color: #fff;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  align-self: flex-end;
  max-width: 85%;
  font-weight: 500;
}
.aim-chat-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.aim-chat-ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}
.aim-chat-ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.aim-chat-ai-bubble {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px 18px 18px 18px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 85%;
}
.aim-chat-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.aim-chat-tag {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.aim-chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.aim-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.2s infinite;
}
.aim-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.aim-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.2); }
}

/* ── STATS BAND ── */
.aim-stats {
  background: var(--text-primary);
  padding: 48px;
}
.aim-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.aim-stat-item {
  text-align: center;
  padding: 24px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.aim-stat-item:last-child { border-right: none; }
.aim-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.aim-stat-num.blue   { color: var(--g-blue); }
.aim-stat-num.red    { color: var(--g-red); }
.aim-stat-num.yellow { color: var(--g-yellow); }
.aim-stat-num.green  { color: var(--g-green); }
.aim-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

/* ── SECTION COMMON ── */
.aim-section {
  padding: 88px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.aim-section-bg {
  background: var(--bg-light);
  padding: 88px 0;
}
.aim-section-bg .aim-section {
  padding-top: 0;
  padding-bottom: 0;
}
.aim-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-cta);
  margin-bottom: 12px;
}
.aim-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.aim-section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
}

/* ── DEFINITION ── */
.aim-def-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 48px;
}
.aim-def-table-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.aim-def-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
}
.aim-def-table th {
  background: var(--bg-section);
  padding: 16px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.aim-def-table td {
  padding: 18px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
  line-height: 1.6;
}
.aim-def-table tr:last-child td { border-bottom: none; }
.aim-def-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 28%;
}
.aim-def-table td:last-child {
  font-weight: 600;
  color: var(--text-primary);
}
.aim-def-boxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.aim-def-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.aim-def-box:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--g-blue);
}
.aim-def-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.aim-def-box p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── CORE SERVICES ── */
.aim-services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
.aim-services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.aim-service-item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.aim-service-item:first-child { padding-top: 0; }
.aim-service-item:last-child { border-bottom: none; }
.aim-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}
.aim-service-icon.blue   { background: rgba(66,133,244,0.1); }
.aim-service-icon.red    { background: rgba(234,67,53,0.1); }
.aim-service-icon.yellow { background: rgba(251,188,5,0.1); }
.aim-service-icon.green  { background: rgba(52,168,83,0.1); }
.aim-service-icon.purple { background: rgba(153,27,45,0.08); }
.aim-service-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.aim-service-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}
.aim-service-badge.blue   { background: rgba(66,133,244,0.12); color: var(--g-blue); }
.aim-service-badge.red    { background: rgba(234,67,53,0.12); color: var(--g-red); }
.aim-service-badge.yellow { background: rgba(251,188,5,0.15); color: #B8860B; }
.aim-service-badge.green  { background: rgba(52,168,83,0.12); color: var(--g-green); }
.aim-service-badge.brand  { background: rgba(153,27,45,0.1); color: var(--brand-cta); }
.aim-service-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.aim-services-img-wrap {
  position: sticky;
  top: 88px;
}
.aim-services-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--bg-white);
}

/* ── SERVICE PROCESS (Top cards + Bottom image) ── */
.aim-process-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 40px;
}
.aim-process-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.aim-process-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.aim-process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.aim-process-num.blue   { background: var(--g-blue); }
.aim-process-num.red    { background: var(--g-red); }
.aim-process-num.yellow { background: var(--g-yellow); color: var(--text-primary); }
.aim-process-num.green  { background: var(--g-green); }
.aim-process-num.brand  { background: var(--brand-cta); }
.aim-process-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.aim-process-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.aim-process-arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-cta);
  font-size: 1.2rem;
  z-index: 1;
}
.aim-process-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.aim-process-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 21/9;
}

/* ── WHY US ── */
.aim-whyus-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
  margin-top: 48px;
}
.aim-whyus-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}
.aim-whyus-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-white);
  padding: 12px;
}
.aim-whyus-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}
.aim-whyus-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.aim-whyus-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.aim-whyus-icon.blue   { background: rgba(66,133,244,0.1); }
.aim-whyus-icon.red    { background: rgba(234,67,53,0.1); }
.aim-whyus-icon.yellow { background: rgba(251,188,5,0.12); }
.aim-whyus-icon.green  { background: rgba(52,168,83,0.1); }
.aim-whyus-point h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.aim-whyus-point p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── FAQ ── */
.aim-faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}
.aim-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.aim-faq-item {
  border-bottom: 1px solid var(--border);
}
.aim-faq-item:first-child { border-top: 1px solid var(--border); }
.aim-faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.aim-faq-question:hover { color: var(--g-blue); }
.aim-faq-question.active { color: var(--brand-cta); }
.aim-faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--text-muted);
}
.aim-faq-question.active .aim-faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-cta);
}
.aim-faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.aim-faq-answer.open { display: block; }
.aim-faq-right {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.aim-faq-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.aim-faq-img-wrap img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: var(--bg-white);
  padding: 12px;
  aspect-ratio: 1/1;
}
.aim-faq-cta-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.aim-faq-cta-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.aim-faq-cta-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── BOTTOM CTA ── */
.aim-bottom-cta {
  background: var(--text-primary);
  padding: 80px 48px;
  text-align: center;
}
.aim-bottom-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}
.aim-bottom-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.aim-bottom-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  line-height: 1.7;
}
.aim-bottom-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.aim-btn-cta-white {
  background: #fff;
  color: var(--brand-cta);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.aim-btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}
.aim-btn-cta-outline {
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.aim-btn-cta-outline:hover {
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}


/* ── Google Color Dots Decoration ── */
.aim-google-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
}
.aim-google-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .aim-hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 32px; }
  .aim-hero h1 { font-size: 2.2rem; }
  .aim-def-layout { grid-template-columns: 1fr; }
  .aim-services-layout { grid-template-columns: 1fr; }
  .aim-services-img-wrap { position: static; }
  .aim-whyus-layout { grid-template-columns: 1fr; }
  .aim-faq-layout { grid-template-columns: 1fr; }
  .aim-faq-right { position: static; }
  .aim-process-cards { grid-template-columns: repeat(3, 1fr); }
  .aim-stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .aim-section { padding: 56px 20px; }
  .aim-section-bg { padding: 56px 0; }
  .aim-stats { padding: 32px 20px; }
  .aim-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .aim-process-cards { grid-template-columns: repeat(2, 1fr); }
  .aim-section-title { font-size: 1.7rem; }
  .aim-bottom-cta { padding: 56px 20px; }
}
@media (max-width: 480px) {
  .aim-process-cards { grid-template-columns: 1fr; }
  .aim-stats-inner { grid-template-columns: 1fr; }
}


/* ------------------------------------------------------------
   以下自 ai-mode-optimization.html 的内联 <style> 外移
   ------------------------------------------------------------ */
/* 布局顶部固定导航条 (#navbar) 浮于内容之上，给首屏额外留出顶部间距，避免遮挡 hero 内容 */
.aim-hero { padding-top: 140px; }
@media (max-width: 768px) { .aim-hero { padding-top: 112px; } }

/* 布局的一级导航链接带 .text-white，但导航条底色是白色 */
#navbar .text-white { color: #000000; }
#navbar a.bg-primary { color: #ffffff !important; }
