/* DeepSeek Optimization Service Page — deepseek-optimization.css */
/* Tailwind preflight is disabled in HTML. All base styles defined here. */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1a1a2e; background: #fff; line-height: 1.7; font-size: 16px; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ===== BRAND COLORS (DeepSeek Blue) ===== */
:root {
  --ds-blue: #4D6BFE;
  --ds-blue-dark: #1A2FBE;
  --ds-navy: #0D1B4B;
  --ds-navy-light: #1a1a2e;
  --ds-light: #F5F7FF;
  --ds-gray: #6b7280;
  --ds-border: #e5e7eb;
  --ds-white: #ffffff;
  --ds-accent: #00D4FF;
}

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: #4b5563; }

.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ds-blue);
  margin-bottom: 16px;
}
.sec-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--ds-blue); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--ds-navy) 0%, #1a2f6e 50%, #0d1b4b 100%);
  padding: 80px 0 72px; position: relative; overflow: hidden;
  width: 100%;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(77,107,254,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 150px; align-items: center;
  max-width: 100%; margin: 0; padding: 0 150px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(77,107,254,0.18); border: 1px solid rgba(77,107,254,0.4);
  color: #a5b4fc; font-size: 0.78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--ds-blue); }
.hero-desc { color: #c7d2fe; font-size: 1.05rem; margin-bottom: 32px; max-width: 480px; }
.hero-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ds-blue); color: #fff;
  padding: 14px 28px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700; transition: all 0.2s;
}
.btn-primary:hover { background: var(--ds-blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(77,107,254,0.4); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.3); color: #e0e7ff;
  padding: 13px 24px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero-note { color: #6b7280; font-size: 0.8rem; margin-top: 12px; }

/* Hero Chat Window */
.hero-chat {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; overflow: hidden; backdrop-filter: blur(8px);
}
.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-header img { width: 28px; height: 28px; border-radius: 6px; }
.chat-header-text { font-size: 0.85rem; font-weight: 600; color: #e0e7ff; }
.chat-header-sub { font-size: 0.72rem; color: #6b7280; }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg-user {
  align-self: flex-end; background: var(--ds-blue);
  color: #fff; padding: 10px 16px; border-radius: 12px 12px 2px 12px;
  font-size: 0.875rem; max-width: 85%;
}
.chat-msg-ai {
  align-self: flex-start; background: rgba(255,255,255,0.08);
  color: #e0e7ff; padding: 12px 16px; border-radius: 12px 12px 12px 2px;
  font-size: 0.875rem; max-width: 90%; line-height: 1.6;
}
.chat-sources { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chat-source-tag {
  font-size: 0.7rem; color: #93c5fd;
  background: rgba(77,107,254,0.15); border: 1px solid rgba(77,107,254,0.25);
  padding: 3px 10px; border-radius: 12px;
}
.chat-highlight {
  display: flex; align-items: center; gap: 8px;
  background: rgba(77,107,254,0.12); border: 1px solid rgba(77,107,254,0.25);
  border-radius: 8px; padding: 8px 12px; margin-top: 4px;
  font-size: 0.78rem; color: #a5b4fc;
}

/* ===== STATS STRIP ===== */
.stats-strip { background: var(--ds-light); padding: 40px 0; border-top: 1px solid var(--ds-border); border-bottom: 1px solid var(--ds-border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 16px 24px; border-right: 1px solid var(--ds-border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.25rem; font-weight: 800; color: var(--ds-blue); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--ds-gray); margin-top: 6px; }

/* ===== WHY NOW ===== */
.why-now { background: #fff; }
.why-now-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.why-now-card {
  background: var(--ds-light); border: 1px solid var(--ds-border);
  border-radius: 14px; padding: 32px 28px; transition: box-shadow 0.2s, transform 0.2s;
}
.why-now-card:hover { box-shadow: 0 8px 32px rgba(77,107,254,0.12); transform: translateY(-3px); }
.why-now-num { font-size: 2rem; font-weight: 900; color: var(--ds-blue); opacity: 0.15; line-height: 1; margin-bottom: 12px; }
.why-now-card h3 { color: var(--ds-navy); margin-bottom: 10px; font-size: 1.05rem; }
.why-now-card p { font-size: 0.9rem; color: #6b7280; }

/* ===== DEFINITION + COMPARE ===== */
.definition { background: var(--ds-light); }
.def-intro { max-width: 720px; margin-bottom: 48px; }
.def-intro p { font-size: 1rem; color: #374151; line-height: 1.8; }
.def-intro p + p { margin-top: 14px; }

.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.compare-col { border-radius: 14px; overflow: hidden; border: 1px solid var(--ds-border); }
.compare-col-head { padding: 16px 24px; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.compare-col.trad .compare-col-head { background: #f3f4f6; color: #374151; }
.compare-col.ai .compare-col-head { background: var(--ds-blue); color: #fff; }
.compare-row { display: flex; flex-direction: column; gap: 0; }
.compare-item { padding: 14px 24px; border-top: 1px solid var(--ds-border); }
.compare-col.ai .compare-item { border-color: rgba(255,255,255,0.1); }
.compare-item-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; margin-bottom: 4px; }
.compare-col.ai .compare-item-label { color: #a5b4fc; }
.compare-item-val { font-size: 0.9rem; font-weight: 500; color: #374151; }
.compare-col.ai .compare-item-val { color: #f374751; font-weight: 600; }

/* ===== FREE AUDIT BANNER ===== */
.audit-banner { background: linear-gradient(135deg, var(--ds-blue) 0%, var(--ds-blue-dark) 100%); padding: 56px 0; }
.audit-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.audit-banner h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 10px; }
.audit-banner p { color: #c7d2fe; font-size: 0.95rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ds-blue);
  padding: 14px 32px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700; white-space: nowrap;
  transition: all 0.2s; flex-shrink: 0;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ===== SERVICES ===== */
.services { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.service-card { background: var(--ds-light); border: 1px solid var(--ds-border); border-radius: 14px; padding: 28px 24px; transition: all 0.2s; }
.service-card:hover { border-color: var(--ds-blue); box-shadow: 0 4px 24px rgba(77,107,254,0.1); }
.service-card.cta-card {
  background: linear-gradient(135deg, var(--ds-blue) 0%, var(--ds-blue-dark) 100%);
  border-color: transparent; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.service-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(77,107,254,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.service-card h3 { color: var(--ds-navy); margin-bottom: 10px; font-size: 1rem; }
.service-card p { font-size: 0.875rem; color: #6b7280; line-height: 1.6; }
.service-card.cta-card h3 { color: #fff; font-size: 1.1rem; }
.service-card.cta-card p { color: #c7d2fe; }
.service-card.cta-card .btn-white { margin-top: 20px; font-size: 0.875rem; padding: 10px 20px; }

/* ===== PROCESS ===== */
.process { background: var(--ds-light); }
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 48px; }
.process-timeline { display: flex; flex-direction: column; gap: 0; }
.process-step { display: grid; grid-template-columns: 56px 1fr; gap: 24px; position: relative; }
.process-step:not(:last-child)::after { content: ''; position: absolute; left: 27px; top: 56px; bottom: -24px; width: 2px; background: var(--ds-border); }
.process-num { width: 56px; height: 56px; border-radius: 50%; background: var(--ds-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; z-index: 1; }
.process-content { padding: 14px 0 40px; }
.process-content h3 { color: var(--ds-navy); margin-bottom: 8px; }
.process-content p { font-size: 0.9rem; color: #6b7280; }
.process-img-wrap { position: sticky; top: 80px; border-radius: 16px; overflow: hidden; }
.process-img-wrap img { width: 500px; display: block; border-radius: 16px; }

/* ===== WHY US ===== */
.why-us { background: #fff; }
.why-us-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.why-us-header { grid-column: 1; grid-row: 1; padding-bottom: 8px; }
.why-us-header h2 { margin-bottom: 16px; }
.why-us-header h2 em { font-style: normal; color: var(--ds-blue); }
.why-us-header p { color: #6b7280; font-size: 0.95rem; line-height: 1.8; }
.why-us-list { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 28px; padding-right: 8px; }
.why-us-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--ds-light); border-radius: 12px; border: 1px solid var(--ds-border); }
.why-us-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: rgba(77,107,254,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.why-us-item h4 { color: var(--ds-navy); margin-bottom: 6px; font-size: 0.95rem; }
.why-us-item p { font-size: 0.875rem; color: #6b7280; line-height: 1.6; }
.why-us-img-wrap { grid-column: 2; grid-row: 2; border-radius: 16px; overflow: hidden; }
.why-us-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== FAQ ===== */
.faq { background: var(--ds-light); }
.faq-layout { display: grid; grid-template-columns: 55% 45%; gap: 48px; margin-top: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: #fff; border: 1px solid var(--ds-border); border-radius: 12px; padding: 24px 28px; transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--ds-blue); }
.faq-q { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ds-navy); font-size: 0.95rem; margin-bottom: 10px; }
.faq-q-badge { background: var(--ds-blue); color: #fff; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.faq-a { font-size: 0.875rem; color: #6b7280; line-height: 1.7; padding-left: 36px; }
.faq-side { position: sticky; top: 80px; }
.faq-side-img { border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.faq-side-img img { width: 100%; display: block; }
.faq-side-cta { background: var(--ds-navy); border-radius: 14px; padding: 28px 24px; text-align: center; }
.faq-side-cta p { color: #c7d2fe; font-size: 0.875rem; margin-bottom: 16px; }
.faq-side-cta .btn-primary { width: 100%; justify-content: center; }

/* ===== FINAL CTA ===== */
.final-cta { background: linear-gradient(135deg, var(--ds-navy) 0%, #1a2f6e 100%); padding: 80px 0; text-align: center; }
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta h2 em { font-style: normal; color: var(--ds-blue); }
.final-cta p { color: #c7d2fe; font-size: 1rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.final-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.final-note { color: #6b7280; font-size: 0.8rem; margin-top: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 0 24px; }
  .hero-chat { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-now-grid { grid-template-columns: 1fr; }
  .compare-wrap { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-layout { grid-template-columns: 1fr; }
  .process-img-wrap { display: none; }
  .why-us-inner { grid-template-columns: 1fr; }
  .why-us-img-wrap { grid-column: 1; grid-row: 3; }
  .faq-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}


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

/* 本页 CSS 把 .container 收窄到 1140px，会波及布局的导航条与页脚容器；
   这里把 #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; }
