/* ============================================================
   郑恩强麻辣烫 · Brand Digital Experience
   White-Red theme with 3D mascot centerpiece
   ============================================================ */

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

:root {
    --color-white: #faf8f5;
    --color-pure-white: #ffffff;
    --color-red-700: #9b1b1b;
    --color-red-600: #b22222;
    --color-red-500: #d93636;
    --color-red-400: #e85050;
    --color-red-300: #f07070;
    --color-gold: #c49b4a;
    --color-dark: #1a1a1a;
    --color-text: #2a2a2a;
    --color-text-dim: rgba(42, 42, 42, 0.55);
    --color-text-muted: rgba(42, 42, 42, 0.3);
    --bg: var(--color-white);
    --surface: rgba(255, 255, 255, 0.92);
    --accent: var(--color-red-500);
    --accent-glow: var(--color-red-400);
    --gold: var(--color-gold);
    --nav-height: 72px;
    --transition: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--color-text);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
    cursor: none;
}
@media (hover: none) and (pointer: coarse) {
    html, body { cursor: auto; }
}

/* Minimal visible scrollbar for scrollable panels */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(180, 40, 40, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 40, 40, 0.45);
}
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(180, 40, 40, 0.25) transparent; }

/* --- Canvas --- */
#stage {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* --- Background Decoration --- */
.bg-deco {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
}
.bg-deco img {
    width: auto;
    height: 85vh;
    max-height: 750px;
    display: block;
}
.bg-deco-left  { left: 40px; }
.bg-deco-right { right: 40px; transform: translateY(-50%) scaleX(-1); }

/* --- Tiger Mascot Decorations --- */
.mascot-deco {
    position: fixed;
    z-index: 15;
    pointer-events: none;
    opacity: 0.8;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    animation: tigerFloat 7s ease-in-out infinite;
}
.mascot-deco img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

@keyframes tigerFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rot)); }
    30%      { transform: translateY(-10px) rotate(calc(var(--rot) + 2deg)); }
    60%      { transform: translateY(-4px) rotate(calc(var(--rot) - 1deg)); }
    85%      { transform: translateY(-14px) rotate(calc(var(--rot) + 1.5deg)); }
}

/* --- Irregular scattered decorations --- */
#mascot-01 { --rot: -15deg; top: 5%;  left: 12%;  width: 95px;  animation-delay: 0s;    animation-duration: 6.5s; }
#mascot-02 { --rot: 8deg;   top: 18%; left: 3%;   width: 70px;  animation-delay: 1.5s;  animation-duration: 8s;   }
#mascot-03 { --rot: -20deg; top: 38%; right: 24%; width: 108px; animation-delay: 3s;    animation-duration: 7s;   }
#mascot-04 { --rot: 15deg;  bottom: 22%; right: 10%; width: 66px; animation-delay: 0.8s;  animation-duration: 9s;   }
#mascot-05 { --rot: 25deg;  top: 12%; right: 6%;  width: 80px;  animation-delay: 2s;    animation-duration: 7.5s; }
#mascot-06 { --rot: -10deg; top: 50%; left: 18%;   width: 74px;  animation-delay: 0.4s;  animation-duration: 8.5s; }
#mascot-07 { --rot: 32deg;  top: 28%; right: calc(36% - 30px);  width: 110px; animation-delay: 2.8s;  animation-duration: 6s;   }
#mascot-08 { --rot: -18deg; bottom: 10%; left: 5%;   width: 60px;  animation-delay: 1s;    animation-duration: 9.5s; }
#mascot-09 { --rot: 5deg;   top: 42%; right: 8%;   width: 72px;  animation-delay: 2.2s;  animation-duration: 8s;   }
#mascot-10 { --rot: 28deg;  top: 8%;  right: 22%;  width: 118px; animation-delay: 0.3s;  animation-duration: 7.2s; }
#mascot-11 { --rot: -30deg; top: 22%; left: 24%;   width: 88px;  animation-delay: 1.8s;  animation-duration: 8.8s; }
#mascot-12 { --rot: 12deg;  bottom: 18%; right: 22%; width: 120px; animation-delay: 3.2s;  animation-duration: 6.8s; }
#mascot-13 { --rot: -26deg; top: 58%; right: 15%;  width: 96px;  animation-delay: 0.9s;  animation-duration: 9.2s; }
#mascot-14 { --rot: 20deg;  top: 15%; left: 32%;   width: 80px;  animation-delay: 2.4s;  animation-duration: 7.8s; }
#mascot-15 { --rot: -8deg;  bottom: 30%; left: 14%; width: 108px; animation-delay: 1.2s;  animation-duration: 8.2s; }
#mascot-16 { --rot: 35deg;  top: 65%; left: 8%;    width: 100px; animation-delay: 3.6s;  animation-duration: 6.4s; }
#mascot-17 { --rot: -14deg; top: 32%; right: 16%;  width: 105px; animation-delay: 0.6s;  animation-duration: 7.6s; }
#mascot-18 { --rot: 18deg;  bottom: 5%; left: 36%;  width: 114px; animation-delay: 2.6s;  animation-duration: 9.6s; }

/* --- Flavor mascots — identical to regular mascots by default --- */
/* Circle mode: elevate to top layer, enable interaction, kill tigerFloat so inline transform works */
body.flavor-circle .mascot-deco.flavor-mascot {
    animation: none;
    z-index: 200;
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
}
body.flavor-circle .mascot-deco.flavor-mascot:hover {
    opacity: 1;
}
body.flavor-circle .mascot-deco.flavor-mascot:hover img {
    scale: 1.3;
    filter: drop-shadow(0 0 22px rgba(255, 160, 40, 0.55)) drop-shadow(0 6px 18px rgba(255, 120, 20, 0.45));
    transition: scale 0.2s ease, filter 0.2s ease;
}
body.flavor-circle .mascot-deco.flavor-mascot img {
    transition: scale 0.2s ease, filter 0.2s ease;
}
body.flavor-circle .mascot-deco.flavor-mascot::after {
    content: attr(data-name);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    padding: 3px 12px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
body.flavor-circle .mascot-deco.flavor-mascot:hover::after {
    opacity: 1;
}

/* Selected flavor mascot — moved to left */
body.flavor-circle .flavor-mascot.flavor-selected {
    z-index: 210;
}
body.flavor-circle .flavor-mascot.flavor-selected::after {
    opacity: 1;
}

/* Dimmed flavor mascots when one is selected */
body.flavor-circle .flavor-mascot.flavor-dimmed {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* --- Flavor detail overlay & cards --- */
#flavor-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
#flavor-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Dim page elements when flavor is selected */
body.flavor-focused .panel.active .flavor-cat-card,
body.flavor-focused .panel.active .flavor-circle-cta {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.flavor-detail-card {
    position: fixed;
    right: max(120px, 14vw);
    top: 50%;
    transform: translateY(-50%);
    z-index: 195;
    width: min(340px, 90vw);
    max-height: 72vh;
    overflow-y: auto;
    background: #808080;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px 24px;
    color: #d4a843;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(-50%) translateX(30px);
}
.flavor-detail-card.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.flavor-detail-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #d4a843;
    margin: 0 0 14px;
    letter-spacing: 0.5px;
}
.flavor-detail-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #d4a843;
    margin: 0;
}

/* Responsive — keep flavor mascots visible in circle mode */
@media (max-width: 768px) {
    body.flavor-circle .flavor-mascot {
        display: block !important;
        width: 50px !important;
    }
}
@media (max-width: 480px) {
    body.flavor-circle .flavor-mascot {
        display: block !important;
        width: 38px !important;
    }
}

/* --- Flavor lightbox --- */
.flavor-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}
.flavor-lightbox.closing {
    animation: fadeOut 0.25s ease forwards;
}
.flavor-lightbox img {
    max-width: 75vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.flavor-lightbox.closing img {
    animation: zoomOut 0.25s ease forwards;
}
.flavor-lightbox .flavor-label-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    animation: fadeIn 0.5s ease 0.15s both;
}

/* Map page mascot */
.map-mascot {
    position: fixed;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transform: scaleX(-1);
    bottom: 10%;
    left: 8%;
    width: 140px;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-mascot.show {
    opacity: 0.75;
}
.map-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* --- Cursor --- */
#cursor-follower {
    position: fixed;
    width: 28px; height: 28px;
    border: 1.5px solid rgba(180, 40, 40, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s, background 0.2s, opacity 0.6s;
    mix-blend-mode: normal;
    opacity: 0;
}
@media (hover: none) and (pointer: coarse) {
    #cursor-follower { display: none; }
}
#cursor-follower.hover {
    width: 48px; height: 48px;
    border-color: var(--accent);
    background: rgba(217, 54, 54, 0.08);
}
#cursor-follower.click {
    width: 18px; height: 18px;
    background: rgba(217, 54, 54, 0.2);
}

/* --- Loader --- */
#loader {
    position: fixed; inset: 0;
    z-index: 10000;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 1s, visibility 1s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader span {
    font-size: 13px;
    letter-spacing: 8px;
    color: var(--color-text-dim);
    animation: loaderFadeIn 0.8s 0.3s both;
}
.loader-ring {
    width: 40px; height: 40px;
    border: 1.5px solid var(--color-text-muted);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite, loaderFadeIn 0.6s 0.1s both;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes shimmerRed {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================================
   Entrance Animation Keyframes
   ================================================================ */

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Entrance animation base classes --- */
.anim-up, .anim-in, .anim-scale, .anim-left, .anim-right {
    opacity: 0;
    animation-fill-mode: both;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}
.panel.active .anim-up    { animation-name: fadeInUp; }
.panel.active .anim-in    { animation-name: fadeIn; }
.panel.active .anim-scale { animation-name: scaleIn; }
.panel.active .anim-left  { animation-name: slideInLeft; }
.panel.active .anim-right { animation-name: slideInRight; }

.panel.active .anim-up,
.panel.active .anim-in,
.panel.active .anim-scale { will-change: opacity, transform; }

/* --- Top Bar --- */
#topbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px;
    background: linear-gradient(180deg, rgba(250, 248, 245, 0.85) 0%, transparent 100%);
}
.topbar-logo {
    height: 56px;
    width: auto;
    margin-left: 30px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                filter 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
                opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: drop-shadow(0 0 0 transparent);
    opacity: 0.78;
}
.topbar-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(217, 54, 54, 0.35));
    opacity: 1;
}
.topbar-phone {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-dark);
    letter-spacing: 3px;
    white-space: nowrap;
    opacity: 0.85;
}
.topbar-phone strong {
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-left: 4px;
    display: inline-block;
    animation: phoneGlow 3s ease-in-out infinite;
}
@keyframes phoneGlow {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50%  { text-shadow: 0 0 12px rgba(217, 54, 54, 0.25); }
}
.topbar-logo:active {
    transform: scale(0.95);
    transition: transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
}


/* --- Side Navigation --- */
#sidenav {
    position: fixed; top: 0; left: 0;
    width: 380px; height: 100%;
    z-index: 150;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateX(-100%);
    transition: var(--transition);
    display: flex;
    align-items: center;
    box-shadow: none;
}
#sidenav.open { transform: translateX(0); }
.sidenav-inner {
    padding: 80px 56px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    width: 100%;
}
.sidenav-logo-img {
    height: 40px;
    width: auto;
}
.sidenav-links { display: flex; flex-direction: column; gap: 20px; }
.sidenav-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 3px;
    transition: var(--transition-fast);
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.sidenav-links a span {
    font-size: 10px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}
.sidenav-links a:hover,
.sidenav-links a.active { color: var(--accent); padding-left: 10px; }
.sidenav-footer {
    margin-top: auto;
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    line-height: 2;
}

/* --- Mobile Menu Toggle (Hamburger) --- */
.menu-toggle {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 200;
	width: 44px;
	height: 44px;
	background: rgba(250, 248, 245, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 50%;
	cursor: pointer;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 0;
	transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
.menu-toggle span {
	display: block;
	width: 20px;
	height: 1.5px;
	background: var(--color-text);
	border-radius: 2px;
	transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle:active {
	transform: scale(0.92);
	background: rgba(250, 248, 245, 0.95);
}

/* ================================================================
   Content Panels
   ================================================================ */

#content-panels {
    position: fixed; inset: 0;
    z-index: 20;
    pointer-events: none;
}

.panel {
    position: absolute; inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.panel.active {
    opacity: 1;
    pointer-events: auto;
}
.panel a, .panel button, .panel .product-card, .panel .flavor-cat-card, .panel .flavor-circle-cta-btn,
.panel .franchise-cta, .panel .franchise-cta-btn,
.panel .nav-dot, .panel input, .panel textarea,
.panel .flip-card, .panel .flip-card-sm {
    pointer-events: auto;
}

.panel-bg {
    position: absolute; inset: 0;
    z-index: -1;
    overflow: hidden;
}
.panel-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(250,248,245,0.3) 0%, rgba(250,248,245,0.88) 100%);
}
.panel-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) saturate(0.6);
}

.panel-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    padding: 40px;
}

/* --- Shared panel typography --- */
.panel-label {
    font-size: 10px;
    letter-spacing: 6px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.panel-title {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 6px;
    line-height: 1.3;
    margin-bottom: 28px;
    color: var(--color-dark);
}
.panel-text {
    font-size: 14px;
    color: rgba(42, 42, 42, 0.45);
    line-height: 2;
    max-width: 480px;
    margin-bottom: 12px;
}
.panel-numbers {
    display: flex;
    gap: 56px;
    margin-top: 28px;
}
.num-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.num-block em {
    font-size: 38px;
    font-weight: 700;
    font-style: normal;
    color: var(--accent);
    letter-spacing: 2px;
}
.num-block span {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--color-text-dim);
}

/* --- Hero Panel --- */
.hero-title {
    position: absolute;
    top: 6vh;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    white-space: nowrap;
    z-index: 5;
}
.hero-inner {
    gap: 16px;
    justify-content: flex-start;
}
.hero-title .line {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, #1a1a1a 0%, #5a3a2a 25%, #c49b4a 50%, #5a3a2a 75%, #1a1a1a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}
.hero-title .line.accent {
    background: linear-gradient(90deg, #d93636 0%, #e85050 20%, #ff6b6b 50%, #e85050 80%, #d93636 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerRed 3.5s linear infinite;
}
.hero-subtitle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    color: rgba(42, 42, 42, 0.6);
    letter-spacing: 14px;
    white-space: nowrap;
    z-index: 5;
}
.hero-stats {
    position: absolute;
    bottom: 5vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-evenly;
    padding: 0 5vw;
    z-index: 5;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.stat-num {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #d93636;
    font-variant-numeric: tabular-nums;
    font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;
    white-space: nowrap;
}
.stat-label {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--color-text-dim);
}

/* --- Flip Card --- */
.flip-card {
    perspective: 800px;
    width: 180px;
    height: 82px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                filter 0.3s ease;
}
.flip-card:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 16px rgba(217, 54, 54, 0.35));
}
.flip-card:active {
    transform: scale(0.95);
    transition: transform 0.12s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner {
    transform: rotateX(180deg);
}
.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.flip-card-back {
    transform: rotateX(180deg);
}
.flip-back-num {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #c49b4a;
    font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;
    line-height: 1.2;
    white-space: nowrap;
}
.flip-back-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-text-dim);
    white-space: nowrap;
}

/* Small flip card variant */
.flip-card-sm {
    width: 140px;
    height: 62px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                filter 0.3s ease;
}
.flip-card-sm:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(217, 54, 54, 0.3));
}
.flip-card-sm:active {
    transform: scale(0.95);
    transition: transform 0.12s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.flip-back-num-sm {
    font-size: 28px;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 2px;
    color: #c49b4a;
    font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;
    line-height: 1.2;
    white-space: nowrap;
}
.flip-back-label-sm {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--color-text-dim);
    white-space: nowrap;
}

/* Ensure front stat-num inside flip card keeps its style */
.flip-card-front .stat-num {
    margin: 0;
}
.flip-card-front .franchise-stat-num {
    margin: 0;
}
.flip-card-front em {
    margin: 0;
}

/* --- Story Panel --- */
#panel-story::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: -1;
    pointer-events: none;
    transition: background 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.panel.active#panel-story::before {
    background: rgba(0, 0, 0, 0.5);
}
#panel-story {
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 60px 0;
}
.story-header {
    text-align: center;
    z-index: 1;
}
.story-header .panel-label {
    margin-bottom: 16px;
}
.story-header .panel-title {
    margin-bottom: 28px;
}
.story-content {
    width: 100%;
    display: flex;
    gap: 0;
    z-index: 1;
    overflow: visible;
    padding: 0 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    flex: 1;
    min-height: 0;
}
.story-body {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
    min-width: 0;
    padding-right: 20px;
}
.story-visual {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-brand-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(217, 54, 54, 0.1));
    animation: brandFloat 6s ease-in-out infinite;
}
@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Story Timeline --- */
.story-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--color-text-dim);
    margin-bottom: 36px;
    font-weight: 300;
}
.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 680px;
}
.story-milestone {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.story-year {
    flex-shrink: 0;
    width: 90px;
    text-align: right;
}
.story-year span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(217, 54, 54, 0.06);
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
    border: 1px solid rgba(217, 54, 54, 0.12);
}
.story-card {
    flex: 1;
    background: var(--color-pure-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.story-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    opacity: 0.5;
}
.story-card:hover {
    border-color: rgba(217, 54, 54, 0.2);
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(217, 54, 54, 0.06);
}
.story-card h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-dark);
    margin-bottom: 8px;
}
.story-card p {
    font-size: 12px;
    line-height: 1.9;
    color: var(--color-text-dim);
    letter-spacing: 0.5px;
}
.story-closing {
    position: relative;
    margin: 40px auto 24px;
    font-size: 13px;
    line-height: 2;
    color: var(--color-text-dim);
    text-align: center;
    padding: 16px 0 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: 1px;
    z-index: 1;
    width: 90%;
    max-width: 680px;
}

/* --- Story Honors (right side - hanging paintings) --- */
.story-honors {
    flex: 1;
    min-width: 280px;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    position: relative;
    z-index: 10;
}
.honors-rail {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, rgba(180, 160, 130, 0.4) 20%, rgba(180, 160, 130, 0.5) 50%, rgba(180, 160, 130, 0.4) 80%, transparent 95%);
    border-radius: 2px;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.honors-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    padding: 0 10px;
}
.honor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 20;
    opacity: 1 !important;
}
.honor-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    transition: transform 0.4s, filter 0.4s;
}
.honor-card:nth-child(1) .honor-inner { transform: rotate(-8deg) translateX(-12px); }
.honor-card:nth-child(2) { z-index: 30; }
.honor-card:nth-child(2) .honor-inner { transform: rotate(14deg) translateX(18px); }
.honor-card:nth-child(3) .honor-inner { transform: rotate(-5deg) translateX(-6px); }
.honor-card:hover .honor-inner {
    filter: drop-shadow(0 8px 24px rgba(217, 54, 54, 0.15));
    transform: rotate(0deg) translateX(0) scale(1.03);
}
.honor-hanger {
    width: 1.5px;
    height: 18px;
    background: linear-gradient(to bottom, rgba(180, 160, 130, 0.6), rgba(180, 160, 130, 0.25));
    flex-shrink: 0;
}
.honor-frame {
    background: var(--color-pure-white);
    border: 2px solid rgba(180, 160, 130, 0.3);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    width: 300px;
}
.honor-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 2px;
}

/* --- Honor Lightbox --- */
.honor-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}
.honor-lightbox.closing {
    animation: fadeOut 0.25s ease forwards;
}
.honor-lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.honor-lightbox.closing img {
    animation: zoomOut 0.25s ease forwards;
}
@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
@keyframes zoomOut {
    from { transform: scale(1);    opacity: 1; }
    to   { transform: scale(0.85); opacity: 0; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* --- Products Panel --- */
#panel-products {
    justify-content: flex-start;
}
#panel-products::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 0;
}

/* Flavor Category Cards */
.flavor-cat-card {
    position: fixed;
    z-index: 25;
    width: 260px;
    background: rgba(245, 215, 215, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.panel.active .flavor-cat-card {
    opacity: 1;
    pointer-events: auto;
}
.flavor-cat-num {
    font-size: 36px;
    font-weight: 800;
    color: rgba(212, 168, 67, 0.25);
    font-family: "SF Mono", "Cascadia Code", monospace;
    letter-spacing: 2px;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}
.flavor-cat-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin: 0 0 10px;
}
.flavor-cat-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0 0 16px;
}
.flavor-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.flavor-cat-tags span {
    font-size: 12px;
    color: var(--accent, #d4a843);
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Left side cards */
.flavor-cat-left-top {
    left: max(60px, 8vw);
    top: 22%;
    transform: translateX(-20px);
}
.panel.active .flavor-cat-left-top {
    transform: translateX(0);
    transition-delay: 0.2s;
}
.flavor-cat-left-bottom {
    left: max(60px, 8vw);
    top: 58%;
    transform: translateX(-20px);
}
.panel.active .flavor-cat-left-bottom {
    transform: translateX(0);
    transition-delay: 0.35s;
}

/* Right side cards */
.flavor-cat-right-top {
    left: auto;
    right: max(60px, 8vw);
    top: 22%;
    transform: translateX(20px);
}
.panel.active .flavor-cat-right-top {
    transform: translateX(0);
    transition-delay: 0.5s;
}
.flavor-cat-right-bottom {
    left: auto;
    right: max(60px, 8vw);
    top: 56%;
    transform: translateX(20px);
}
.panel.active .flavor-cat-right-bottom {
    transform: translateX(0);
    transition-delay: 0.65s;
}

/* Center CTA inside flavor circle */
.flavor-circle-cta {
    position: fixed;
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%);
    z-index: 25;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease 0.6s;
}
.panel.active .flavor-circle-cta {
    opacity: 1;
    pointer-events: auto;
}
.flavor-circle-cta-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 2px;
    margin: 0 0 16px;
    white-space: nowrap;
}
.flavor-circle-cta-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--accent, #d4a843);
    color: #0d0d0d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}
.flavor-circle-cta-btn:hover {
    background: #c4952f;
    transform: scale(1.06);
    box-shadow: 0 0 32px rgba(212, 168, 67, 0.4);
}

/* --- Franchise Panel --- */
#panel-franchise {
    overflow-y: auto;
    justify-content: flex-start;
}
#panel-franchise::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: none;
}
.franchise-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px 60px;
}

/* Hero */
.franchise-hero {
    text-align: center;
    padding: 60px 0 50px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 50px;
}
.franchise-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 4px;
    margin: 0 0 12px;
}
.franchise-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 24px;
}
.franchise-hero-tagline {
    font-size: 16px;
    color: var(--accent, #d4a843);
    letter-spacing: 3px;
    margin: 0 0 16px;
}
.franchise-hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Section titles */
.franchise-section {
    margin-bottom: 56px;
}
.franchise-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-align: center;
    margin: 0 0 36px;
    position: relative;
}
.franchise-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent, #d4a843);
    margin: 14px auto 0;
}

/* Brand Advantages */
.franchise-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.franchise-advantage-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.franchise-advantage-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,168,67,0.3);
}
.fa-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
.franchise-advantage-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 10px;
}
.franchise-advantage-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0;
}

/* Market Data */
.franchise-market {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}
.market-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.market-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent, #d4a843);
    letter-spacing: 2px;
    font-family: "SF Mono", "Cascadia Code", monospace;
}
.market-unit {
    font-size: 18px;
    font-weight: 400;
    margin-left: 2px;
}
.market-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 3px;
}

/* Support Grid */
.franchise-support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.support-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 28px 24px;
    transition: border-color 0.3s;
}
.support-item:hover {
    border-color: rgba(212,168,67,0.2);
}
.support-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 10px;
}
.support-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0;
}

/* Franchise Steps */
.franchise-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.step-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 24px 18px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.step-item:hover {
    transform: translateY(-3px);
    border-color: rgba(212,168,67,0.3);
}
.step-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent, #d4a843);
    font-family: "SF Mono", "Cascadia Code", monospace;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.step-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}
.step-content p {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin: 0;
}

/* ROI */
.franchise-roi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.roi-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212,168,67,0.15);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}
.roi-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent, #d4a843);
    margin: 0 0 12px;
    letter-spacing: 2px;
}
.roi-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin: 0;
}
.roi-card strong {
    color: #fff;
}

/* Success Case */
.franchise-case {
    max-width: 560px;
    margin: 0 auto;
}
.case-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 28px 28px;
}
.case-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent, #d4a843);
    color: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}
.case-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.case-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0;
}
.case-info strong {
    color: var(--accent, #d4a843);
}

/* CTA Section */
.franchise-cta-section {
    text-align: center;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
}
.franchise-cta-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 4px;
    margin: 0 0 12px;
}
.franchise-cta-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 2px;
    margin: 0 0 32px;
}
.franchise-cta-actions {
    margin-bottom: 28px;
}
.franchise-cta-btn {
    display: inline-block;
    padding: 16px 56px;
    background: var(--accent, #d4a843);
    color: #0d0d0d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.franchise-cta-btn:hover {
    background: #c4952f;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(212,168,67,0.35);
}
.franchise-contact-info {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}
.franchise-contact-info strong {
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .franchise-container {
        padding: 60px 20px 40px;
    }
    .franchise-hero-title {
        font-size: 28px;
    }
    .franchise-advantages {
        grid-template-columns: 1fr;
    }
    .franchise-market {
        gap: 32px;
        flex-wrap: wrap;
    }
    .market-num {
        font-size: 36px;
    }
    .franchise-support-grid {
        grid-template-columns: 1fr;
    }
    .franchise-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .franchise-roi {
        grid-template-columns: 1fr;
    }
}

/* --- Contact Panel --- */
#panel-contact {
    overflow-y: auto;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0);
    transition: background 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.panel.active#panel-contact {
    background: rgba(0, 0, 0, 0.5);
}
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 60px 40px;
    width: 100%;
    z-index: 1;
}
.contact-header {
    text-align: center;
    margin-bottom: 56px;
}
.contact-header-label {
    font-size: 10px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}
.contact-header-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    margin: 16px 0 12px;
}
.contact-header-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 3px;
}
.contact-body {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 40px;
}

/* Left: Company Info Card */
.contact-info-card {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 36px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.contact-company-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin: 0 0 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.contact-info-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(212, 168, 67, 0.12);
    border-radius: 8px;
}
.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.contact-info-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}
.contact-info-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    line-height: 1.6;
    word-break: break-all;
}
.contact-link {
    text-decoration: none;
    color: #d4a843;
    transition: color 0.3s;
}
.contact-link:hover {
    color: #e8c56d;
}

/* Right: Social QR Codes */
.contact-social {
    width: 100%;
}
.contact-social-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    margin: 0 0 32px;
    text-align: center;
}
.contact-social-grid {
    display: flex;
    flex-direction: row;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
}
.contact-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    flex: 1;
    max-width: 280px;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.contact-social-item:hover {
    border-color: rgba(212, 168, 67, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}
.contact-social-img-wrap {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    padding: 8px;
    overflow: hidden;
}
.contact-social-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.contact-social-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.55);
}

.contact-cta-section {
    text-align: center;
    padding-top: 40px;
    margin-top: 10px;
}
.contact-cta-section .franchise-cta-btn {
    cursor: pointer;
}

.site-footer {
    margin-top: 40px;
    opacity: 0.4;
}
.footer-logo {
    height: 26px;
    width: auto;
    margin: 0 auto 10px;
}
.footer-copy {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

/* ================================================================
   Map Panel (全国门店分布)
   ================================================================ */

#panel-map {
    overflow: hidden;
    background: transparent;
    z-index: 5;
}

.map-container {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.map-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* Mascot fade-out (activated on map page) */
.mascot-deco.fade-out {
    opacity: 0 !important;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Mobile notice overlay for map panel */
.map-mobile-notice {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: rgba(13, 13, 18, 0.7);
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    padding: 10px 22px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

/* Store count card on map panel — right side, 1/4 from top */
.map-stores-card {
    position: absolute;
    right: 208px;
    top: calc(25% + 300px);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-50%) scale(2);
    transition: opacity 0.6s ease;
    pointer-events: auto;
}
.panel.active .map-stores-card {
    opacity: 1;
}

/* Province fan chart overlay — dark tech theme */
.province-chart {
    position: absolute;
    right: 60px;
    bottom: 8%;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.08));
}
.province-chart.show {
    opacity: 1;
}

/* ================================================================
   Navigation
   ================================================================ */

/* Right side vertical nav */
#nav-right {
    position: fixed;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.8s 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.nav-right-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
}
.nav-right-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 0;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.nav-right-item:hover {
    transform: translateX(-6px);
}
.nav-right-item:active {
    transform: translateX(-2px) scale(0.95);
    transition: transform 0.12s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.nav-right-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--color-text-dim);
    white-space: nowrap;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.5;
}
.nav-right-item:hover .nav-right-label {
    color: var(--color-text);
    opacity: 0.85;
}
.nav-right-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(180, 40, 40, 0.35);
    background: transparent;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.3s;
    flex-shrink: 0;
}
.nav-right-item:hover .nav-right-dot {
    border-color: rgba(180, 40, 40, 0.7);
    transform: scale(1.3);
}
.nav-right-item.active .nav-right-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(217, 54, 54, 0.3);
    transform: scale(1.2);
}
.nav-right-item.active .nav-right-label {
    color: var(--color-dark);
    opacity: 1;
    font-weight: 500;
}

/* Bottom dots */
#nav-dots {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 14px;
}
.nav-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(180, 40, 40, 0.35);
    background: transparent;
    cursor: pointer;
    transition: background 0.4s, border-color 0.4s, transform 0.3s;
    padding: 0;
}
.nav-dot:hover {
    border-color: rgba(180, 40, 40, 0.7);
    transform: scale(1.3);
}
.nav-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(217, 54, 54, 0.3);
}

/* Prev / Next arrows */
#nav-prev, #nav-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: none;
    border: none;
    color: rgba(42, 42, 42, 0.25);
    cursor: pointer;
    padding: 12px;
    transition: color 0.3s, opacity 0.3s;
}
#nav-prev { left: 20px; }
#nav-next { right: 20px; }
#nav-prev:hover, #nav-next:hover { color: rgba(42, 42, 42, 0.6); }

/* ================================================================
   ICP Footer
   ================================================================ */

#icp-footer {
    position: fixed;
    bottom: 12px;
    right: 24px;
    z-index: 100;
    pointer-events: auto;
    opacity: 0;
    animation: fadeIn 0.8s 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
#icp-footer a {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
#icp-footer a:hover {
    color: var(--color-text-dim);
}

#company-footer {
    position: fixed;
    bottom: 12px;
    left: 24px;
    z-index: 100;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.8s 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1024px) {
    .flavor-cat-card { width: 220px; padding: 22px 18px; }
    .flavor-cat-left-top, .flavor-cat-left-bottom { left: max(40px, 6vw); }
    .flavor-cat-right-top, .flavor-cat-right-bottom { left: auto; right: max(40px, 6vw); }
    .flavor-cat-right-top { top: 22%; }
    .flavor-cat-right-bottom { top: 56%; }
    .flavor-circle-cta { left: 50%; top: 43%; }
    #sidenav { width: 100%; }
    .story-visual {
        position: relative;
        right: auto; top: auto;
        transform: none;
        max-width: 240px;
        margin-top: 40px;
    }
    .story-timeline { max-width: 100%; }
    .story-milestone { gap: 16px; }
    .story-year { width: 70px; }
    .story-year span { font-size: 10px; padding: 3px 10px; }
    #panel-story { padding: 60px 20px; }
    .story-content { flex-direction: column; padding: 0; }
    .story-body { padding-left: 0; }
    .story-honors { flex: 0 0 auto; width: 100%; }
    .honors-rail { width: 60%; }
    .honors-grid { flex-direction: row; gap: 20px; justify-content: center; }
    .honor-card { flex: 0 0 auto; }
    .honor-card:nth-child(1) .honor-inner { transform: rotate(-5deg) translateX(-6px); }
    .honor-card:nth-child(2) .honor-inner { transform: rotate(8deg) translateX(8px); }
    .honor-card:nth-child(3) .honor-inner { transform: rotate(-4deg) translateX(-3px); }
    .honor-card:hover .honor-inner { transform: rotate(0deg) translateX(0) scale(1.03); }
    .honor-frame { width: 180px; }
    .hero-stats { gap: 32px; bottom: 4vh; }
    .stat-num { font-size: 42px; }
    .stat-label { font-size: 12px; letter-spacing: 4px; }
    .flip-card { width: 150px; height: 68px; }
    .flip-back-num { font-size: 28px; }
    .flip-back-label { font-size: 10px; }
    .franchise-stats { gap: 28px; }
    .franchise-stat-num { font-size: 28px; }
    .franchise-benefits { flex-direction: column; gap: 12px; }
    #nav-right { right: 10px; }
    .nav-right-inner { gap: 14px; }
    .nav-right-label { font-size: 10px; letter-spacing: 1px; }
    .nav-right-dot { width: 6px; height: 6px; }
    .anim-up, .anim-in, .anim-scale, .anim-left, .anim-right { animation-duration: 0.6s; }
    .mascot-deco { opacity: 0.55; }
    #mascot-01, #mascot-03, #mascot-05, #mascot-07, #mascot-09 { width: 52px; }
    #mascot-02, #mascot-04, #mascot-06, #mascot-08 { width: 42px; }
    #mascot-05 { width: 42px; }
    #mascot-06 { width: 38px; }
    #mascot-10, #mascot-12, #mascot-14, #mascot-16, #mascot-18 { width: 50px; }
    #mascot-11, #mascot-13, #mascot-15, #mascot-17 { width: 40px; }
    .contact-body { gap: 36px; }
    .contact-container { padding: 60px 30px 30px; }
    .contact-info-card { padding: 30px 24px; }
    .contact-social-grid { gap: 20px; }
    .contact-social-item { padding: 18px; max-width: 220px; }
    .contact-social-img-wrap { width: 120px; height: 120px; }
}

@media (max-width: 640px) {
    .flavor-cat-card { width: 180px; padding: 18px 14px; }
    .flavor-cat-left-top, .flavor-cat-left-bottom { left: max(20px, 4vw); }
    .flavor-cat-right-top, .flavor-cat-right-bottom { left: auto; right: max(20px, 4vw); }
    .flavor-cat-right-top { top: 16%; }
    .flavor-cat-right-bottom { top: 52%; }
    .flavor-cat-card h3 { font-size: 16px; letter-spacing: 2px; }
    .flavor-cat-card p { font-size: 11px; }
    .flavor-cat-tags span { font-size: 10px; padding: 3px 8px; }
    .flavor-cat-left-top { top: 18%; }
    .flavor-cat-left-bottom { top: 56%; }
    .flavor-circle-cta { left: 50%; }
    .flavor-circle-cta-text { font-size: 13px; }
    .flavor-circle-cta-btn { font-size: 11px; padding: 10px 24px; }
    .hero-title .line { font-size: clamp(22px, 7vw, 36px); letter-spacing: 4px; }
    .hero-stats { gap: 20px; bottom: 3vh; }
    .stat-num { font-size: 32px; }
    .stat-label { font-size: 10px; letter-spacing: 3px; }
    .flip-card { width: 120px; height: 58px; }
    .flip-back-num { font-size: 24px; }
    .flip-back-label { font-size: 9px; letter-spacing: 1px; }
    .flip-card-sm { width: 110px; height: 50px; }
    .flip-back-num-sm { font-size: 20px; }
    .flip-back-label-sm { font-size: 8px; }
    .franchise-stats { gap: 16px; }
    .franchise-stat-num { font-size: 24px; }
    .franchise-cta { padding: 12px 32px; font-size: 11px; }
    .panel-title { font-size: 24px; letter-spacing: 3px; }
    .panel-inner { padding: 20px; }
    .story-body { padding-left: 0; }
    .story-content { padding: 0; }
    .story-honors { flex: 0 0 auto; width: 100%; }
    .honors-rail { width: 50%; }
    .honors-grid { flex-direction: column; gap: 20px; align-items: center; }
    .honor-frame { width: 160px; }
    .honor-card:nth-child(1) .honor-inner { transform: rotate(-4deg) translateX(-4px); }
    .honor-card:nth-child(2) .honor-inner { transform: rotate(6deg) translateX(6px); }
    .honor-card:nth-child(3) .honor-inner { transform: rotate(-3deg) translateX(-2px); }
    .honor-card:hover .honor-inner { transform: rotate(0deg) translateX(0) scale(1.03); }
    .story-milestone { flex-direction: column; gap: 8px; }
    .story-year { width: auto; text-align: left; }
    .story-card:hover { transform: none; }
    .story-closing { font-size: 12px; }
    .products-inner { max-width: 100%; padding: 0 16px; }
    .contact-body { gap: 24px; }
    .contact-container { padding: 50px 20px 30px; }
    .contact-header-title { font-size: 28px; letter-spacing: 4px; }
    .contact-info-card { padding: 24px 20px; }
    .contact-social-grid { flex-wrap: wrap; gap: 16px; }
    .contact-social-item { flex: 1 1 140px; max-width: none; padding: 16px 12px; }
    .contact-social-img-wrap { width: 100px; height: 100px; }
    .panel-numbers { gap: 28px; }
    .num-block em { font-size: 28px; }
    .story-brand-img { max-width: 200px; }
    .flavor-cat-tags { gap: 5px; }
    #topbar { padding: 14px 20px; }
    #nav-prev, #nav-next { display: none; }
    #nav-dots { bottom: 24px; gap: 10px; }
    #nav-right { right: 6px; }
    .nav-right-inner { gap: 14px; }
    .nav-right-label { font-size: 9px; letter-spacing: 1px; }
    .nav-right-dot { width: 6px; height: 6px; }
    .nav-dot { width: 6px; height: 6px; }
    .anim-up, .anim-in, .anim-scale, .anim-left, .anim-right { animation-duration: 0.5s; }
    .mascot-deco { opacity: 0.4; }
    #mascot-02, #mascot-04, #mascot-06, #mascot-08 { display: none; }
    #mascot-01, #mascot-03, #mascot-05, #mascot-07, #mascot-09 { width: 40px; }
    #mascot-11, #mascot-13, #mascot-15, #mascot-17 { display: none; }
    #mascot-10, #mascot-12, #mascot-14, #mascot-16, #mascot-18 { width: 38px; }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes slideInLeft {
        from { opacity: 0; transform: translateX(-25px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes slideInRight {
        from { opacity: 0; transform: translateX(25px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    @keyframes mascotSpiral {
        0% { transform: translateY(0) translateX(0) rotate(var(--rot)) scale(1); opacity: 0.4; }
        50% { transform: translateY(-45px) translateX(8px) rotate(calc(var(--rot) + 180deg)) scale(1.08); opacity: 0.6; }
        100% { transform: translateY(-90px) translateX(-5px) rotate(calc(var(--rot) + 360deg)) scale(1.02); opacity: 0.45; }
    }
}

/* ================================================================
   Mobile: < 768px
   ================================================================ */

@media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }

    /* Sidenav fullscreen on mobile */
    #sidenav {
        width: 100%;
    }
    #sidenav.open {
        background: rgba(250, 248, 245, 0.97);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
    .sidenav-inner {
        padding: 80px 40px;
    }
    .sidenav-links a {
        font-size: 20px;
    }

    /* Topbar */
    #topbar {
        padding: 14px 16px;
    }
    .topbar-logo {
        height: 40px;
        margin-left: 0;
    }
    .topbar-phone {
        font-size: 12px;
        letter-spacing: 1px;
    }
    .topbar-phone strong {
        font-size: 12px;
    }

    /* Hide nav arrows, bg decorations, and all mascots on mobile */
    #nav-prev, #nav-next, .bg-deco, .mascot-deco {
        display: none;
    }

    /* Hero panel — stacked layout */
    .hero-title {
        top: 12vh;
        flex-direction: column;
        gap: 2px;
    }
    .hero-title .line {
        font-size: clamp(30px, 12vw, 48px);
        letter-spacing: 6px;
    }
    .hero-subtitle {
        top: 42%;
        font-size: 13px;
        letter-spacing: 4px;
    }
    .hero-stats {
        bottom: 10vh;
        gap: 12px;
        padding: 0 12px;
        justify-content: center;
    }
    .stat-num {
        font-size: 28px;
    }
    .stat-label {
        font-size: 10px;
        letter-spacing: 3px;
    }
    .flip-card {
        width: 100px;
        height: 52px;
    }
    .flip-back-num {
        font-size: 18px;
    }
    .flip-back-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    /* Story panel */
    #panel-story {
        padding: 80px 0 40px;
    }
    .story-header {
        padding: 0 20px;
    }
    .story-header .panel-title {
        font-size: 22px;
        letter-spacing: 4px;
    }
    .story-content {
        flex-direction: column;
        padding: 0 20px;
    }
    .story-body {
        padding-right: 0;
    }
    .story-timeline {
        gap: 16px;
        max-width: 100%;
    }
    .story-milestone {
        flex-direction: column;
        gap: 8px;
    }
    .story-year {
        width: auto;
        text-align: left;
    }
    .story-card {
        padding: 14px 18px;
    }
    .story-card:hover { transform: none; }
    .story-card h3 { font-size: 14px; }
    .story-card p { font-size: 12px; line-height: 1.7; }
    .story-closing {
        font-size: 12px;
        margin: 28px auto 20px;
        padding: 16px 20px 0;
    }
    .story-honors {
        width: 100%;
    }
    .honors-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    .honor-frame { width: 160px; }
    .honor-card:nth-child(1) .honor-inner { transform: rotate(-4deg); }
    .honor-card:nth-child(2) .honor-inner { transform: rotate(5deg); }
    .honor-card:nth-child(3) .honor-inner { transform: rotate(-3deg); }
    .honor-card:hover .honor-inner { transform: rotate(0deg) scale(1.03); }

    /* Products / Flavor cards — hide on mobile */
    .flavor-cat-card { display: none; }
    .flavor-circle-cta { left: 50%; top: 50%; }

    /* Flavor detail card — centered on mobile */
    .flavor-detail-card {
        right: 50%;
        transform: translate(50%, -50%);
        width: 88vw;
        max-width: 340px;
        max-height: 60vh;
        padding: 24px 20px;
    }
    .flavor-detail-card.show {
        transform: translate(50%, -50%);
    }
    .flavor-detail-card h3 { font-size: 17px; }
    .flavor-detail-card p { font-size: 13px; line-height: 1.7; }

    /* Franchise panel */
    #panel-franchise {
        padding-top: 60px;
    }
    .franchise-container {
        padding: 20px 18px 40px;
    }
    .franchise-hero {
        padding: 0 0 24px;
    }
    .franchise-hero-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    .franchise-hero-sub {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .franchise-hero-tagline {
        font-size: 11px;
    }
    .franchise-hero-desc {
        font-size: 12px;
        line-height: 1.8;
        padding: 0 4px;
    }
    .franchise-section {
        padding: 16px 0;
    }
    .franchise-section-title {
        font-size: 17px;
        letter-spacing: 3px;
        margin-bottom: 16px;
    }
    .franchise-advantages {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .franchise-advantage-card {
        padding: 18px 16px;
    }
    .franchise-advantage-card h3 {
        font-size: 15px;
    }
    .franchise-advantage-card p {
        font-size: 12px;
    }
    .franchise-market {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .market-stat {
        flex: 0 0 auto;
    }
    .market-num {
        font-size: 28px;
    }
    .market-label {
        font-size: 11px;
    }
    .franchise-support-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .support-item {
        padding: 14px 16px;
    }
    .support-item h3 {
        font-size: 13px;
    }
    .support-item p {
        font-size: 11px;
    }
    .franchise-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .step-item {
        padding: 10px 12px;
    }
    .step-num {
        font-size: 18px;
    }
    .step-content h4 {
        font-size: 11px;
    }
    .step-content p {
        font-size: 10px;
    }
    .franchise-roi {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .roi-card {
        padding: 14px 16px;
    }
    .roi-card h3 {
        font-size: 14px;
    }
    .roi-card p {
        font-size: 12px;
    }
    .franchise-cta-section {
        padding: 30px 0 20px;
    }
    .franchise-cta-title {
        font-size: 20px;
    }
    .franchise-cta-subtitle {
        font-size: 12px;
    }
    .franchise-cta-btn {
        padding: 14px 40px;
        font-size: 13px;
        letter-spacing: 2px;
    }
    .franchise-contact-info {
        font-size: 10px;
    }
    .case-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    /* Contact panel */
    #panel-contact {
        padding-top: 60px;
    }
    .contact-container {
        padding: 20px 18px 30px;
    }
    .contact-header {
        margin-bottom: 32px;
    }
    .contact-header-title {
        font-size: 24px;
        letter-spacing: 4px;
    }
    .contact-header-desc {
        font-size: 12px;
    }
    .contact-body {
        gap: 20px;
    }
    .contact-info-card {
        padding: 22px 18px;
    }
    .contact-company-name {
        font-size: 15px;
        letter-spacing: 2px;
        margin-bottom: 24px;
        padding-bottom: 18px;
    }
    .contact-info-list {
        gap: 20px;
    }
    .contact-info-row {
        gap: 10px;
    }
    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .contact-info-value {
        font-size: 12px;
    }
    .contact-social-grid {
        flex-wrap: wrap;
        gap: 12px;
    }
    .contact-social-item {
        flex: 1 1 130px;
        max-width: none;
        padding: 14px 10px;
    }
    .contact-social-img-wrap {
        width: 90px;
        height: 90px;
    }
    .contact-social-label {
        font-size: 11px;
    }
    .contact-cta-section {
        padding-top: 24px;
    }

    /* Right nav — minimal on mobile */
    #nav-right { right: 2px; }
    .nav-right-inner { gap: 10px; }
    .nav-right-label { font-size: 8px; letter-spacing: 0; }
    .nav-right-dot { width: 5px; height: 5px; }

    /* Panel animations — faster on mobile */
    .anim-up, .anim-in, .anim-scale, .anim-left, .anim-right { animation-duration: 0.5s; }

    /* Footer */
    #icp-footer { font-size: 10px; bottom: 6px; }
    #company-footer { font-size: 10px; bottom: 22px; left: 12px; }

    /* Flavor lightbox */
    .flavor-lightbox img { max-width: 90vw; max-height: 60vh; }

    /* Map panel */
    .map-mascot { width: 80px; }
    .map-stores-card { bottom: 20px; right: 12px; }
    .map-stores-card .stat-num { font-size: 24px; }
    .map-stores-card .stat-label { font-size: 10px; }
}

/* ================================================================
   Small Mobile: < 480px
   ================================================================ */

@media (max-width: 480px) {
    #topbar { padding: 10px 12px; }
    .topbar-logo { height: 32px; }
    .topbar-phone { font-size: 10px; letter-spacing: 0; }
    .topbar-phone strong { font-size: 11px; }

    .hero-title { top: 10vh; }
    .hero-title .line { font-size: clamp(26px, 11vw, 38px); letter-spacing: 4px; }
    .hero-subtitle { font-size: 11px; letter-spacing: 3px; top: 40%; }
    .hero-stats { gap: 8px; bottom: 8vh; padding: 0 8px; }
    .stat-num { font-size: 24px; }
    .stat-label { font-size: 9px; letter-spacing: 2px; }
    .flip-card { width: 90px; height: 48px; }
    .flip-back-num { font-size: 16px; }
    .flip-back-label { font-size: 7px; }

    .story-header .panel-title { font-size: 20px; }
    .story-content { padding: 0 16px; }
    .story-timeline { gap: 12px; }
    .story-card { padding: 12px 14px; }
    .honor-frame { width: 140px; }

    .franchise-container { padding: 10px 12px 30px; }
    .franchise-hero-title { font-size: 20px; }
    .franchise-steps { grid-template-columns: 1fr; }
    .franchise-cta-btn { padding: 12px 32px; font-size: 12px; }

    .contact-container { padding: 10px 12px 24px; }
    .contact-header-title { font-size: 20px; }
    .contact-info-card { padding: 18px 14px; }
    .contact-social-grid { flex-direction: column; align-items: center; }
    .contact-social-item { width: 100%; max-width: 180px; }

    .flavor-circle-cta { top: 52%; }
    .sidenav-links a { font-size: 17px; }
    .sidenav-inner { padding: 60px 28px; }
}

/* ============================================================
   加盟咨询弹窗
   ============================================================ */
.consult-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.consult-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.consult-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    width: 90%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(20px);
    transition: transform 0.35s ease;
    cursor: default;
    user-select: text;
    -webkit-user-select: text;
}
.consult-modal-overlay.active .consult-modal {
    transform: translateY(0);
}
.consult-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}
.consult-modal-close:hover {
    color: #333;
}
.consult-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: 2px;
}
.consult-modal-subtitle {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 0 0 28px;
}
.consult-field {
    margin-bottom: 18px;
}
.consult-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.consult-field .required {
    color: #d93636;
}
.consult-field input,
.consult-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.consult-field input:focus,
.consult-field textarea:focus {
    border-color: #d93636;
    box-shadow: 0 0 0 3px rgba(217,54,54,0.08);
    background: #fff;
}
.consult-field textarea {
    resize: vertical;
    min-height: 80px;
}
.consult-field-submit {
    margin-top: 26px;
    margin-bottom: 0;
}
.consult-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent, #d93636);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.consult-submit-btn:hover {
    background: #c42020;
    transform: scale(1.02);
    box-shadow: 0 4px 24px rgba(217,54,54,0.35);
}
.consult-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.consult-modal-footer {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    margin: 20px 0 0;
}
.consult-modal-footer strong {
    color: var(--accent, #d93636);
}

/* 提交成功/失败提示 */
.consult-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.consult-toast.show {
    opacity: 1;
}
.consult-toast.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.consult-toast.error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

@media (max-width: 768px) {
    .consult-modal {
        padding: 28px 20px 24px;
        width: 95%;
        max-width: 380px;
    }
    .consult-modal-title { font-size: 19px; }
}
