/*
 * yuanbao-optimization.css
 * 騰訊元寶 GEO 優化服務頁面 — 獨立樣式文件
 * 框架：Tailwind CSS CDN (preflight disabled)
 * 色彩方案：翠綠 #1DB954 / 淡綠 #E8F5E9 / 深綠 #1B5E20
 * 版本：1.0.0
 */

/* ── CSS Custom Properties ── */
:root {
  --yb-green:       #1DB954;
  --yb-green-dark:  #17a349;
  --yb-green-deep:  #1B5E20;
  --yb-green-light: #E8F5E9;
  --yb-green-mid:   #C8E6C9;
  --yb-green-pale:  #F1F8F2;
  --yb-teal:        #00897B;
  --yb-navy:        #1A2B1F;
  --yb-text:        #1C2B1E;
  --yb-text-muted:  #4A6B50;
  --yb-border:      #C8E6C9;
  --yb-white:       #FFFFFF;
  --yb-gray-light:  #F5F9F6;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: 'Inter, "Segoe UI", Arial', sans-serif;
  color: var(--yb-text);
  background: var(--yb-white);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--yb-text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
a { color: var(--yb-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yb-green);
  color: var(--yb-white);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), transform 0.16s var(--ease-out);
  text-decoration: none;
}
.btn-primary:hover { background: var(--yb-green-dark); text-decoration: none; }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--yb-text);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--yb-border);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--yb-green); color: var(--yb-green-dark); text-decoration: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--yb-gray-light);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--yb-text-muted);
  border-bottom: 1px solid var(--yb-border);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a { color: var(--yb-text-muted); }
.breadcrumb a:hover { color: var(--yb-green); }
.breadcrumb-sep { color: #9CA3AF; }

/* ── Hero Section ── */
.hero {
  background: var(--yb-green-light);
  padding: 72px 1.5rem 80px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yb-white);
  border: 1px solid var(--yb-border);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yb-green-deep);
  margin-bottom: 1.25rem;
}
.hero-badge img { width: 18px; height: 18px; border-radius: 4px; }
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--yb-text);
}
.hero-title .highlight {
  color: var(--yb-green);
  text-decoration: underline;
  text-decoration-color: var(--yb-green-mid);
  text-underline-offset: 4px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--yb-text-muted);
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--yb-text-muted);
}
.hero-checks li::before {
  content: '✓';
  color: var(--yb-green);
  font-weight: 700;
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Chat Box */
.hero-chat {
  background: var(--yb-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(29, 185, 84, 0.12), 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.chat-header {
  background: var(--yb-green);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--yb-white);
  padding: 3px;
  object-fit: contain;
}
.chat-header-info { flex: 1; }
.chat-header-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--yb-white);
  margin: 0;
}
.chat-header-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FAFFFE;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--yb-green);
  color: var(--yb-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;
  gap: 8px;
  align-items: flex-start;
}
.chat-ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yb-green-light);
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.chat-ai-bubble {
  background: var(--yb-white);
  border: 1px solid var(--yb-border);
  padding: 10px 14px;
  border-radius: 2px 12px 12px 12px;
  font-size: 0.85rem;
  color: var(--yb-text);
  line-height: 1.55;
  max-width: 90%;
}
.chat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.chat-tag {
  background: var(--yb-green-light);
  color: var(--yb-green-deep);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}
.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.chat-typing span {
  width: 7px; height: 7px;
  background: var(--yb-green);
  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(--yb-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: var(--yb-green);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ── Section Labels ── */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yb-green);
  margin-bottom: 0.75rem;
}

/* ── Definition Section ── */
.definition-section {
  background: var(--yb-white);
  padding: 80px 1.5rem;
}
.definition-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.definition-intro {
  max-width: 700px;
  margin-bottom: 2.5rem;
}
.definition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
/* Left: comparison table */
.compare-table-wrap {
  display: flex;
  flex-direction: column;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--yb-border);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
}
.compare-table th {
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  background: var(--yb-gray-light);
  color: var(--yb-text-muted);
  border-bottom: 1.5px solid var(--yb-border);
}
.compare-table th.highlight-col {
  background: var(--yb-green-light);
  color: var(--yb-green-deep);
  border-bottom-color: var(--yb-green-mid);
}
.compare-table td {
  padding: 13px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--yb-border);
  color: var(--yb-text-muted);
  vertical-align: top;
}
.compare-table td.highlight-col {
  background: #FAFFFE;
  color: var(--yb-green-deep);
  font-weight: 600;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--yb-text); }

/* Right: definition boxes */
.def-boxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.def-box {
  background: var(--yb-gray-light);
  border: 1px solid var(--yb-border);
  border-radius: 12px;
  padding: 20px 22px;
  flex: 1;
}
.def-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yb-text);
  margin-bottom: 0.5rem;
}
.def-box p {
  font-size: 0.88rem;
  color: var(--yb-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Services Section ── */
.services-section {
  background: var(--yb-green-pale);
  padding: 80px 1.5rem;
}
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-header { margin-bottom: 2.5rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 1;
}
/* Center last 2 cards */
.services-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  max-width: 800px;
}
.service-card {
  background: var(--yb-white);
  border: 1px solid var(--yb-border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.12);
  transform: translateY(-2px);
}
.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yb-green);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yb-text);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--yb-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Process Section ── */
.process-section {
  background: var(--yb-white);
  padding: 80px 1.5rem;
}
.process-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.process-steps { display: flex; flex-direction: column; gap: 24px; }
.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  background: var(--yb-green);
  color: var(--yb-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yb-text);
  margin-bottom: 0.3rem;
}
.step-content p {
  font-size: 0.88rem;
  color: var(--yb-text-muted);
  margin: 0;
  line-height: 1.6;
}
.process-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── Why Us Section ── */
.whyus-section {
  background: var(--yb-green-light);
  padding: 80px 1.5rem;
}
.whyus-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.whyus-image {
  display: flex;
  align-items: stretch;
}
.whyus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: block;
}
.whyus-content { display: flex; flex-direction: column; justify-content: center; }
.whyus-points { display: flex; flex-direction: column; gap: 24px; margin-top: 1.5rem; }
.whyus-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.point-icon {
  width: 44px;
  height: 44px;
  background: var(--yb-white);
  border: 1.5px solid var(--yb-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.point-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yb-text);
  margin-bottom: 0.25rem;
}
.point-text p {
  font-size: 0.875rem;
  color: var(--yb-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── FAQ Section ── */
.faq-section {
  background: var(--yb-white);
  padding: 80px 1.5rem;
}
.faq-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.faq-header { margin-bottom: 2.5rem; }
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--yb-border);
}
.faq-item:first-child { border-top: 1px solid var(--yb-border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--yb-text);
  gap: 1rem;
  user-select: none;
}
.faq-question:hover { color: var(--yb-green); }
.faq-toggle {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--yb-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--yb-text-muted);
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.faq-item.open .faq-toggle {
  background: var(--yb-green);
  color: var(--yb-white);
  border-color: var(--yb-green);
}
.faq-answer {
  display: none;
  padding: 0 0 18px;
  font-size: 0.88rem;
  color: var(--yb-text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

.faq-right { display: flex; flex-direction: column; gap: 20px; }
.faq-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.faq-img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.faq-cta-box {
  background: var(--yb-green-light);
  border: 1px solid var(--yb-border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.faq-cta-box p {
  font-size: 0.9rem;
  color: var(--yb-text-muted);
  margin-bottom: 1rem;
}

/* ── CTA Band ── */
.cta-band {
  background: var(--yb-green);
  padding: 72px 1.5rem;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--yb-white);
  margin-bottom: 0.75rem;
}
.cta-band p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-white {
  background: var(--yb-white);
  color: var(--yb-green-deep);
  padding: 0.9rem 2.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-band .btn-white:hover { opacity: 0.9; text-decoration: none; }
.cta-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}


/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-chat { display: none; }
  .definition-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-row-2 { grid-template-columns: 1fr; }
  .process-inner { grid-template-columns: 1fr; }
  .whyus-inner { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}


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

/* 本页 CSS 把 .container 收窄到 1200px，会波及布局的导航条与页脚容器；
   这里把 #navbar / #footer 的 .container 还原为站点默认的响应式宽度 */
#navbar .container, #footer .container {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px)  { #navbar .container, #footer .container { max-width: 640px; } }
@media (min-width: 768px)  { #navbar .container, #footer .container { max-width: 768px; padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1024px) { #navbar .container, #footer .container { max-width: 1024px; } }
@media (min-width: 1280px) { #navbar .container, #footer .container { max-width: 1280px; } }
@media (min-width: 1536px) { #navbar .container, #footer .container { max-width: 1536px; } }

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