/* 吉吉集市 · 品牌官网 jijijishi.com */

:root {
  --color-brand: #ea580c;
  --color-brand-dark: #9a3412;
  --color-brand-light: #fff7ed;
  --color-accent: #f97316;
  --color-text: #292524;
  --color-text-muted: #78716c;
  --color-border: #fed7aa;
  --color-surface: #ffffff;
  --color-bg: #fffbf5;
  --shadow-sm: 0 2px 8px rgba(154, 52, 18, 0.06);
  --shadow-md: 0 12px 40px rgba(154, 52, 18, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1120px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.brand-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-brand-dark);
}

.brand-text span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-brand-dark);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--color-brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.34);
}

.btn-outline {
  background: var(--color-surface);
  color: var(--color-brand-dark);
  border: 1px solid var(--color-border);
}

.btn-ghost {
  background: transparent;
  color: var(--color-brand-dark);
  border: 1px solid transparent;
}

.btn-wecom-kf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.24);
}

.btn-wecom-kf:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.32);
}

.btn-wecom-kf-icon,
.kf-float-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-kf-link {
  color: #06ad56;
  font-weight: 600;
}

.hero-kf-hint {
  margin: -16px 0 32px;
  max-width: 540px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.kf-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(7, 193, 96, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.kf-float:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(7, 193, 96, 0.42);
}

.kf-float-text {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.cta .btn-wecom-kf {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.cta .btn-wecom-kf:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.18), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(254, 215, 170, 0.55), transparent 38%),
    linear-gradient(180deg, var(--color-brand-light) 0%, var(--color-bg) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-brand-dark);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-item strong {
  display: block;
  font-size: 22px;
  color: var(--color-brand-dark);
}

.stat-item span {
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-brand-light);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.hero-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brand-dark);
}

.hero-card-sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffaf5;
  font-size: 14px;
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffedd5;
  color: var(--color-brand);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: linear-gradient(180deg, #fff 0%, var(--color-brand-light) 100%);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--color-brand-dark);
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 17px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--color-brand-light);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--color-brand-dark);
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Split panels */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.panel {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.panel-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.panel-tag-consumer {
  background: #dcfce7;
  color: #166534;
}

.panel-tag-vendor {
  background: #ffedd5;
  color: #9a3412;
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--color-brand-dark);
}

.panel > p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--color-text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  opacity: 0.85;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  text-align: center;
  padding: 24px 16px;
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
}

.step h4 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--color-brand-dark);
}

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* CTA */
.cta {
  padding: 64px 0 88px;
}

.cta-box {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
}

.cta-box p {
  margin: 0 auto 28px;
  max-width: 520px;
  font-size: 17px;
  opacity: 0.92;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--color-brand-dark);
  box-shadow: none;
}

.cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--color-brand-dark);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #f5f5f4;
  font-size: 13px;
  color: #a8a29e;
}

.footer-beian {
  color: #a8a29e;
  text-decoration: none;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
}

.footer-alipay-pay {
  color: #a8a29e;
}

.footer-beian:hover {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split-grid,
  .cards-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(255, 251, 245, 0.98);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-links .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .section {
    padding: 56px 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}
