/* 百切官网 - 设计规范：干净、新鲜、食欲感、专业。多端自适应：手机 / 平板 / PC */

:root {
  --color-primary: #C45C26;
  --color-primary-alt: #8B6914;
  --color-bg: #FAFAF8;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B6B;
  --font-heading: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --container-max: 1200px;
  --header-h: 64px;
  /* 液态/有机风格：略大圆角，柔和过渡 */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.08);
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
  /* Linear 风：极细描边、区块标题装饰线、轻微外发光 */
  --accent-line: 3px solid var(--color-primary);
  --border-thin: 1px solid rgba(44, 44, 44, 0.08);
  --glow-primary: 0 0 0 1px rgba(196, 92, 38, 0.2), 0 4px 12px rgba(196, 92, 38, 0.15);
  --bp-mobile: 767px;
  --bp-tablet: 1024px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-top: 0;
  padding-bottom: 0;
}
img { max-width: 100%; height: auto; vertical-align: middle; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0);
  background: #fff;
  box-shadow: var(--shadow);
  border-bottom: var(--border-thin);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232C2C2C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/24px no-repeat;
  cursor: pointer;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.nav-list a {
  padding: 8px 14px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-list a:hover, .nav-list a.active { background: rgba(196,92,38,.1); color: var(--color-primary); }
.nav-list a { transition: background var(--transition), color var(--transition); }
.logo { transition: opacity var(--transition); }
.logo:hover { opacity: .85; }

/* ---------- 平板（768px ~ 1023px） ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .advantages { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 32px 0; }
  .page-section { padding: 36px 0; }
  .section-title { font-size: 1.5rem; }
  .franchise-cta { padding: 44px 24px; }
  .franchise-cta h2 { font-size: 1.35rem; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .products-strip .top-image { height: 180px; }
  .concepts-grid { grid-template-columns: repeat(2, 1fr); }
  .franchise-advantages .item { grid-template-columns: 1fr 260px; gap: 20px; padding: 28px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .page-banner { height: 240px; }
  .banner-title { font-size: 1.5rem; padding: 28px 0 12px; }
}

/* ---------- 手机（小于 768px） ---------- */
@media (max-width: 767px) {
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav.open { max-height: 80vh; }
  .nav-list { flex-direction: column; padding: 12px; gap: 0; }
  .nav-list a { padding: 14px 16px; min-height: 44px; display: flex; align-items: center; }
  .logo { font-size: 1.25rem; }
  .page-section { padding: 28px 0; }
  .section-title { font-size: 1.35rem; margin-bottom: 10px; }
  .section-subtitle { font-size: 0.9375rem; margin-bottom: 20px; }
  .advantage-card { padding: 20px 16px; }
  .products-strip .top-image { height: 160px; margin-bottom: 20px; }
  .franchise-cta { padding: 36px 16px; }
  .franchise-cta h2 { font-size: 1.25rem; }
  .franchise-cta p { font-size: 0.9375rem; margin-bottom: 16px; }
  .franchise-cta .btn { padding: 14px 28px; min-height: 48px; font-size: 1rem; }
  .site-footer { padding: 32px 16px; margin-top: 36px; }
  .site-footer p { font-size: 0.8125rem; }
  .banner-title { font-size: 1.35rem; padding: 24px 0 12px; }
  .contact-form input, .contact-form textarea, .contact-form button { min-height: 48px; padding: 12px 14px; }
  .contact-form button { min-height: 48px; }
}

/* Main */
.main-content { min-height: calc(100vh - var(--header-h) - 200px); }

/* Sections（线性风格：标题下 accent 线） */
.page-section { padding: 48px 0; }
.section-title {
  font-size: 1.75rem;
  margin: 0 0 12px;
  padding-bottom: 12px;
  color: var(--color-text);
  font-family: var(--font-heading);
  border-bottom: var(--accent-line);
  display: inline-block;
}
.section-subtitle { font-size: 1rem; color: var(--color-text-muted); margin: 0 0 24px; }

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1920/1080;
  max-height: 90vh;
  overflow: hidden;
  background: var(--color-primary-alt);
}
@media (max-width: 767px) { .carousel { aspect-ratio: 750/1334; max-height: 70vh; } }
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  padding: 0 20px;
}
.carousel-caption h2 { font-size: clamp(1.25rem, 4vw, 2rem); margin: 0 0 8px; }
.carousel-caption p { font-size: clamp(0.875rem, 2.5vw, 1.125rem); margin: 0; opacity: .95; }
.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.carousel-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.carousel-dots span.active { background: #fff; }
@media (max-width: 767px) {
  .carousel-caption { padding: 0 16px; bottom: 12%; }
  .carousel-dots { bottom: max(16px, env(safe-area-inset-bottom)); }
  .carousel-dots span { width: 10px; height: 10px; padding: 9px; margin: -9px; box-sizing: content-box; border-radius: 50%; }
}

/* 液态过渡：轮播与首屏内容之间的柔和曲线（仅首页） */
.carousel + .page-section {
  position: relative;
  overflow: hidden;
}
.carousel + .page-section::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -10%;
  width: 120%;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(250,250,248,.6) 50%, var(--color-bg) 100%);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

/* Advantages grid（液态：大圆角 + 柔和 hover） */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
@media (max-width: 767px) { .advantages { grid-template-columns: 1fr; } }
.advantage-card {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: var(--border-thin);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.advantage-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(196, 92, 38, 0.15);
}
.advantage-icon { width: 60px; height: 60px; margin: 0 auto 12px; color: var(--color-primary); }
.advantage-card h3 { font-size: 1.125rem; margin: 0 0 8px; color: var(--color-text); }
.advantage-card p { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }

/* Products strip */
.products-strip .top-image { width: 100%; max-width: 800px; margin: 0 auto 24px; display: block; height: 200px; object-fit: cover; border-radius: var(--radius); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; justify-items: center; }
.products-grid .product-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 12px;
  transition: background var(--transition), box-shadow var(--transition);
}
.products-grid .product-card:hover {
  background: rgba(196,92,38,.06);
  box-shadow: var(--shadow);
}
.products-grid .product-card img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: opacity var(--transition); }
.products-grid .product-card:hover img { opacity: .95; }
.products-grid .product-card span { display: block; margin-top: 8px; font-weight: 500; color: var(--color-text); }
@media (max-width: 767px) { .products-grid .product-card img { max-width: 200px; } }

/* CTA block */
.franchise-cta {
  padding: 56px 24px;
  text-align: center;
  background: var(--color-primary-alt) center/cover;
  color: #fff;
  position: relative;
}
.franchise-cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.franchise-cta .cta-inner { position: relative; z-index: 1; }
.franchise-cta h2 { font-size: 1.5rem; margin: 0 0 8px; }
.franchise-cta p { margin: 0 0 20px; opacity: .95; }
.franchise-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(196, 92, 38, 0.25);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.franchise-cta .btn:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: var(--glow-primary);
}
.franchise-cta .btn:focus-visible {
  outline: none;
  box-shadow: var(--glow-primary);
}

/* Page banner */
.page-banner {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--color-primary-alt);
}
@media (max-width: 767px) { .page-banner { height: 200px; } }
.banner-title { padding: 32px 0 16px; text-align: center; font-size: 1.75rem; margin: 0; }

/* Brand / text-image sections */
.text-image-section { padding: 40px 0; display: grid; gap: 24px; align-items: start; }
.text-image-section.image-right { grid-template-columns: 1fr 1fr; }
.text-image-section.image-right .text { order: 1; }
.text-image-section.image-right .img-wrap { order: 2; }
.text-image-section.image-bottom { grid-template-columns: 1fr; }
.text-image-section .img-wrap img { width: 100%; border-radius: var(--radius); }
@media (max-width: 767px) {
  .text-image-section.image-right { grid-template-columns: 1fr; }
  .text-image-section.image-right .img-wrap { order: 1; }
  .text-image-section.image-right .text { order: 2; }
}

/* Concepts grid */
.concepts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 767px) { .concepts-grid { grid-template-columns: repeat(2, 1fr); } }
.concept-item { padding: 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.concept-item strong { display: block; color: var(--color-primary); margin-bottom: 6px; }

/* Franchise advantages list */
.franchise-advantages .item { padding: 32px 0; display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; border-bottom: 1px solid #eee; }
.franchise-advantages .item:last-child { border-bottom: none; }
.franchise-advantages .item img { width: 100%; border-radius: var(--radius); }
.franchise-advantages .item ul { margin: 12px 0 0; padding-left: 20px; color: var(--color-text-muted); font-size: 0.9375rem; }
@media (max-width: 767px) { .franchise-advantages .item { grid-template-columns: 1fr; } .franchise-advantages .item .img-wrap { order: -1; } }

/* Steps */
.steps-list { counter-reset: step; padding: 24px 0; }
.steps-list .step { position: relative; padding-left: 56px; padding-bottom: 28px; }
.steps-list .step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; }
.steps-list .step h3 { margin: 0 0 6px; font-size: 1.125rem; }
.steps-list .step p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }

.franchise-apply-cta { text-align: center; padding: 8px 0 40px; }
.franchise-apply-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(196, 92, 38, 0.25);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.franchise-apply-cta .btn:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: var(--glow-primary);
}
.franchise-apply-cta .btn:focus-visible {
  outline: none;
  box-shadow: var(--glow-primary);
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 24px 0; }
.gallery img { width: 100%; aspect-ratio: 6/4; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 8px; font-size: 0.875rem; color: var(--color-text-muted); }

/* Contact */
.contact-block { padding: 32px 0; }
.contact-block p { margin: 0 0 12px; }
.contact-form { max-width: 480px; margin-top: 24px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: var(--border-thin);
  border-radius: var(--radius);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.12);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form button {
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), box-shadow var(--transition);
}
.contact-form button:hover { opacity: .9; box-shadow: var(--glow-primary); }
.contact-form button:focus-visible { outline: none; box-shadow: var(--glow-primary); }
.form-message { margin-top: 12px; font-size: 0.875rem; }

/* Footer */
.site-footer {
  background: #2C2C2C;
  color: #fff;
  padding: 40px 20px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  text-align: center;
  margin-top: 48px;
}
.site-footer p { margin: 0 0 8px; font-size: 0.875rem; opacity: .9; }
.site-footer .footer-slogan { font-weight: 600; font-size: 1rem; }
.site-footer .footer-icp a { color: inherit; text-decoration: underline; opacity: .9; }
.site-footer .footer-icp a:hover { opacity: 1; }

/* 尊重用户「减少动效」设置（UX 无障碍） */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .advantage-card,
  .products-grid .product-card,
  .products-grid .product-card img,
  .franchise-cta .btn,
  .nav-list a,
  .logo { transition: none; }
  .advantage-card:hover { transform: none; }
  .franchise-cta .btn:hover { transform: none; }
}

/* Utilities */
.hide { display: none !important; }
