:root {
  --primary-color: #1a73e8;
  --secondary-color: #1557b0;
  --accent-color: #ff6f61;
  --text-color: #2d3748;
  --bg-color: #f8f9fa;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --disabled-color: #cccccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  /* 移除 flex 布局，让页面内容自然流动 */
  min-height: 100vh; /* 保持最小高度 */
  overflow-x: hidden; /* 只隐藏水平滑动 */
}

/* 只对warehouse页面禁用桌面端滑动 */
@media (min-width: 769px) {
  body.warehouse-page {
    /* 移除固定高度和overflow限制，允许warehouse页面也可以滚动 */
    min-height: 100vh; /* 改为min-height，允许内容扩展 */
    overflow-y: auto; /* 允许垂直滚动 */
  }
}

header {
  background: linear-gradient(145deg, #2c3e50, #34495e);
  color: white;
  padding: 20px 0;
  height: 130px;
  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-family: 'Noto Serif SC', serif;
  text-shadow: 
    1px 1px 1px rgba(0,0,0,0.2),
    2px 2px 1px rgba(0,0,0,0.15),
    3px 3px 1px rgba(0,0,0,0.1),
    4px 4px 1px rgba(0,0,0,0.05);
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}

header p {
  margin: 5px 0 0;
  color: #ddd;
  font-size: 0.9rem;
}

.yellowbar {
  border-bottom: 3px solid rgba(17, 82, 166, 0.8);
  margin: 10px 80px; /* 减少上下间距，从20px改为10px */
  position: relative;
  box-shadow: 
    0 4px 6px rgba(17, 82, 166, 0.1),
    0 1px 3px rgba(17, 82, 166, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: linear-gradient(
    to right,
    rgba(17, 82, 166, 0.1),
    rgba(17, 82, 166, 0.3)
  );
  animation: yellowbarGlow 3s ease-in-out infinite alternate;
}

.yellowbar::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(17, 82, 166, 0.8),
    transparent
  );
  opacity: 0.8;
  animation: yellowbarFlow 6s linear infinite;
}

@keyframes yellowbarGlow {
  0% {
    box-shadow: 
      0 4px 6px rgba(17, 82, 166, 0.1),
      0 1px 3px rgba(17, 82, 166, 0.08),
      inset 0 1px 1px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 
      0 8px 12px rgba(17, 82, 166, 0.2),
      0 2px 6px rgba(17, 82, 166, 0.15),
      inset 0 2px 2px rgba(255, 255, 255, 0.15);
  }
}

@keyframes yellowbarFlow {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}