/* ============================================
   common.css - 虾脑网站全局样式
   来源：BAOAN 00-base.css + 01-header.css + 02-footer.css + 模块导航
   ============================================ */

/* ============================================
   1. CSS Reset + 变量（来自 00-base.css）
   ============================================ */

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

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

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url('../bg.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* 暗色主题变量 */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  --accent-purple: #b88fff;
  --accent-purple-light: #d6b2ff;
  --accent-lime: #d8ff7c;
  --accent-lime-dark: #b8df5c;
  --accent-gradient: linear-gradient(135deg, var(--accent-purple), var(--accent-lime));
  
  --border-color: #222222;
  --border-light: #333333;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --bg-card: #1a1a1a;
  
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 120px;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* 顶栏高度（供各页面 offset 用） */
  --header-height: 64px;
  --nav-height: 46px;
}

body.page-dark {
  background-color: rgba(10, 10, 26, 0.88);
  background-blend-mode: overlay;
  color: var(--text-primary);
  position: relative;
}

/* ===== 全局返回按钮 ===== */
.back-home-btn {
  position: fixed;
  top: calc(var(--header-height, 64px) + var(--nav-height, 46px) + 16px);
  left: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.back-home-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.back-home-btn svg {
  width: 14px;
  height: 14px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection {
  background: var(--accent-purple);
  color: #ffffff;
}

/* ============================================
   2. 顶部栏（来自 01-header.css）
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-primary);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* 主行：Logo + 卡车 + 按钮 */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-lg);
  gap: var(--space-md);
}

.header-logo {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.header-logo:hover { transform: scale(1.05); }

.header-logo .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- 卡车动画 ----- */
.header-trucks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 30px;
  min-width: 0;
}

.truck-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.truck-container .loader {
  width: 120px;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.truckWrapper {
  width: 120px;
  height: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: flex-end;
  overflow-x: hidden;
}

.truckBody {
  width: 78px;
  height: fit-content;
  animation: motion 0.5s linear infinite;
}

.truckBody svg { width: 100%; height: auto; }

@keyframes motion {
  0% { transform: translateY(0px); }
  50% { transform: translateY(2px); }
  100% { transform: translateY(0px); }
}

.road {
  width: 180px;
  height: 1.5px;
  background-color: #282828;
  position: absolute;
  bottom: 5px;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
}

.road::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 100%;
  background-color: #282828;
  right: -35px;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 6px solid white;
}

.road::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 100%;
  background-color: #282828;
  right: -48px;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 3px solid white;
}

@keyframes roadAnimation {
  0% { transform: translateX(0px); }
  100% { transform: translateX(-210px); }
}

.lampPost {
  position: absolute;
  bottom: 5px;
  right: -50px;
  height: 50px;
  animation: roadAnimation 1.4s linear infinite;
}

.lampPost svg { width: 12px; height: auto; }

/* ----- 头部按钮组 ----- */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 120px;
  height: 47px;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  overflow: visible;
  z-index: 1;
  white-space: nowrap;
  text-decoration: none;
}

.header-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: var(--accent-gradient);
  border-radius: 14px;
  z-index: -1;
  transition: all 0.3s ease-in-out;
}

.header-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  border-radius: 9px;
  z-index: -1;
  transition: all 0.3s ease-in-out;
}

.header-btn .btn-text {
  position: relative;
  z-index: 3;
  text-align: center;
  display: block;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 143, 255, 0.25);
}

.header-btn:active { transform: scale(0.95); }

.food-roulette-btn.rolling { pointer-events: none; }
.food-roulette-btn.rolling .btn-text { animation: textBlur 0.1s linear infinite; }

@keyframes textBlur {
  0%   { filter: blur(0);   opacity: 0.8; }
  50%  { filter: blur(2px); opacity: 0.6; }
  100% { filter: blur(0);   opacity: 0.8; }
}

/* ----- 联系咖喱弹窗 ----- */
.contact-curry-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--bg-card);
  border: 2px solid var(--accent-purple);
  border-radius: 20px;
  padding: 30px 40px;
  text-align: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  min-width: 300px;
}

.contact-curry-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.contact-curry-popup .popup-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-lime));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--bg-primary);
  font-family: 'Inter', sans-serif;
}

.contact-curry-popup .popup-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-curry-popup .popup-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.contact-curry-popup .popup-status {
  font-size: 13px;
  color: var(--accent-purple);
  font-weight: 600;
}

/* ----- 食物结果弹窗 ----- */
.food-result {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--bg-card);
  border: 2px solid var(--accent-purple);
  border-radius: 20px;
  padding: 30px 50px;
  text-align: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.food-result.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.food-result-icon {
  font-size: 60px;
  margin-bottom: 15px;
  display: block;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.food-result-text {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.food-result-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ----- 汉堡菜单 ----- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }


/* ============================================
   3. 模块导航行（新增）
   ============================================ */

.module-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--space-md);
}

.module-nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  max-width: 1280px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.module-nav-item {
  display: block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}

.module-nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.module-nav-item.active {
  color: var(--accent-lime);
  font-weight: 600;
}

.module-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

.module-nav-item.coming-soon {
  color: var(--text-muted);
  cursor: not-allowed;
  position: relative;
}

.module-nav-item.coming-soon:hover {
  background: transparent;
  color: var(--text-muted);
}

.module-nav-item.coming-soon::before {
  content: '✦ ';
  font-size: 10px;
}

/* ============================================
   4. 底部栏（来自 02-footer.css）
   ============================================ */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--space-lg);
  text-align: center;
  gap: var(--space-sm);
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-brand {
  padding: var(--space-md) var(--space-xl);
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo .accent {
  -webkit-text-fill-color: var(--accent-lime);
}

.footer-slogan-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  flex-wrap: wrap;
}

.footer-slogan {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.footer-rest-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  white-space: nowrap;
}

.footer-divider {
  width: 80%;
  max-width: 600px;
  height: 2px;
  margin: var(--space-md) auto;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-lime), transparent);
  border-radius: 1px;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-purple);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-link:hover svg { fill: #ffffff; }

/* ----- 飞船速度线 ----- */
.footer-loader-speeder {
  position: relative;
  width: 100px;
  height: 50px;
  animation: footer-speeder 0.4s linear infinite;
  opacity: 0.7;
}

.footer-loader-speeder .footer-base {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 80px solid var(--text-primary);
  border-bottom: 6px solid transparent;
}

.footer-loader-speeder .footer-base span {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 80px solid var(--text-primary);
  border-bottom: 6px solid transparent;
}

.footer-loader-speeder .footer-base span::before {
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--text-primary);
  position: absolute;
  right: -90px;
  top: -12px;
}

.footer-loader-speeder .footer-base span::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 0 solid transparent;
  border-right: 45px solid var(--text-primary);
  border-bottom: 14px solid transparent;
  top: -12px;
  right: -80px;
}

.footer-loader-speeder .footer-face {
  position: absolute;
  height: 10px;
  width: 16px;
  background: var(--text-primary);
  border-radius: 16px 16px 0 0;
  transform: rotate(-40deg);
  right: -100px;
  top: -12px;
}

.footer-loader-speeder .footer-face::after {
  content: "";
  height: 10px;
  width: 10px;
  background: var(--text-primary);
  right: 3px;
  top: 6px;
  position: absolute;
  transform: rotate(40deg);
  transform-origin: 50% 50%;
  border-radius: 0 0 0 2px;
}

.footer-loader-speeder > span > span:nth-child(1),
.footer-loader-speeder > span > span:nth-child(2),
.footer-loader-speeder > span > span:nth-child(3),
.footer-loader-speeder > span > span:nth-child(4) {
  width: 24px;
  height: 1px;
  background: var(--accent-purple);
  position: absolute;
  animation: footer-fazer1 0.2s linear infinite;
}

.footer-loader-speeder > span > span:nth-child(2) { top: 2px; animation: footer-fazer2 0.4s linear infinite; }
.footer-loader-speeder > span > span:nth-child(3) { top: 1px; animation: footer-fazer3 0.4s linear infinite; animation-delay: -1s; }
.footer-loader-speeder > span > span:nth-child(4) { top: 3px; animation: footer-fazer4 1s linear infinite; animation-delay: -1s; }

@keyframes footer-fazer1 { 0% { left: 0; } 100% { left: -60px; opacity: 0; } }
@keyframes footer-fazer2 { 0% { left: 0; } 100% { left: -80px; opacity: 0; } }
@keyframes footer-fazer3 { 0% { left: 0; } 100% { left: -40px; opacity: 0; } }
@keyframes footer-fazer4 { 0% { left: 0; } 100% { left: -120px; opacity: 0; } }

@keyframes footer-speeder {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-1px, 0) rotate(1deg); }
  30% { transform: translate(1px, 1px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-1px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 1px) rotate(0deg); }
  100% { transform: translate(1px, -1px) rotate(-1deg); }
}

/* ----- 齿轮箱 ----- */
.footer-gearbox {
  background: var(--bg-tertiary);
  height: 120px;
  width: 160px;
  position: relative;
  border: none;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

.footer-gearbox .footer-overlay {
  border-radius: 6px;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  box-shadow: inset 0px 0px 20px black;
  transition: background 0.2s;
  background: transparent;
}

.footer-gear {
  position: absolute;
  height: 48px;
  width: 48px;
  box-shadow: 0px -1px 0px 0px #888888, 0px 1px 0px 0px black;
  border-radius: 24px;
}

.footer-gear.one   { top: 10px;  left: 8px; }
.footer-gear.two   { top: 48px;  left: 48px; }
.footer-gear.three { top: 88px;  left: 8px; }
.footer-gear.four  { top: 10px;  left: 102px; }

.footer-gear::after {
  content: "";
  position: absolute;
  height: 28px;
  width: 28px;
  border-radius: 28px;
  background: var(--bg-tertiary);
  top: 50%;
  left: 50%;
  margin-left: -14px;
  margin-top: -14px;
  z-index: 3;
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.1), inset 0px 0px 10px rgba(0, 0, 0, 0.1), inset 0px 2px 0px 0px #090909, inset 0px -1px 0px 0px #888888;
}

.footer-gear-inner {
  position: relative;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, var(--accent-purple), #444);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-gear .footer-gear-inner .footer-bar {
  background: linear-gradient(135deg, var(--accent-purple), #444);
  height: 12px;
  width: 60px;
  position: absolute;
  left: 50%;
  margin-left: -30px;
  top: 50%;
  margin-top: -6px;
  border-radius: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-gear .footer-gear-inner .footer-bar:nth-child(2) { transform: rotate(60deg); }
.footer-gear .footer-gear-inner .footer-bar:nth-child(3) { transform: rotate(120deg); }
.footer-gear .footer-gear-inner .footer-bar:nth-child(4) { transform: rotate(90deg); }

.footer-gear.one .footer-gear-inner   { animation: footer-counter-clockwise 3s infinite linear; }
.footer-gear.two .footer-gear-inner   { animation: footer-clockwise 3s infinite linear; }
.footer-gear.three .footer-gear-inner { animation: footer-counter-clockwise 3s infinite linear; }
.footer-gear.four .footer-gear-inner  { animation: footer-counter-clockwise 6s infinite linear; }

@keyframes footer-clockwise         { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes footer-counter-clockwise { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }

/* ----- 咖啡杯 ----- */
.footer-loader-coffee {
  width: 60px;
  height: 40px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.5);
}

.footer-loader-coffee .footer-cup {
  position: absolute;
  width: 25px;
  height: 18px;
  background-color: var(--text-primary);
  border: 1px solid var(--border-color);
  z-index: 1;
  border-radius: 2px 2px 10px 10px;
  animation: footer-expansion 6s infinite ease-in-out;
  transform-origin: center;
}

.footer-loader-coffee .footer-cup::after {
  content: "";
  position: absolute;
  top: -2px;
  width: calc(100% - 2px);
  height: 2px;
  background: var(--accent-purple);
  border: 1px solid var(--border-color);
  border-radius: 50%;
}

.footer-loader-coffee .footer-cup::before {
  content: "";
  position: absolute;
  top: 15px;
  width: calc(100% - 2px);
  height: 4px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 50%;
  z-index: -1;
}

.footer-loader-coffee .footer-cup .footer-cup-handle {
  position: absolute;
  width: 5px;
  height: 10px;
  background-color: var(--text-primary);
  border: 1px solid var(--border-color);
  right: -5px;
  top: 2px;
  border-radius: 2px 10px 20px 2px;
}

.footer-loader-coffee .footer-cup .footer-smoke {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 15px;
  height: 25px;
  background: rgba(184, 143, 255, 0.4);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: footer-rise 6s infinite ease-in-out;
  filter: blur(8px);
}

.footer-loader-coffee .footer-cup .footer-smoke.one   { animation-delay: 0s; }
.footer-loader-coffee .footer-cup .footer-smoke.two   { animation-delay: 1s; }
.footer-loader-coffee .footer-cup .footer-smoke.three { animation-delay: 2s; }

@keyframes footer-expansion {
  0% { width: 25px; transform: translateX(0); }
  40% { width: 100%; transform: translateX(0); }
  80% { width: 25px; transform: translateX(50px); }
  90% { width: 100%; transform: translateX(0); }
  100% { width: 25px; transform: translateX(0); }
}

@keyframes footer-rise {
  0% { transform: translate(-50%, 0) scale(0.4); opacity: 0; }
  30% { opacity: 0.7; }
  60% { opacity: 0.4; }
  100% { transform: translate(-50%, -80px) scale(1); opacity: 0; }
}

/* ----- 波浪洗衣机 ----- */
.footer-loader-washer {
  width: 50px;
  height: 60px;
  background-color: var(--bg-tertiary);
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--border-color) 50%, var(--text-muted) 51%),
    linear-gradient(var(--border-color), var(--border-color)),
    linear-gradient(var(--border-color), var(--border-color)),
    radial-gradient(ellipse at center, var(--text-secondary) 25%, var(--bg-card) 26%, var(--bg-card) 50%, transparent 55%),
    radial-gradient(ellipse at center, var(--text-secondary) 25%, var(--bg-card) 26%, var(--bg-card) 50%, transparent 55%),
    radial-gradient(ellipse at center, var(--text-secondary) 25%, var(--bg-card) 26%, var(--bg-card) 50%, transparent 55%);
  background-position: 0 8px, 18px 0, 3px 2px, 23px 1px, 31px 1px, 39px 1px;
  background-size: 100% 2px, 1px 9px, 12px 4px, 6px 6px, 6px 6px, 6px 6px;
  position: relative;
  border-radius: 6%;
  animation: footer-shake 3s ease-in-out infinite;
  transform-origin: 25px 72px;
  opacity: 0.6;
}

.footer-loader-washer::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 100%;
  width: 3px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 0 0 2px 2px;
  box-shadow: 42px 0 var(--text-muted);
}

.footer-loader-washer::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 8px;
  background-color: rgba(184, 143, 255, 0.15);
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 49%, transparent 50%, transparent 100%),
    linear-gradient(135deg, var(--accent-purple) 50%, var(--text-muted) 51%);
  background-size: 12px 100%, 36px 32px;
  border-radius: 50%;
  background-repeat: repeat, no-repeat;
  background-position: 0 0;
  box-sizing: border-box;
  border: 4px solid var(--border-color);
  box-shadow: 0 0 0 2px var(--text-muted) inset, 0 0 3px 3px rgba(0,0,0,0.3) inset;
  animation: footer-spin 3s ease-in-out infinite;
}

@keyframes footer-spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(360deg); }
  75% { transform: rotate(750deg); }
  100% { transform: rotate(1800deg); }
}

@keyframes footer-shake {
  65%, 80%, 88%, 96% { transform: rotate(0.5deg); }
  50%, 75%, 84%, 92% { transform: rotate(-0.5deg); }
  0%, 50%, 100% { transform: rotate(0); }
}


/* ============================================
   5. 响应式
   ============================================ */

@media (max-width: 768px) {
  .header-main {
    padding: 0 var(--space-md);
  }

  .header-trucks { gap: 15px; }
  .truck-container { gap: 15px; }
  .truck-container .loader { width: 80px; }
  .truckWrapper { width: 80px; height: 40px; }
  .truckBody { width: 52px; }
  .road { width: 100px; }
  .road::before, .road::after { display: none; }
  .lampPost { display: none; }

  .menu-toggle { display: flex; }
  .header-btn { transform: scale(0.85); min-width: 100px; }

  .module-nav { overflow-x: auto; justify-content: flex-start; }
  .module-nav-list { flex-wrap: nowrap; gap: 2px; padding: 0 var(--space-sm); }
  .module-nav-item { padding: 6px 12px; font-size: 12px; }

  .footer-top-row { gap: var(--space-sm); }
  .footer-logo { font-size: 2rem; }
  .footer-slogan-row { flex-direction: column; gap: var(--space-xs); }
  .footer-slogan { font-size: 1rem; white-space: normal; }
  .footer-rest-text { font-size: 0.8rem; }
  .footer-loader-coffee { transform: scale(0.4); }
  .footer-loader-washer { transform: scale(0.8); }
  .footer-gearbox { width: 100px; height: 75px; }
  .footer-loader-speeder { transform: scale(0.6); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
}
