/* ============================================
   集粉汇面 | Noodle Nexus - Custom Styles
   ============================================ */

/* --- Font Imports (CN Domain) --- */
@import url('https://fonts.googleapis.cn/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --color-primary: #D4482B;
  --color-primary-dark: #B83A22;
  --color-secondary: #2B2B2B;
  --color-base: #FAF6F0;
  --color-accent: #E8A838;
  --color-domestic: #E8A838;
  --color-asia: #5B8C5A;
  --color-global: #3D6B99;
  --font-cn-title: 'Noto Serif SC', serif;
  --font-cn-body: 'Noto Sans SC', sans-serif;
  --font-en-title: 'Playfair Display', serif;
  --font-en-body: 'Inter', sans-serif;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn-body);
  background-color: var(--color-base);
  color: var(--color-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Typography --- */
.font-cn-title {
  font-family: var(--font-cn-title);
}

.font-en-title {
  font-family: var(--font-en-title);
}

.font-en-body {
  font-family: var(--font-en-body);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Navigation --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s var(--ease-smooth);
}

.nav-transparent {
  background: transparent;
  backdrop-filter: none;
}

.nav-solid {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Override Tailwind text-white with higher specificity */
.nav-fixed.nav-solid .nav-logo,
.nav-fixed.nav-solid .nav-logo span,
.nav-fixed.nav-solid .nav-logo svg,
.nav-fixed.nav-solid .nav-link,
.nav-fixed.nav-solid .mobile-toggle {
  color: var(--color-secondary) !important;
}

/* Keep the CTA button accent color */
.nav-fixed.nav-solid .btn-primary {
  color: white !important;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s var(--ease-smooth);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2B2B2B 0%, #1a1a2e 50%, #2B2B2B 100%);
  padding: 80px 0 40px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cpath d='M100 300 Q200 250 300 280 T500 260 T700 290 T900 270 T1100 300' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3Cpath d='M50 350 Q150 320 250 340 T450 310 T650 350 T850 320 T1050 350' fill='none' stroke='%23ffffff' stroke-width='0.3'/%3E%3Ccircle cx='200' cy='200' r='3' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='400' cy='180' r='2' fill='%23ffffff' opacity='0.4'/%3E%3Ccircle cx='600' cy='220' r='3' fill='%23ffffff' opacity='0.5'/%3E%3Ccircle cx='800' cy='190' r='2' fill='%23ffffff' opacity='0.3'/%3E%3Ccircle cx='1000' cy='210' r='3' fill='%23ffffff' opacity='0.4'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 72, 43, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* --- Hero Icon (Noodle Bowl) --- */
.hero-icon {
  display: flex;
  justify-content: center;
  animation: icon-breathe 3s ease-in-out infinite;
}

.hero-icon-svg {
  width: 64px;
  height: 64px;
}

@media (min-width: 768px) {
  .hero-icon-svg {
    width: 80px;
    height: 80px;
  }
}

@keyframes icon-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Steam animations */
.steam {
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.steam-1 {
  animation-name: steam-rise-1;
  animation-duration: 2s;
  animation-delay: 0s;
}

.steam-2 {
  animation-name: steam-rise-2;
  animation-duration: 2.5s;
  animation-delay: 0.4s;
}

.steam-3 {
  animation-name: steam-rise-3;
  animation-duration: 3s;
  animation-delay: 0.8s;
}

@keyframes steam-rise-1 {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  20% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.5;
    transform: translateY(-8px) translateX(2px);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) translateX(-1px);
  }
}

@keyframes steam-rise-2 {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  25% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
    transform: translateY(-10px) translateX(-2px);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) translateX(2px);
  }
}

@keyframes steam-rise-3 {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  20% {
    opacity: 0.6;
  }
  60% {
    opacity: 0.4;
    transform: translateY(-10px) translateX(3px);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) translateX(-2px);
  }
}

/* --- Section Styles --- */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-cn-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-en-title);
  font-size: 1rem;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 1rem auto 1.5rem;
  border-radius: 2px;
}

/* --- Menu Tabs --- */
.menu-tab {
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  background: transparent;
  color: var(--color-secondary);
  white-space: nowrap;
}

.menu-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.menu-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.menu-tab[data-tab="domestic"].active {
  background: var(--color-domestic);
  border-color: var(--color-domestic);
}

.menu-tab[data-tab="asia"].active {
  background: #7CB342;
  border-color: #7CB342;
}

.menu-tab[data-tab="global"].active {
  background: #1565C0;
  border-color: #1565C0;
}

.menu-tab[data-tab="sides"].active {
  background: #EF6C00;
  border-color: #EF6C00;
}

/* --- Food Card --- */
.food-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  cursor: default;
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.food-card-image {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.food-card-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.5s var(--ease-smooth);
}

.food-card:hover .food-card-image-inner {
  transform: scale(1.05);
}

.food-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.food-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.food-card-name {
  font-family: var(--font-cn-title);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #2B2B2B;
}

.food-card-price {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(212, 72, 43, 0.08);
  color: #D4482B;
  font-family: var(--font-en-title);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.food-card-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

.food-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.food-card-desc {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.food-card-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0;
  align-self: flex-start;
}

.tag-domestic { background: rgba(232, 168, 56, 0.15); color: var(--color-domestic); }
.tag-asia { background: rgba(124, 179, 66, 0.15); color: #7CB342; }
.tag-global { background: rgba(21, 101, 192, 0.15); color: #1565C0; }
.tag-side { background: rgba(239, 108, 0, 0.15); color: #EF6C00; }
.tag-drink { background: rgba(123, 31, 162, 0.15); color: #7B1FA2; }

/* --- Product System --- */
.system-node {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.system-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.system-node-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.system-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
}

/* --- Store Model Card --- */
.store-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.store-card-header {
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.store-card-header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

/* --- Franchise Section --- */
.franchise-step {
  position: relative;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s var(--ease-smooth);
}

.franchise-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.franchise-step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- Form Styles --- */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: var(--font-cn-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 72, 43, 0.1);
}

.form-input::placeholder {
  color: #aaa;
}

/* --- Button Styles --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-cn-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: scale(1.02);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-family: var(--font-cn-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* --- World Map Decoration --- */
.world-map-decoration {
  position: absolute;
  opacity: 0.03;
  pointer-events: none;
}

/* --- Compass Rose --- */
.compass-icon {
  display: inline-block;
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-base);
  z-index: 1001;
  transition: right 0.3s var(--ease-smooth);
  padding: 80px 2rem 2rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Tab Content Transition --- */
/* --- Tab Content Layout (fully controlled, no Tailwind grid) --- */
.tab-content {
  display: none;
  gap: 20px;
  animation: fadeIn 0.3s var(--ease-smooth);
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
  .tab-content.active {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3-4 columns based on category */
@media (min-width: 1024px) {
  .tab-content[data-content="domestic"].active,
  .tab-content[data-content="sides"].active {
    grid-template-columns: repeat(4, 1fr);
  }
  .tab-content[data-content="asia"].active,
  .tab-content[data-content="global"].active {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: horizontal scroll via wrapper */
@media (max-width: 639px) {
  .tab-content.active {
    display: block;
  }

  .menu-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .menu-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .menu-scroll-wrapper .food-card {
    flex: 0 0 calc((100% - 12px) / 2);
    min-width: calc((100% - 12px) / 2);
    scroll-snap-align: start;
  }

  .menu-scroll-wrapper .food-card-image {
    height: 140px;
  }

  .menu-scroll-wrapper .food-card-body {
    padding: 0.6rem 0.75rem 0.75rem;
  }

  .menu-scroll-wrapper .food-card-name {
    font-size: 0.8rem;
  }

  .menu-scroll-wrapper .food-card-price {
    font-size: 0.75rem;
    padding: 1px 6px;
  }

  .menu-scroll-wrapper .food-card-desc {
    font-size: 0.7rem;
  }

  .menu-scroll-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 24px;
  }

  .menu-scroll-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
  }

  .menu-scroll-dots .dot.active {
    background: var(--color-primary);
    width: 18px;
    border-radius: 3px;
  }
}

@media (min-width: 640px) {
  .menu-scroll-dots {
    display: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Stamp decoration --- */
.stamp-border {
  position: relative;
}

.stamp-border::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px dashed currentColor;
  border-radius: inherit;
  opacity: 0.3;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-base);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* --- Selection --- */
::selection {
  background: rgba(212, 72, 43, 0.2);
  color: var(--color-secondary);
}

/* ============================================
   NEW: Online Ordering Section
   ============================================ */
.order-flow-step {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
}

.order-flow-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

@media (max-width: 768px) {
  .order-flow-step::after {
    display: none;
  }
}

.order-flow-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(232, 168, 56, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  transition: all 0.3s var(--ease-smooth);
}

.order-flow-step:hover .order-flow-icon {
  background: var(--color-accent);
  transform: scale(1.05);
}

.order-flow-step:hover .order-flow-icon svg {
  stroke: white;
}

.order-hot-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.order-hot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(232, 168, 56, 0.12);
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  font-family: var(--font-cn-body);
}

.btn-add-cart:hover {
  background: #d49730;
  transform: scale(1.05);
}

.order-coming-soon {
  background: linear-gradient(135deg, rgba(232, 168, 56, 0.08), rgba(212, 72, 43, 0.05));
  border: 1px dashed var(--color-accent);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
}

/* ============================================
   NEW: Store Finder Section
   ============================================ */
.city-chip {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  background: white;
  color: var(--color-secondary);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.city-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.city-chip.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.store-list-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s var(--ease-smooth);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.store-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.store-status.open {
  background: rgba(91, 140, 90, 0.12);
  color: #5B8C5A;
}

.store-status.coming {
  background: rgba(232, 168, 56, 0.12);
  color: #E8A838;
}

.store-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.store-status.open .store-status-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.store-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-cn-body);
}

.store-action-btn.nav-btn {
  background: var(--color-primary);
  color: white;
}

.store-action-btn.nav-btn:hover {
  background: var(--color-primary-dark);
}

.store-action-btn.call-btn {
  background: rgba(91, 140, 90, 0.1);
  color: #5B8C5A;
}

.store-action-btn.call-btn:hover {
  background: rgba(91, 140, 90, 0.2);
}

.map-placeholder {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e4de 0%, #d4d0c8 50%, #e0dcd4 100%);
  min-height: 360px;
}

.map-placeholder svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  transition: transform 0.3s var(--ease-smooth);
}

.map-pin:hover {
  transform: translate(-50%, -100%) scale(1.2);
}

.map-pin-pulse {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 72, 43, 0.3);
  animation: map-ping 2s ease-in-out infinite;
}

@keyframes map-ping {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(2.5); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 0; }
}

/* ============================================
   NEW: Member Zone Section
   ============================================ */
.member-level-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.member-level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.member-level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.member-level-card.level-normal::before { background: #B0B0B0; }
.member-level-card.level-silver::before { background: linear-gradient(90deg, #A8A8A8, #D0D0D0, #A8A8A8); }
.member-level-card.level-gold::before { background: linear-gradient(90deg, #E8A838, #F0C060, #E8A838); }
/* 黑金卡：白底 + 黑色图标 + 金色装饰条 + 金色边框 */
.member-level-card.level-black {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
  position: relative;
}

/* 顶部金色装饰条 */
.member-level-card.level-black::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #B8860B, #FFD700, #DAA520, #FFD700, #B8860B) !important;
  border-radius: 8px 8px 0 0;
  z-index: 1;
}

/* 图标容器 - 黑色背景 */
.member-level-card.level-black .member-level-icon {
  background: linear-gradient(135deg, #2B2B2B, #1a1a1a) !important;
  border: 1px solid #2B2B2B !important;
}

/* hover 效果 */
.member-level-card.level-black:hover {
  border-color: rgba(212, 175, 55, 0.8) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 12px rgba(212,175,55,0.08) !important;
}

/* Member level text styles */
.member-level-name {
  font-family: var(--font-cn-title);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.member-level-desc {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.member-level-benefits {
  font-size: 0.75rem;
  color: #444;
  line-height: 1.6;
}

.member-level-benefits p {
  margin-bottom: 2px;
}

.member-level-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.member-benefit-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.member-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Passport Feature */
.passport-card {
  background: linear-gradient(135deg, #2B2B2B 0%, #1a1a2e 100%);
  border-radius: 16px;
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.passport-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(232, 168, 56, 0.15);
  border-radius: 50%;
}

.passport-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(232, 168, 56, 0.1);
  border-radius: 50%;
}

.passport-stamp {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.passport-stamp.collected {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(232, 168, 56, 0.1);
}

.passport-stamp.locked {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.3);
}

.passport-stamp.collected::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px dashed var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pricing-card.recommended {
  border: 2px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(232, 168, 56, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Login Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--ease-smooth);
  position: relative;
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.verification-input-group {
  display: flex;
  gap: 8px;
}

.verification-input-group .form-input {
  flex: 1;
}

.btn-send-code {
  padding: 12px 16px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-family: var(--font-cn-body);
}

.btn-send-code:hover {
  background: #d49730;
}

.btn-send-code:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* PC端菜单：横向铺满+可滑动 */
@media (min-width: 768px) {
  /* Tab内容 — 取消grid布局，改block，让横滑容器占满全宽 */
  .tab-content,
  .tab-content.active {
    display: block !important;
    grid-template-columns: none !important;
    overflow: visible !important;
  }

  /* 菜单滚动容器 */
  .menu-scroll-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 20px !important;
    padding: 0 20px 20px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #D4482B #f0f0f0 !important;
  }
  .menu-scroll-wrapper::-webkit-scrollbar { height: 6px !important; }
  .menu-scroll-wrapper::-webkit-scrollbar-track { background: #f5f0eb !important; border-radius: 3px !important; }
  .menu-scroll-wrapper::-webkit-scrollbar-thumb { background: #D4482B !important; border-radius: 3px !important; }

  /* 菜单卡片 — 使用实际 class: .food-card */
  .menu-scroll-wrapper .food-card {
    flex: 0 0 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    scroll-snap-align: start !important;
    margin-right: 0 !important;
  }

  /* 文字横排 — 仅修正 writing-mode，不覆盖 display */
  .menu-scroll-wrapper .food-card,
  .menu-scroll-wrapper .food-card * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  /* 卡片图片尺寸 */
  .menu-scroll-wrapper .food-card .food-card-image {
    width: 100% !important;
    height: 180px !important;
  }
  .menu-scroll-wrapper .food-card .food-card-image img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    max-height: 180px !important;
  }

  /* 隐藏圆点导航 */
  .menu-scroll-dots { display: none !important; }

  /* Tab内容全宽 */
  .tab-content { width: 100% !important; }
}


/* ========== 品牌卡片动画 ========== */
.brand-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.brand-card:hover {
  transform: translateY(-8px);
}
.brand-card-header {
  transition: all 0.5s ease;
}
.brand-card:hover .brand-card-header {
  padding: 2rem 1.5rem;
}
.brand-card:hover .brand-emoji {
  transform: scale(1.2) rotate(15deg);
}
.brand-emoji {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== 品牌矩阵横向滚动 ========== */
.brand-matrix-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #D4482B #f0f0f0;
  -webkit-overflow-scrolling: touch;
}
.brand-matrix-scroll::-webkit-scrollbar { height: 6px; }
.brand-matrix-scroll::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.brand-matrix-scroll::-webkit-scrollbar-thumb { background: #D4482B; border-radius: 3px; }
.brand-matrix-scroll .brand-card {
  scroll-snap-align: start;
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 280px;
}
@media (max-width: 767px) {
  .brand-matrix-scroll .brand-card {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 260px;
  }
}
