/* 小当家食谱站 · 官网首页样式（零外部依赖，暖橙灶火 + 深蓝工程质感） */
:root {
  --bg: #fffdfb;
  --bg-alt: #f8f6f3;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --border: #e7e5e4;
  --brand: #ea580c;
  --brand-light: #fb923c;
  --brand-dark: #c2410c;
  --brand-soft: #fff7ed;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.88em;
  background: rgba(234, 88, 12, 0.09);
  color: var(--brand-dark);
  padding: 2px 6px;
  border-radius: 6px;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 251, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
}

.nav-brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.nav-brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.36);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--brand-light);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15.5px;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 44px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 440px;
  height: 440px;
  background: rgba(251, 146, 60, 0.18);
  top: -120px;
  left: -80px;
}

.hero-glow-2 {
  width: 420px;
  height: 420px;
  background: rgba(234, 88, 12, 0.12);
  top: 40px;
  right: -100px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid #fed7aa;
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18);
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-gradient {
  background: linear-gradient(135deg, #f97316, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 18px 0 26px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Interactive Showcase Window */
.showcase-shell {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 20px;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase-topbar {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.showcase-dots {
  display: flex;
  gap: 6px;
}

.showcase-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.showcase-dots span:nth-child(1) { background: #ef4444; }
.showcase-dots span:nth-child(2) { background: #f59e0b; }
.showcase-dots span:nth-child(3) { background: #22c55e; }

.showcase-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.showcase-tab {
  border: 1px solid #334155;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.showcase-tab:hover {
  border-color: #fb923c;
  color: #fff;
}

.showcase-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.showcase-panel {
  display: none;
  padding: 18px;
  min-height: 280px;
}

.showcase-panel.active {
  display: block;
}

.chat-bubble {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
}

.chat-user {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 600;
  width: fit-content;
  margin-left: auto;
  margin-bottom: 12px;
}

.chat-agent {
  background: #1e293b;
  border: 1px solid #334155;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tag-orange {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
}

.demo-list {
  margin: 0 0 10px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #e2e8f0;
  font-size: 12.5px;
}

.chat-guardrail {
  padding-top: 8px;
  border-top: 1px dashed #334155;
  font-size: 11.5px;
  color: #86efac;
}

.chat-guardrail code {
  background: rgba(255, 255, 255, 0.1);
  color: #fde68a;
}

.mini-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.mini-card-sub {
  font-size: 12px;
  color: #94a3b8;
}

.mini-badge {
  font-size: 11px;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.mini-ingredients {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.mini-ingredients span {
  display: inline-block;
  min-width: 40px;
  margin-right: 8px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(251, 146, 60, 0.18);
  color: #fdba74;
  text-align: center;
}

.mini-pitfall {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #fde68a;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.mini-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-timeline span {
  font-size: 11.5px;
  color: #cbd5e1;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 3px 8px;
  border-radius: 7px;
}

.mini-graph-stage {
  background: radial-gradient(circle at center, #1e293b 0%, #0b1120 100%);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 8px;
}

.mini-graph-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mini-graph-foot {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* Live Stats Strip */
.stats-strip {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
  padding: 4px 10px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #fed7aa;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #fdba74;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.icon-orange { background: #fff7ed; }
.icon-indigo { background: #eef2ff; }
.icon-emerald { background: #ecfdf5; }
.icon-cyan { background: #ecfeff; }
.icon-amber { background: #fffbeb; }
.icon-rose { background: #fff1f2; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 4-Step Pipeline */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.step-num {
  font-size: 28px;
  font-weight: 900;
  color: rgba(234, 88, 12, 0.25);
  line-height: 1;
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* MCP Highlight Split */
.mcp-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.mcp-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.25;
}

.mcp-copy p {
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffedd5;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.mcp-tools-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-lg);
}

.mcp-tools-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1e293b;
}

.pill-green {
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
}

.mcp-tool-row {
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mcp-tool-row:last-child {
  margin-bottom: 0;
}

.mcp-tool-row code {
  background: transparent;
  color: #fdba74;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
}

.mcp-tool-row span {
  font-size: 12.5px;
  color: #94a3b8;
}

/* Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.compare-card-featured {
  border: 2px solid var(--brand);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%);
  box-shadow: var(--shadow-md);
}

.compare-label {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.compare-label.muted {
  color: var(--muted);
}

.compare-label.featured {
  color: var(--brand-dark);
}

.compare-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Bottom CTA */
.bottom-cta {
  padding: 64px 0;
}

.cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #7c2d12 100%);
  color: #fff;
  border-radius: 22px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.cta-box p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14.5px;
  max-width: 620px;
}

.btn-cta-white {
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn-cta-white:hover {
  background: #fff7ed;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Login Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 26px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  font-size: 15px;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-brand {
  text-align: center;
  margin-bottom: 22px;
}

.modal-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.34);
  margin-bottom: 10px;
}

.modal-brand h2 {
  margin: 0;
  font-size: 22px;
}

.modal-brand p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.modal-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  outline: none;
}

.modal-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
}

.modal-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-pwd-wrap input {
  padding-right: 40px;
}

.modal-eye {
  position: absolute;
  right: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.65;
}

.modal-eye:hover {
  opacity: 1;
}

.modal-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-error {
  padding: 9px 12px;
  border-radius: 9px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .mcp-split {
    grid-template-columns: 1fr;
  }
  .bento-grid,
  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item + .stat-item {
    border-left: 0;
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .bento-grid,
  .compare-grid,
  .steps-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 36px;
  }
}
