/* ===== 来客胖胖 · 餐饮 SaaS 官网样式 ===== */

:root {
  --brand-blue: #0047e1;
  --brand-blue-light: #1a6bff;
  --brand-blue-dark: #0035b0;
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --bg-dark: #050a18;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 71, 225, 0.4);
  --text-primary: #f0f4ff;
  --text-secondary: rgba(240, 244, 255, 0.65);
  --text-muted: rgba(240, 244, 255, 0.4);
  --gradient-brand: linear-gradient(135deg, #0047e1 0%, #00d4ff 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
  --shadow-glow: 0 0 60px rgba(0, 71, 225, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font: 'Noto Sans SC', 'Inter', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ===== 背景 ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 71, 225, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 225, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 71, 225, 0.18);
  top: -200px;
  right: -100px;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  background: rgba(0, 212, 255, 0.1);
  bottom: 10%;
  left: -150px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 71, 225, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 71, 225, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
}

.btn--outline:hover {
  background: rgba(0, 71, 225, 0.1);
  border-color: var(--brand-blue-light);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ===== 导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.nav__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav__menu {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

.nav__actions {
  display: flex;
  gap: 12px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.hero__stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
}

.hero__stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Dashboard 可视化 */
.hero__visual {
  position: relative;
}

.dashboard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
}

.dashboard__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.dashboard__dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dashboard__dots span:nth-child(1) { background: #ff5f57; }
.dashboard__dots span:nth-child(2) { background: #febc2e; }
.dashboard__dots span:nth-child(3) { background: #28c840; }

.dashboard__title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dashboard__body {
  padding: 24px;
}

.dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.metric-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-card__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 4px 0;
}

.metric-card__trend {
  font-size: 0.75rem;
}

.metric-card__trend.up { color: #28c840; }

.dashboard__chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  margin-bottom: 12px;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: var(--gradient-brand);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  animation: barGrow 1.2s ease-out backwards;
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }
.chart-bar:nth-child(6) { animation-delay: 0.6s; }
.chart-bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes barGrow {
  from { height: 0; }
}

.chart-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(5, 10, 24, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--cyan);
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite;
}

.hero__float svg { flex-shrink: 0; }

.hero__float--1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.hero__float--2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== 合作伙伴 ===== */
.partners {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.partners__label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.partners__track {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.partners__track span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  opacity: 0.6;
  white-space: nowrap;
}

/* ===== Section 通用 ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section--dark {
  background: rgba(0, 0, 0, 0.25);
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 核心能力 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--cyan);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 产品矩阵 ===== */
.products-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.products-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.products-tab {
  flex: 1;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.products-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.products-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}

.products-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.products-panel.active {
  display: grid;
}

.products-panel__info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.products-panel__info ul {
  margin-bottom: 28px;
}

.products-panel__info li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.products-panel__info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}

.code-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-block__header {
  padding: 10px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  font-family: 'Consolas', monospace;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  font-family: 'Consolas', 'Courier New', monospace;
}

.code-kw { color: #c792ea; }
.code-str { color: #c3e88d; }
.code-num { color: #f78c6c; }
.code-cmt { color: var(--text-muted); }

/* ===== 行业方案 ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition);
}

.solution-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.solution-card:hover::before { opacity: 1; }

.solution-card__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(0, 71, 225, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 数据统计 ===== */
.section--stats {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 71, 225, 0.08), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-block strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-block span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== 关于 ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__content p {
  color: var(--text-secondary);
  margin: 20px 0 28px;
  line-height: 1.8;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about__tags span {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.about__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__logo {
  width: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.cta__inner {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--shadow-glow);
}

.cta__inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta__inner > p {
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.cta__form {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta__form input {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.cta__form input::placeholder {
  color: var(--text-muted);
}

.cta__form input:focus {
  border-color: var(--brand-blue-light);
  box-shadow: 0 0 0 3px rgba(0, 71, 225, 0.15);
}

/* ===== 页脚 ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  background: rgba(0, 0, 0, 0.3);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer__logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer__links a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--cyan);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero__inner,
  .about,
  .products-panel.active {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__visual {
    order: -1;
  }

  .hero__float { display: none; }

  .about__visual { order: -1; }
}

@media (max-width: 768px) {
  .nav__menu,
  .nav__actions {
    display: none;
  }

  .nav__toggle { display: flex; }

  .nav__menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(5, 10, 24, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .features-grid,
  .solutions-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard__metrics {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    gap: 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cta__form {
    flex-direction: column;
  }

  .cta__form input,
  .cta__form .btn {
    width: 100%;
  }
}
