/* ═══════════════════════════════════════════════════════════════
   多乐猫 GEO Agent — 设计系统 v3（参考 qoder.cn）
   风格：自然绿浅色系极简 · 产品即主视觉 · 扁平发丝线 · 流动虚线微动效
   排版：中等字重（500）工程感 · 32-36px 区块标题 · 84px 区块留白
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 底色 */
  --bg: #f2f4f2;          /* 页面底（浅灰偏绿） */
  --bg-white: #ffffff;    /* 区块底 */
  --bg-soft: #f9f9f9;     /* 卡片底 */
  --bg-container: #f3f3f3;

  /* 文字 */
  --ink: #0f0d0c;
  --ink-2: #636261;
  --ink-3: #838280;
  --ink-4: #8e8c8b;

  /* 品牌绿 */
  --green: #80c776;
  --green-hover: #75bb6b;
  --green-dark: #255a41;
  --green-dark-hover: #517b67;
  --green-tint: #eaf7e7;
  --green-border: #cdecc8;

  /* 边框 */
  --line: #e6e6e6;
  --line-soft: #efefef;
  --line-mid: #ddd;

  --radius: 16px;
  --font-sans: "Instrument Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* ── 基础 ─────────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);            /* qoder：正文主色 #0f0d0c */
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 500;      /* qoder：标题一律中等字重，观感克制 */
  letter-spacing: -0.01em;
}

::selection { background: var(--green-tint); color: var(--green-dark); }

a { color: var(--green); text-decoration: none; transition: color .2s ease-in-out; }
a:hover { color: var(--green-hover); }

/* 覆盖 MudBlazor 全局 a{color:var(--mud-palette-text-primary)} 蓝色污染 */
main a:not(.btn):not(.nav-link):not(.accordion-button) { color: var(--green); }
main a:not(.btn):not(.nav-link):not(.accordion-button):hover { color: var(--green-hover); }
/* 区块留白节奏（qoder：主区块上下 84px） */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

/* ── 品牌 Logo（导航栏 / 页脚） ───────────────────────────── */
.brand-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-mark { display: inline-flex; width: 28px; height: 28px; flex-shrink: 0; transition: transform .25s ease; }
.brand-logo:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.brand-sub { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }

/* ── 导航（实色，无毛玻璃） ───────────────────────────────────── */
.navbar {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--line) !important;
  min-height: 60px;
  position: sticky; top: 0; z-index: 1020;   /* qoder：吸顶 */
}
.navbar-brand { color: var(--ink) !important; font-weight: 600; font-size: 1.05rem; }
.navbar .nav-link {
  color: var(--ink-2) !important; font-weight: 500; font-size: .9rem;
  transition: color .2s ease-in-out;
}
.navbar .nav-link:hover { color: var(--ink) !important; }

/* ── 按钮（胶囊形） ───────────────────────────────────────────── */
.btn { border-radius: 999px; font-weight: 500; transition: all .2s ease-in-out; font-size: .9rem; }

.btn-primary-dark {
  background: var(--green-dark); color: #fdfdfd !important; border: none;
  padding: .42rem 1.25rem;
}
.btn-primary-dark:hover { background: var(--green-dark-hover); color: #fff !important; }
.btn-lg.btn-primary-dark { padding: .55rem 1.6rem; font-size: .95rem; }

.btn-soft {
  background: var(--bg-white); color: var(--ink);
  border: 1px solid var(--line);
  padding: .42rem 1.25rem;
}
.btn-soft:hover { border-color: var(--line-mid); background: var(--bg-soft); color: var(--ink); }
.btn-lg.btn-soft { padding: .55rem 1.6rem; font-size: .95rem; }

.btn-link-green {
  background: none; border: none; color: var(--green);
  padding: .42rem .5rem;
}
.btn-link-green:hover { color: var(--green-hover); }

/* ── 区块标题 ─────────────────────────────────────────────────── */
.section-title {
  font-size: 2rem; line-height: 1.3; font-weight: 500;
  color: var(--ink);
}
.section-desc { font-size: 1rem; line-height: 1.6; color: var(--ink-3); }

/* ── 数据胶囊（hero 顶部轮播） ────────────────────────────────── */
.capsule-stage { position: relative; height: 30px; overflow: hidden; }
.capsule {
  position: absolute; inset: 0;
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 14px;
  border: 1px solid var(--line-mid); border-radius: 999px;
  background: transparent;      /* qoder：透明底 */
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  opacity: 0;
  animation: capsuleCycle 9s cubic-bezier(.22, 1, .36, 1) infinite;
}
.capsule:nth-child(2) { animation-delay: 3s; }
.capsule:nth-child(3) { animation-delay: 6s; }
.capsule .cap-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; }
@keyframes capsuleCycle {
  0%      { opacity: 0; transform: translateY(6px); }
  5%, 28% { opacity: 1; transform: translateY(0); }
  33%,100%{ opacity: 0; transform: translateY(-6px); }
}

/* ── Hero 绿底画布 + 流动虚线 ─────────────────────────────────── */
.hero-canvas {
  position: relative;
  background: var(--green);
  border-radius: 0;              /* qoder：无圆角、通栏舞台 */
  overflow: hidden;
  min-height: 560px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 64px 24px;
}
.hero-canvas .flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-canvas .flow-svg path {
  fill: none;
  stroke: hsla(0, 0%, 100%, .5);
  stroke-width: 1.5;
  stroke-dasharray: 8 8;
  animation: dashFlow 13.8s linear infinite, dashBreath 4.8s ease-in-out infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -320; } }
@keyframes dashBreath { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
.hero-canvas .glow {
  position: absolute; left: 50%; top: 42%;
  width: 520px; height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.34), transparent 65%);
  animation: glowBreath 4.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowBreath { 0%,100% { opacity: .9 } 50% { opacity: .5 } }

/* ── 产品演示 mockup（白卡叠在绿画布上） ──────────────────────── */
.demo-window {
  position: relative;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(12, 12, 13, .28);
  overflow: hidden;
  text-align: left;
}
.demo-window .win-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.wd-red { background: #f87171; } .wd-yellow { background: #fbbf24; } .wd-green { background: #34d399; }
.win-title { margin-left: 8px; font-size: 12px; color: var(--ink-3); }

/* mockup 内小卡 */
.mini-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: rgba(12,12,13,.1) 0 1px 2px, rgba(12,12,13,.05) 0 1px 2px;
}
.mini-card.soft { background: var(--bg-soft); box-shadow: none; border-color: var(--line); }

/* 打字机光标 */
.type-cursor::after {
  content: ""; display: inline-block;
  width: 7px; height: 14px; margin-left: 3px;
  background: var(--green-dark); vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0 } }

/* 进度条微动画 */
.bar-anim { animation: barGrow 1.6s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes barGrow { from { width: 0 } }

/* 状态点脉冲 */
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); display: inline-block;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(128,199,118,.5) } 50% { box-shadow: 0 0 0 5px rgba(128,199,118,0) } }

/* ── ShinyText 扫光 ───────────────────────────────────────────── */
.shiny {
  background: linear-gradient(120deg, var(--ink-2) 0%, var(--ink-2) 40%, #fff 50%, var(--ink-2) 60%, var(--ink-2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }

/* ── 卡片（发丝线，无重阴影） ─────────────────────────────────── */
.card-flat {
  background: var(--bg-soft);
  border: 1px solid var(--line);    /* 统一 #e6e6e6 */
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  transition: transform .25s ease, border-color .25s ease;
}
.card-flat:hover { transform: translateY(-5px); border-color: var(--green-border); }
.card-flat.white { background: var(--bg-white); border-color: var(--line); }
.card-flat .icon-wrap {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green-dark);
  margin-bottom: 1rem;
}
.card-flat .icon-wrap svg { width: 20px; height: 20px; }
.card-flat h5 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.card-flat p { color: var(--ink-3); font-size: .9rem; line-height: 1.7; margin: 0; }
.card-flat ul { color: var(--ink-3); font-size: .85rem; line-height: 1.9; }

/* 流光描边（推荐卡） */
.card-flow {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  overflow: hidden;
}
.card-flow::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(120deg, var(--green), var(--green-tint), var(--green-dark), var(--green));
  background-size: 300% 300%;
  animation: borderFlow 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@keyframes borderFlow { 0% { background-position: 0% 50% } 100% { background-position: 300% 50% } }

/* ── 定价 ─────────────────────────────────────────────────────── */
.price-num { font-size: 28px; line-height: 40px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.price-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.price-list li { padding: .45rem 0; color: var(--ink-2); font-size: .9rem; display: flex; gap: .6rem; }
.price-list li .tick { color: var(--green-dark); font-weight: 600; }
.price-list li.off { color: var(--ink-4); }
.price-list li.off .tick { color: var(--ink-4); }

/* ── 数据带 ───────────────────────────────────────────────────── */
/* ── 评价无限滚动 Marquee ───────────────────────────── */
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-white), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-white), transparent); }
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marqueeScroll 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
.quote-card {
  width: 360px; min-height: 218px; flex-shrink: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
}
.quote-card .stars { color: var(--green-dark); font-size: 13px; letter-spacing: 2px; }
.quote-card .quote-text { color: var(--ink); font-size: 15px; line-height: 1.7; flex-grow: 1; margin: 12px 0 16px; }
.quote-card .quote-meta { color: var(--ink-3); font-size: 13px; }

/* ── FAQ（左标题右手风琴） ───────────────────────────── */
.faq-title { font-size: 28px; line-height: 36px; font-weight: 500; color: var(--ink); }
.faq-acc .accordion-item {
  background: transparent; border: none;
  border-bottom: 1px solid var(--line);
}
.faq-acc .accordion-button {
  background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 500;
  padding: 18px 0; box-shadow: none;
}
.faq-acc .accordion-button:not(.collapsed) { color: var(--green-dark); }
.faq-acc .accordion-button::after { filter: grayscale(1) opacity(.6); }
.faq-acc .accordion-body { color: var(--ink-3); font-size: 14px; line-height: 1.8; padding: 0 0 18px; }

/* ── 对比表 ─────────────────────────────────────────── */
.compare-table { font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 16px; border-color: var(--line); vertical-align: middle; }
.compare-table thead th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.compare-table tbody td:first-child { color: var(--ink-3); }

.stat-num { font-size: 2.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.stat-sep {
  width: 1px; align-self: stretch;
  background: repeating-linear-gradient(180deg, var(--line-mid) 0 5px, transparent 5px 10px);
}

/* ── 页脚 ─────────────────────────────────────────────────────── */
footer {
  background: var(--bg-white);
  color: var(--ink-3);
  padding: 84px 0 36px;
}
footer .slogan { font-size: 32px; line-height: 42px; font-weight: 500; color: var(--ink); }
footer a { color: var(--ink-3) !important; }
footer a:hover { color: var(--ink) !important; }
footer .foot-title { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
footer .foot-link { display: block; font-size: .95rem; padding: .34rem 0; color: var(--ink-3); }

/* ── 通用工具 ─────────────────────────────────────────────────── */
.bg-white-section { background: var(--bg-white); }
.border-hairline { border-color: var(--line) !important; }
.text-ink { color: var(--ink); }
.text-ink-3 { color: var(--ink-3); }
.text-green-dark { color: var(--green-dark); }
.font-mono { font-family: var(--font-mono); }

/* ── 业务闭环流程 ─────────────────────────────────────────────── */
.loop-step { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.loop-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-dark);
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.loop-label { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.loop-arrow { font-size: 18px; color: var(--green); font-weight: 500; line-height: 1; padding-top: 2px; }

/* ── 文档页 ─────────────────────────────────────────────────── */
.docs-nav { position: sticky; top: 80px; }
.docs-nav-link {
  display: block; padding: 8px 12px; margin-bottom: 2px;
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  border-radius: 8px; transition: all .15s;
}
.docs-nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.docs-nav-link.active { background: var(--green-tint); color: var(--green-dark); font-weight: 500; }

.docs-content h2 { font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.docs-content p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-bottom: 12px; }
.docs-content ul, .docs-content ol { font-size: 15px; line-height: 1.8; color: var(--ink-2); padding-left: 20px; margin-bottom: 16px; }
.docs-content li { margin-bottom: 6px; }
.docs-content strong { color: var(--ink); font-weight: 500; }

/* ── 下载页 ─────────────────────────────────────────────────── */
.dl-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-dark);
  font-size: 13px; font-weight: 500;
}
.dl-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--green-tint); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.dl-requirements {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 20px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
}
.dl-req-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }

.dl-step { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.dl-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-tint); color: var(--green-dark);
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.dl-step-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; color: var(--ink-2);
}
.dl-step-text { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

.dl-changelog { max-width: 640px; margin: 0 auto; }
.dl-cl-version { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dl-cl-tag {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  background: var(--green-tint); color: var(--green-dark);
  font-size: 13px; font-weight: 600;
}
.dl-changelog ul { padding-left: 20px; margin-bottom: 0; }
.dl-changelog li { font-size: 14px; line-height: 1.8; color: var(--ink-2); margin-bottom: 4px; }
