/*
 * qwen-optimization-en.css
 * Qwen (Alibaba) GEO Optimization Service Page — Standalone Stylesheet
 * Framework: Tailwind CSS CDN (preflight disabled)
 * Theme: Deep Navy #1A2340 · Tech Purple #6B5FE8 · Light Blue-Gray #F0F2FA
 * Font: Inter (English optimized)
 * v2: Reduced whitespace, enlarged fonts, improved color contrast
 */

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

/* ─── CSS Custom Properties ─────────────────────── */
:root {
  --qw-navy:       #1A2340;
  --qw-navy-mid:   #232E4A;
  --qw-purple:     #6B5FE8;
  --qw-purple-lt:  #8B7FF0;
  --qw-purple-pale:#EEF0FB;
  --qw-bg:         #F0F2FA;
  --qw-white:      #FFFFFF;
  --qw-text:       #1A2340;
  --qw-text-muted: #4A5270;
  --qw-border:     #D8DCF0;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--qw-white);
  color: var(--qw-text);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 16px;
}

/* ─── Breadcrumb ────────────────────────────────── */
.breadcrumb {
  background: var(--qw-bg);
  border-bottom: 1px solid var(--qw-border);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 32px;
  font-size: 0.85rem;
  color: var(--qw-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-inner a { color: var(--qw-text-muted); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--qw-purple); }
.breadcrumb-sep { color: #B0B8CC; }

/* ─── Section Label ─────────────────────────────── */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qw-purple);
  margin: 0 0 8px;
}

/* ─── Buttons ───────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--qw-purple);
  color: var(--qw-white);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--qw-purple-lt); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); color: var(--qw-white); }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--qw-white);
  color: var(--qw-purple);
  padding: 13px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
}
.btn-white:hover { background: var(--qw-purple-pale); }

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  background: var(--qw-purple-pale);
  padding: 72px 1.5rem 80px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: center;
}

/* Left — open layout (no dark card) */
.hero-card {
  /* no background card — open layout like Yuanbao */
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--qw-white);
  border: 1px solid var(--qw-border);
  color: var(--qw-navy);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge img {
  width: 18px; height: 18px;
  border-radius: 4px; object-fit: cover;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--qw-navy);
}
.hero-title .highlight {
  color: var(--qw-purple);
  text-decoration: underline;
  text-decoration-color: #C4BFFF;
  text-underline-offset: 4px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--qw-text-muted);
  margin: 0 0 22px;
  max-width: 520px;
  line-height: 1.8;
}
.hero-checks {
  list-style: none;
  padding: 0; margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--qw-text-muted);
}
.hero-checks li::before {
  content: '✓';
  color: var(--qw-purple);
  font-weight: 700;
  flex-shrink: 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Override btn-outline for hero (light bg) */
.hero .btn-outline {
  color: var(--qw-navy);
  border-color: var(--qw-border);
  background: transparent;
}
.hero .btn-outline:hover {
  border-color: var(--qw-purple);
  color: var(--qw-purple);
}

/* Right chat */
.hero-chat {
  background: var(--qw-white);
  border-radius: 16px;
  border: 1px solid var(--qw-border);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(107,95,232,0.12), 0 1px 4px rgba(0,0,0,0.06);
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.chat-header {
  background: var(--qw-navy);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,0.15);
  padding: 3px;
  flex-shrink: 0;
}
.chat-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--qw-white);
  margin: 0;
}
.chat-header-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAFBFF;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--qw-purple);
  color: var(--qw-white);
  padding: 10px 14px;
  border-radius: 12px 12px 2px 12px;
  font-size: 0.88rem;
  max-width: 90%;
  line-height: 1.5;
}
.chat-msg-ai {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.chat-ai-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--qw-purple-pale);
  padding: 4px;
  flex-shrink: 0;
}
.chat-ai-bubble {
  background: var(--qw-white);
  border: 1px solid var(--qw-border);
  padding: 10px 14px;
  border-radius: 2px 12px 12px 12px;
  font-size: 0.85rem;
  color: var(--qw-text);
  line-height: 1.6;
  max-width: 90%;
}
.chat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.chat-tag {
  background: var(--qw-purple-pale);
  color: var(--qw-purple);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.chat-typing span {
  width: 7px; height: 7px;
  background: var(--qw-purple);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
  30% { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════
   STATS BAND
   ═══════════════════════════════════════════════════ */
.stats-band {
  background: var(--qw-navy);
  padding: 40px 1.5rem;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: #A5B4FC;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════
   DEFINITION SECTION (參考元寶左表右 def-box 並排等高)
   ═══════════════════════════════════════════════════ */
.signal-section {
  padding: 80px 1.5rem;
  background: var(--qw-white);
}
.signal-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.signal-intro {
  max-width: 700px;
  margin-bottom: 2.5rem;
}
.signal-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--qw-navy);
  margin: 0 0 12px;
  line-height: 1.25;
}
.signal-intro p {
  color: var(--qw-text-muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.8;
}

/* Two-column grid: left table + right def-boxes */
.definition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.compare-table-wrap {
  display: flex;
  flex-direction: column;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--qw-border);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  font-size: 0.9rem;
  text-align: left;
}
.compare-table th {
  padding: 14px 18px;
  font-weight: 700;
  background: var(--qw-bg);
  color: var(--qw-text-muted);
  border-bottom: 1.5px solid var(--qw-border);
}
.compare-table th.highlight-col {
  background: var(--qw-purple-pale);
  color: var(--qw-navy);
  border-bottom-color: #C4BFFF;
}
.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--qw-border);
  color: var(--qw-text-muted);
  vertical-align: top;
}
.compare-table td.highlight-col {
  background: #F8F7FF;
  color: var(--qw-purple);
  font-weight: 700;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--qw-text); }

/* Right: def-boxes */
.def-boxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.def-box {
  background: var(--qw-bg);
  border: 1px solid var(--qw-border);
  border-left: 3px solid var(--qw-purple);
  border-radius: 0 12px 12px 0;
  padding: 20px 22px;
  flex: 1;
}
.def-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--qw-navy);
  margin: 0 0 8px;
}
.def-box p {
  font-size: 0.88rem;
  color: var(--qw-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   SERVICES — Card Grid (參考元寶 3+2 卡片排版)
   ═══════════════════════════════════════════════════ */
.services-section {
  background: var(--qw-purple-pale);
  padding: 80px 1.5rem;
}
.services-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.services-header {
  margin-bottom: 2.5rem;
}
.services-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--qw-navy);
  margin: 0 0 10px;
}
.services-header p {
  color: var(--qw-text-muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.services-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 20px auto 0;
}
.service-card {
  background: var(--qw-white);
  border: 1px solid var(--qw-border);
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(107,95,232,0.12);
  transform: translateY(-2px);
}
.service-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qw-purple);
  margin-bottom: 10px;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--qw-navy);
  margin: 0 0 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--qw-text-muted);
  margin: 0;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════ */
.process-section {
  background: var(--qw-white);
  padding: 56px 0;
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.process-header {
  margin-bottom: 28px;
}
.process-header h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--qw-navy);
  margin: 0 0 10px;
}
.process-header p {
  color: var(--qw-text-muted);
  font-size: 0.95rem;
  max-width: 640px;
}
.process-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--qw-border);
}
.process-image-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.process-steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.process-step-card {
  background: var(--qw-bg);
  border-radius: 12px;
  padding: 18px 16px;
  border-top: 3px solid var(--qw-purple);
}
.step-num-badge {
  width: 30px; height: 30px;
  background: var(--qw-purple);
  color: var(--qw-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.process-step-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--qw-navy);
  margin: 0 0 6px;
}
.process-step-card p {
  font-size: 0.85rem;
  color: var(--qw-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   WHY US
   ═══════════════════════════════════════════════════ */
.whyus-section {
  background: var(--qw-purple-pale);
  padding: 56px 0;
}
.whyus-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.whyus-image {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
}
.whyus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.whyus-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.whyus-content h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--qw-navy);
  margin: 0 0 10px;
  line-height: 1.3;
}
.whyus-content > p {
  color: var(--qw-text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.8;
}
.whyus-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.whyus-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.point-icon {
  width: 42px; height: 42px;
  background: var(--qw-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(107,95,232,0.12);
}
.point-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--qw-navy);
  margin: 0 0 4px;
}
.point-text p {
  font-size: 0.88rem;
  color: var(--qw-text-muted);
  margin: 0;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════ */
.faq-section {
  background: var(--qw-white);
  padding: 56px 0;
}
.faq-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.faq-header {
  margin-bottom: 32px;
}
.faq-header h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--qw-navy);
  margin: 0;
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--qw-border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--qw-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  padding: 16px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--qw-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover { background: var(--qw-bg); }
.faq-item.open .faq-question { background: var(--qw-purple-pale); color: var(--qw-purple); }
.faq-toggle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--qw-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--qw-text-muted);
}
.faq-item.open .faq-toggle {
  background: var(--qw-purple);
  color: var(--qw-white);
}
.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--qw-text-muted);
  line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

.faq-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--qw-border);
}
.faq-img-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.faq-cta-box {
  background: var(--qw-navy);
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
}
.faq-cta-box p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  margin: 0 0 14px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════ */
.cta-band {
  background: var(--qw-navy);
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--qw-white);
  margin: 0 0 14px;
}
.cta-band p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.8;
}
.cta-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 12px !important;
}



/* ------------------------------------------------------------
   以下自 qwen-optimization.html 的内联 <style> 外移
   ------------------------------------------------------------ */
/* 布局顶部固定导航条 (#navbar) 浮于内容之上，本页首屏第一块是面包屑，给它留出顶部间距 */
.breadcrumb { padding-top: 96px; }
@media (max-width: 768px) { .breadcrumb { padding-top: 80px; } }

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