/*
Theme Name: 三山七绝
Theme URI: https://www.337jue.com
Description: 三山七绝官方主题 - 苹果风格 · 红白色调
Version: 4.1
Author: 337jue
*/

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #1d1d1f;
  --gray: #86868b;
  --light-gray: #f5f5f7;
  --white: #ffffff;
  --red: #C41E24;
  --red-dark: #A31818;
  --red-light: #E53935;
  --red-pale: #FFF5F5;
  --red-gradient: linear-gradient(135deg, #C41E24, #E53935);
  --gold: #c8a45a;
  --font-main: "SF Pro Display", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== Content Protection ========== */
img, video, canvas {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}
.video-section {
  position: relative;
}
.video-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 2;
}

/* ========== Hero Video ========== */
.hero-video-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px;
  box-sizing: border-box;
}
.hero-video-stage {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 6px rgba(196,30,36,0.06), 0 8px 40px rgba(0,0,0,0.12);
}
.hero-video-stage video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  background: #000;
}
@media (max-width: 768px) {
  .hero-video-section {
    max-width: 100%;
    padding: 12px 16px;
  }
  .hero-video-stage {
    border-radius: 14px;
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(196,30,36,0.08), 0 4px 20px rgba(0,0,0,0.1);
  }
  .hero-video-stage video {
    max-height: 38vh;
  }
}

/* ========== Navigation ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; padding: 0 32px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.navbar.nav-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 24px; font-weight: 700; color: var(--black); text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0; transition: transform 0.3s ease; }
.nav-logo:hover { transform: scale(1.02); }
.nav-logo span { color: var(--red); font-weight: 800; }

/* 桌面菜单 */
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  font-size: 15px; color: var(--black); text-decoration: none; opacity: 0.75;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; padding: 4px 0;
}
.nav-links > li > a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--red); border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links > li > a:hover { opacity: 1; }
.nav-links > li > a:hover::after { width: 100%; }
.nav-cta-wrap { margin-left: 8px; }
.nav-cta {
  display: inline-block; background: var(--red); color: var(--white) !important;
  padding: 10px 22px; border-radius: 980px; font-size: 14px !important;
  font-weight: 600; opacity: 1 !important; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(196,30,36,0.2);
}
.nav-cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,30,36,0.35);
}

/* 汉堡按钮 */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 28px; position: relative; padding: 0; z-index: 1001; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--black); border-radius: 1px; position: absolute; left: 4px; transition: all 0.3s ease; }
.nav-toggle span:nth-child(1) { top: 7px; }
.nav-toggle span:nth-child(2) { top: 13px; }
.nav-toggle span:nth-child(3) { top: 19px; }
.nav-toggle.active span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

/* ========== 手机菜单 ========== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; left: 0;
    width: 100%; min-height: 100vh; min-height: 100dvh;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
    gap: 1px; padding: 60px 24px 16px;
    margin: 0; list-style: none;
    transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-sizing: border-box;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li { width: 100%; text-align: center; }
  .nav-links > li > a {
    display: block; font-size: 18px; font-weight: 600; color: var(--black);
    padding: 10px 20px; opacity: 0.9; letter-spacing: -0.01em;
    border-radius: 14px; transition: all 0.2s;
  }
  .nav-links > li > a:active { background: rgba(196,30,36,0.08); color: var(--red); }
  .nav-cta-wrap { margin-top: 4px; width: 100%; }
  .nav-cta {
    display: block !important; width: 75%; margin: 0 auto; text-align: center;
    padding: 10px 20px !important; font-size: 15px !important; border-radius: 14px;
    background: var(--red); color: var(--white) !important;
  }
}

/* 平板：缩小间距 */
@media (min-width: 769px) and (max-width: 900px) {
  .nav-links { gap: 16px; }
  .nav-links > li > a { font-size: 12px; }
  .nav-cta { padding: 4px 10px; font-size: 11px !important; }
}

/* ========== Hero ========== */
.hero {
  min-height: 600px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 100px 24px 60px;
  background: linear-gradient(180deg, #FFF5F5 0%, #fff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196,30,36,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { font-size: 14px; font-weight: 500; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(40px,8vw,72px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--black); margin-bottom: 16px; }
.hero h1 .brand { color: var(--red); }
.hero p { font-size: clamp(16px,2.5vw,21px); color: var(--gray); max-width: 600px; line-height: 1.4; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: var(--white);
  padding: 14px 28px; border-radius: 980px; font-size: 15px; font-weight: 500;
  text-decoration: none; transition: all 0.25s ease; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(196,30,36,0.25); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--red);
  padding: 14px 28px; border-radius: 980px; font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1.5px solid var(--red); transition: all 0.25s ease;
}
.btn-secondary:hover { background: var(--red); color: var(--white); transform: translateY(-1px); }

/* ========== Sections ========== */
.section { padding: 80px 24px; }
.section-alt { background: var(--light-gray); }
.section-red { background: linear-gradient(135deg, var(--red), var(--red-light)); color: var(--white); }
.section-center { text-align: center; }
.section-eyebrow { font-size: 13px; font-weight: 500; color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.section-eyebrow-light { color: rgba(255,255,255,0.7); }
.section-title { font-size: clamp(28px,5vw,44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--black); margin-bottom: 12px; }
.section-title-light { color: var(--white); }
.section-subtitle { font-size: 18px; color: var(--gray); max-width: 600px; margin: 0 auto 48px; line-height: 1.5; }
.section-subtitle-light { color: rgba(255,255,255,0.85); }
.container { max-width: var(--max-width); margin: 0 auto; }

/* ========== Products Grid ========== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.product-card {
  background: var(--white); border-radius: 20px; padding: 32px; text-align: center;
  transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.06);
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,var(--red),var(--red-light)); opacity: 0; transition: opacity 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 64px; height: 64px; background: var(--light-gray); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 28px; transition: transform 0.3s;
}
.product-card:hover .product-icon { transform: scale(1.1); }
.product-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.product-card p { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ========== Halogen Hero Product Cards ========== */
.hero-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 40px auto 0;
}
.hero-product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
}
.hero-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(196,30,36,0.15);
}
.hero-product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.hero-product-card .hp-info {
  padding: 16px 12px;
}
.hero-product-card .hp-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--black);
}
.hero-product-card .hp-info p {
  font-size: 12px;
  color: var(--gray);
}
.hero-product-card .hp-tag {
  display: inline-block;
  background: var(--red-pale);
  color: var(--red);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 980px;
  margin-top: 8px;
}

/* ========== Brand Story ========== */
.brand-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.brand-story.reverse { direction: rtl; }
.brand-story.reverse > * { direction: ltr; }
.brand-story-text h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.brand-story-text p { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.brand-story-visual {
  background: linear-gradient(135deg,var(--light-gray),#e8e8ed); border-radius: 24px;
  height: 320px; display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--red); position: relative; overflow: hidden;
}
.brand-story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
@media (max-width: 768px) { .brand-story { grid-template-columns: 1fr; gap: 32px; } .brand-story.reverse { direction: ltr; } }

/* ========== Feature Cards ========== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; }
.feature-card { padding: 28px 24px; background: var(--white); border-radius: 16px; border: 1px solid rgba(0,0,0,0.06); }
.feature-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; text-align: left; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { width: 40px; height: 40px; background: var(--light-gray); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-info-item p { font-size: 14px; color: var(--gray); }
.contact-form-wrap { background: var(--white); padding: 36px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.06); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px; font-size: 14px; font-family: inherit;
  transition: border-color 0.2s,box-shadow 0.2s; outline: none; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,30,36,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ========== Franchise ========== */
.franchise-steps { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 20px; margin: 40px 0; }
.franchise-step { padding: 24px; background: var(--white); border-radius: 16px; border: 1px solid rgba(0,0,0,0.06); text-align: center; }
.franchise-step-num { display: inline-block; width: 36px; height: 36px; background: var(--red); color: var(--white); border-radius: 50%; line-height: 36px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.franchise-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.franchise-step p { font-size: 12px; color: var(--gray); }

/* ========== Page Hero ========== */
.page-hero { padding: 120px 24px 60px; text-align: center; background: linear-gradient(180deg,#FFF5F5 0%,#fff 100%); }
.page-content { max-width: 720px; margin: 0 auto; padding: 60px 24px; }
.page-content h2 { font-size: 28px; font-weight: 700; margin: 40px 0 16px; letter-spacing: -0.02em; }
.page-content h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.page-content p { font-size: 16px; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content li { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 6px; }

/* ========== Video Section ========== */
.video-section {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.video-section video {
  width: 100%;
  display: block;
  border-radius: 24px;
}

/* ========== More Products (secondary) ========== */
.more-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.more-product-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.more-product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.more-product-item .mpi-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.more-product-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.more-product-item p {
  font-size: 11px;
  color: var(--gray);
}

/* ========== Footer ========== */
.footer { background: var(--black); color: var(--white); padding: 48px 24px 32px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--red); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-beian { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-beian a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-beian a:hover { color: rgba(255,255,255,0.7); }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ========== Animations ========== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-up { opacity: 0; transform: translateY(50px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-up.visible { opacity: 1; transform: translateY(0); }

.slide-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-right.visible { opacity: 1; transform: translateX(0); }

.scale-in { opacity: 0; transform: scale(0.92) translateY(20px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.scale-in.visible { opacity: 1; transform: scale(1) translateY(0); }

.blur-in { opacity: 0; filter: blur(8px); transform: translateY(20px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.blur-in.visible { opacity: 1; filter: blur(0); transform: translateY(0); }

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero entrance */
.hero-entrance { opacity: 0; transform: translateY(40px); }
.hero-entrance.visible { opacity: 1; transform: translateY(0); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-entrance-delay-1 { transition-delay: 0.15s; }
.hero-entrance-delay-2 { transition-delay: 0.3s; }
.hero-entrance-delay-3 { transition-delay: 0.45s; }
.hero-entrance-delay-4 { transition-delay: 0.6s; }

/* Parallax-ish hover lift */
.lift-hover { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease; }
.lift-hover:hover { transform: translateY(-8px); }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.float { animation: float 4s ease-in-out infinite; }

/* Smooth section entrance */
.section-entrance { opacity: 0; transform: translateY(60px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.section-entrance.visible { opacity: 1; transform: translateY(0); }

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .slide-up, .slide-left, .slide-right, .scale-in, .blur-in, .section-entrance, .hero-entrance {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.35); }

/* ========== Meituan Showcase ========== */
.meituan-showcase {
  background: linear-gradient(135deg, #FFF5F5 0%, #fff 50%, #FFF5F5 100%);
  border-radius: 28px;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.meituan-showcase::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(196,30,36,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.meituan-showcase::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(196,30,36,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.meituan-header {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 48px; position: relative; z-index: 1;
}
.meituan-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; padding: 10px 24px; border-radius: 980px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(196,30,36,0.25);
}
.meituan-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-bottom: 48px; position: relative; z-index: 1;
}
.meituan-stat {
  text-align: center; padding: 28px 16px;
  background: var(--white); border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.meituan-stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(196,30,36,0.12);
}
.meituan-stat-num {
  font-size: 36px; font-weight: 800; color: var(--red);
  letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 8px;
}
.meituan-stat-label {
  font-size: 13px; color: var(--gray); font-weight: 500;
}
.meituan-products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  position: relative; z-index: 1;
}
.meituan-product {
  background: var(--white); border-radius: 20px; padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative; overflow: hidden;
}
.meituan-product::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  opacity: 0; transition: opacity 0.3s;
}
.meituan-product:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(196,30,36,0.12);
}
.meituan-product:hover::before { opacity: 1; }
.meituan-product-rank {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.meituan-product-img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: 14px; margin-bottom: 16px;
  transition: transform 0.4s ease;
}
.meituan-product:hover .meituan-product-img { transform: scale(1.03); }
.meituan-product h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.meituan-product p { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.meituan-product-price {
  display: flex; align-items: baseline; gap: 6px;
}
.meituan-product-price .price {
  font-size: 22px; font-weight: 800; color: var(--red);
}
.meituan-product-price .original {
  font-size: 13px; color: #999; text-decoration: line-through;
}
.meituan-product-tag {
  display: inline-block; background: var(--red-pale); color: var(--red);
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 980px; margin-top: 8px;
}
.meituan-cta {
  text-align: center; margin-top: 40px; position: relative; z-index: 1;
}
.meituan-store-links {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.meituan-store-btn {
  display: inline-block; padding: 12px 28px;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; border-radius: 14px; text-decoration: none;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(196,30,36,0.25);
  transition: all 0.3s ease;
}
.meituan-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196,30,36,0.35);
}

@media (max-width: 768px) {
  .meituan-showcase { padding: 40px 20px; border-radius: 20px; }
  .meituan-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .meituan-stat { padding: 20px 12px; }
  .meituan-stat-num { font-size: 28px; }
  .meituan-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .meituan-product { padding: 16px; }
  .meituan-product-img { height: 110px; }
}

/* ========== Slider ========== */
.slider-wrap { margin-top: 72px; }
.slider { position: relative; width: 100%; max-width: var(--max-width); margin: 0 auto; overflow: hidden; border-radius: 20px; }
.slide { display: none; width: 100%; }
.slide.active { display: block; }
.slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
.slide a { display: block; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.slide-caption span { color: #fff; font-size: 18px; font-weight: 500; }
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.85); color: var(--black); border: none;
    width: 40px; height: 40px; border-radius: 50%; font-size: 22px;
    cursor: pointer; z-index: 10; line-height: 40px; text-align: center;
    transition: all .2s; backdrop-filter: blur(10px);
}
.slider-prev:hover, .slider-next:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.dot.active { background: #fff; width: 24px; border-radius: 4px; }

@media (max-width: 768px) {
    .slide img { height: 240px; }
    .slider { border-radius: 0; }
    .slider-wrap { margin-top: 48px; }
    .slider-prev, .slider-next { width: 32px; height: 32px; font-size: 18px; line-height: 32px; }
    .slide-caption { padding: 16px; }
    .slide-caption span { font-size: 14px; }
    .slider-dots { bottom: 40px; }
}

/* ====== 手机端全面适配 ====== */
@media (max-width: 768px) {
    /* --- 基础 --- */
    body { font-size: 15px; }

    /* --- Nav --- */
    .navbar { height: 60px; padding: 0 16px; }
    .nav-logo { font-size: 20px; }
    .nav-links { top: 0; padding: 70px 24px 40px; gap: 4px; }
    .nav-links > li > a { font-size: 17px; padding: 12px 20px; }
    .nav-cta { padding: 12px 20px !important; font-size: 15px !important; }

    /* --- Hero --- */
    .hero { min-height: 440px; padding: 100px 20px 40px; }
    .hero-eyebrow { font-size: 12px; margin-bottom: 8px; }
    .hero h1 { font-size: 36px; margin-bottom: 10px; }
    .hero p { font-size: 15px; margin-bottom: 20px; padding: 0 10px; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; gap: 10px; }
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px; }

    /* --- Hero Products --- */
    .hero-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-product-card img { height: 120px; }
    .hero-product-card .hp-info { padding: 12px 8px; }
    .hero-product-card .hp-info h4 { font-size: 13px; }

    /* --- 内页 Hero --- */
    .page-hero { padding: 100px 20px 40px; }
    .page-hero h1 { font-size: 32px; }
    .page-hero p { font-size: 15px; }

    /* --- Section --- */
    .section { padding: 48px 16px; }
    .section-subtitle { font-size: 15px; margin-bottom: 32px; }

    /* --- 产品卡片 --- */
    .products-grid { grid-template-columns: 1fr; gap: 14px; }
    .product-card { padding: 24px 20px; border-radius: 16px; }
    .product-icon { width: 52px; height: 52px; font-size: 24px; }
    .product-card h3 { font-size: 16px; }

    /* --- 更多产品 --- */
    .more-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* --- 特性卡片 --- */
    .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature-card { padding: 20px 16px; border-radius: 14px; }
    .feature-card h4 { font-size: 14px; margin-bottom: 4px; }
    .feature-card p { font-size: 12px; }

    /* --- 品牌故事 --- */
    .brand-story-visual { height: 200px; font-size: 48px; }
    .brand-story-text h3 { font-size: 22px; }
    .brand-story-text p { font-size: 14px; }

    /* --- 加盟步骤 --- */
    .franchise-steps { grid-template-columns: repeat(2,1fr); gap: 12px; margin: 28px 0; }
    .franchise-step { padding: 18px 12px; }
    .franchise-step-num { width: 30px; height: 30px; line-height: 30px; font-size: 12px; }
    .franchise-step h4 { font-size: 13px; }
    .franchise-step p { font-size: 11px; }

    /* --- 视频 --- */
    .video-section { border-radius: 16px; }
    .video-section video { border-radius: 16px; }

    /* --- 联系表单 --- */
    .contact-form-wrap { padding: 24px 20px; }
    .form-group input,
    .form-group textarea,
    .form-group select { padding: 12px; font-size: 16px; }

    /* --- 页面内容 --- */
    .page-content { padding: 40px 16px; }
    .page-content h2 { font-size: 22px; margin-top: 32px; }
    .page-content h3 { font-size: 18px; }
    .page-content p { font-size: 15px; }
    .page-content li { font-size: 14px; }

    /* --- Footer --- */
    .footer { padding: 40px 16px 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* --- 编辑器内容适配 --- */
    .page-content img,
    .page-content video { max-width: 100% !important; height: auto !important; }
    .page-content table { display: block; overflow-x: auto; width: 100%; }
    .page-content div[style*="flex"] { flex-direction: column !important; }
    .page-content div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    /* --- 更小屏 --- */
    .hero { min-height: 360px; padding: 70px 16px 32px; }
    .hero h1 { font-size: 30px; }
    .section-title { font-size: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .franchise-steps { grid-template-columns: 1fr; }
    .products-grid { gap: 10px; }
    .product-card { padding: 20px 16px; }

    /* --- 按钮 --- */
    .btn-primary, .btn-secondary { padding: 12px 18px; font-size: 14px; }

    /* --- 编辑器内嵌的两列卡片 --- */
    .page-content div[style*="flex:1"] { min-width: 100% !important; margin-bottom: 10px; }
    .page-content div[style*="padding:24px"] { padding: 18px !important; }
}

/* ========== Utility ========== */
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
