/* =========================================================
   栗子来了 · 品牌官网模板样式
   轻代码静态站 · 可直接部署到阿里云 OSS + CDN
   修改品牌色：改下面 :root 里的 --primary / --accent 即可
   ========================================================= */

:root {
  --primary: #FF4F14;        /* 主色：品牌橙（CMYK C:0 M:69 Y:92 K:0） */
  --primary-dark: #e5430e;
  --accent: #17B500;         /* 辅助色：品牌绿（CMYK C:91 M:29 Y:100 K:0） */
  --bg: #fffdf9;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --border: #f0e9e0;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: 1px; display: flex; align-items: center; }
.logo img { height: 38px; width: auto; display: block; }
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(255,107,53,.3); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 0%, #fff0e6 0%, var(--bg) 55%);
  padding: 80px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 800; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p { font-size: 18px; color: var(--muted); margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  border-radius: 24px; min-height: 320px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 84px; box-shadow: var(--shadow);
}
.stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--primary); }
.stat .label { font-size: 14px; color: var(--muted); }

/* ---------- 通用 section ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 2px; font-size: 13px; }
.section-head h2 { font-size: 34px; margin: 10px 0; }
.section-head p { color: var(--muted); }

/* ---------- 卖点卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow); transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .ico { font-size: 38px; }
.feature-card h3 { font-size: 18px; margin: 12px 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- 产品/品类 ---------- */
.sign-products-banner { margin-bottom: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.sign-products-banner img { width: 100%; height: auto; display: block; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.product-card .thumb {
  height: 170px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #aed581);
}
.product-card:nth-child(2) .thumb { background: linear-gradient(135deg, var(--primary), #ffb088); }
.product-card:nth-child(3) .thumb { background: linear-gradient(135deg, #ffca28, #ff8f00); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .body { padding: 18px 20px; }
.product-card h3 { font-size: 17px; }
.product-card p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- 门店 ---------- */
.store-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.map-box {
  border-radius: var(--radius); overflow: hidden; min-height: 420px; border: 1px solid var(--border);
  background: #eef3ee; display: flex; align-items: center; justify-content: center; color: var(--muted);
  text-align: center; padding: 20px; font-size: 14px;
}
.city-group { margin-bottom: 22px; }
.city-group h3 { font-size: 17px; color: var(--primary); margin-bottom: 10px; }
.store-item { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.store-item b { font-size: 15px; }
.store-item span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* 门店轮播 */
.stores-page { background: linear-gradient(180deg, var(--bg) 0%, #fff7f1 100%); }
.store-carousel { position: relative; max-width: 900px; margin: 0 auto; user-select: none; }
.store-slides { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.store-slide { display: none; animation: fadeIn .35s ease; }
.store-image-wrap { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: #f6f6f6; overflow: hidden; }
.store-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-caption { padding: 20px 24px; display: flex; align-items: center; gap: 12px; background: #fff; }
.store-caption .store-city {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--accent); color: #fff;
}
.store-caption h3 { font-size: 20px; font-weight: 700; }
.store-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.95); color: var(--primary); font-size: 28px; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .2s; z-index: 10;
}
.store-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.store-prev { left: -24px; }
.store-next { right: -24px; }
.store-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.store-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: #d9d9d9; cursor: pointer;
  transition: background .2s, transform .2s;
}
.store-dot.active { background: var(--primary); transform: scale(1.25); }
@keyframes fadeIn { from { opacity: .6; } to { opacity: 1; } }

/* ---------- 招商加盟 ---------- */
.franchise { background: linear-gradient(180deg, #fff7f1 0%, var(--bg) 100%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; position: relative; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 20px; width: 34px; height: 34px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.step h3 { font-size: 16px; margin: 12px 0 6px; }
.step p { font-size: 13px; color: var(--muted); }

.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.adv { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.adv .ico { font-size: 26px; }
.adv b { font-size: 15px; }
.adv p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- 表单 ---------- */
.lead-form { max-width: 560px; margin: 30px auto 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.lead-form label { display: block; font-size: 14px; margin: 14px 0 6px; font-weight: 600; }
.lead-form input, .lead-form textarea, .lead-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fafafa;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.lead-form .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.note {
  max-width: 760px; margin: 18px auto 0; background: #fff8f0; border: 1px dashed var(--primary);
  border-radius: 12px; padding: 16px 18px; font-size: 14px; color: #8a4b1f;
}

/* ---------- CTA 横幅 ---------- */
.cta-band { background: var(--primary); color: #fff; text-align: center; border-radius: 24px; padding: 48px 24px; }
.cta-band h2 { font-size: 30px; }
.cta-band p { opacity: .92; margin: 10px 0 22px; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--primary); }

/* ---------- 页脚 ---------- */
.site-footer { background: #2b2b2b; color: #cfcfcf; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a, .site-footer p { font-size: 14px; color: #b8b8b8; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #3d3d3d; margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8a8a8a; text-align: center; }
.icp-link { color: #b8c4b8; text-decoration: none; border-bottom: 1px solid rgba(184,196,184,.5); }
.icp-link:hover { color: #d6e4d6; border-bottom-color: #d6e4d6; }
.footer-social { text-align: center; margin-top: 24px; }
.footer-social img { max-height: 220px; width: auto; border-radius: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid, .store-layout { grid-template-columns: 1fr; }
  .feature-grid, .product-grid, .steps, .advantages { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .store-prev { left: 10px; }
  .store-next { right: 10px; }
}
@media (max-width: 600px) {
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; width: 100%; }
  .nav-toggle { display: flex; }
  .feature-grid, .product-grid, .steps, .advantages, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  section { padding: 52px 0; }
}
