
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 12px;
  background: #f8f9fb;
  color: #333;
}

button:hover {
  background: #0056b3;
}

.container {
  max-width: 320px;
  margin: auto;
  padding: 16px;
}

h1 {
  text-align: center;
  margin-top: 12px;
  font-size: 20px;
}

.lang-switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  gap: 8px;
}

.lang-btn {
  font-size: 14px;
  padding: 6px 16px;
  border: 1px solid #ccc;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
  Transition: background-colour 0.3s ease;
}

.lang-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.tshirt-container {
  position: relative;
  width: 90%;
  height: auto;
  margin: 0 auto;
  background-color: white; /* 避免截图为透明 */
  overflow: hidden;
}
#tshirt {
  width: 300px;
  display: block;
}

.tshirt-bg {
  width: 100%;
  border-radius: 6px;
}

.design-area {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 130px;
  height: 220px;
  border: 2px dashed rgba(255, 0, 0, 0.4);
  z-index: 11;
  pointer-events: none;
  transition: opacity 0.3s;
  transform: translate(-50%, -50%);
}

.design-area.hidden {
  opacity: 0;
}

#design-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;         /* ✅ 设置图片大小 */
  z-index: 10;           /* ✅ 确保在上层 */
  touch-action: none;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.color-controls {
  max-width: 360px;
  margin: 16px auto;
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
  text-align: center; /* ✅ 所有字居中 */
}

label-color {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  margin-bottom: 12px
}

.color-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.size-options {
  display: flex;
  margin-right: 8px;
}

input[type="number"] {
  width: 40px;
  margin-left: 4px;
}

#total-label {
  font-weight: bold;
  margin-top: 16px;
  text-align: center;
  font-size: 16px;
  Color: #007bff;
}

.confirm-btn {
  width: 70%;
  margin: 0 auto;
  display: block;
  font-size: 16px;
  padding: 16px;
  border-radius: 6px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
}
#shipping-fees {
  text-align: center;
  margin-top: -16px;
  margin-bottom: 20px;
  font-size: 16px;
  Color: #71717191
}


