* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #f5f7fa;
  font-size: 14px;
  color: #333;
}

.layout {
  display: flex;
  width: 100%;
}
.left-menu {
  width: 220px;
  background: #1f2937;
  height: 100vh;
  padding-top: 30px;
  position: fixed;
}
.left-menu div {
  color: #ccc;
  padding: 15px 30px;
  cursor: pointer;
}
.left-menu div:hover {
  background: #007aff;
  color: #fff;
}

.main-content {
  margin-left: 220px;
  padding: 30px;
  width: calc(100% - 220px);
}
h2 {
  margin-bottom: 20px;
}

table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid #eee;
  padding: 12px;
  text-align: center;
}
button {
  padding: 5px 10px;
  margin: 0 3px;
  border: none;
  background: #007aff;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
}

.stat-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.stat-box .item {
  background: #fff;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 8px #eee;
}
.stat-box .item span {
  font-size: 24px;
  color: #007aff;
  font-weight: bold;
}

/* —————————— 弹窗终极修复 —————————— */
.pop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.pop.show {
  display: flex;
}
.pop-box {
  background: #fff;
  width: 480px;
  max-width: 95%;
  padding: 25px;
  border-radius: 10px;
  max-height: 85vh;       /* 关键：限制高度 */
  overflow-y: auto;       /* 关键：内部滚动 */
  position: relative;
}
.pop-box h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}
.pop-box input,
.pop-box select,
.pop-box textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.pop-box p {
  margin-top: 8px;
  font-weight: 500;
}
#sizeCheck {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
#sizeCheck label {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}
.pop-box button {
  margin-top: 15px;
  padding: 8px 16px;
}