body {
    font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh; /* 确保body至少占满整个视口高度 */
	box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    padding: 10px 10px;
    border-bottom: 1px solid #ddd;
}

.header div {
    font-size: 16px;
}

/* 让所有内容占据可用空间 */
.content {
    flex: 1;
}

.container {
    display: flex;
    justify-content: space-around;
    padding: 5px;
    flex-wrap: wrap; /* 如果内容超出容器宽度，允许换行 */
}

.upload-section, .result-section {
    /*border: 1px solid #ccc; */
    padding: 5px;
    text-align: center;
    box-sizing: border-box; /* 确保padding和border包含在元素的width和height内 */
}

.upload-section {
    /*margin-bottom: 20px;  可选：为两个部分之间添加一些空间 */
	margin-left: 5px;
}
.result-section {
	margin-right: 5px;
}

.image-preview {
    width: 270px; /* 设置宽度 */
    height: 300px; /* 设置高度 */
    border: 1px dashed #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative; /* 确保.plus-sign相对于此元素定位 */
}

.clickable {
    cursor: pointer;
}

.plus-sign {
    font-size: 60px;
    color: #aaa;
    position: absolute;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
	object-fit: cover; /* 使图片覆盖整个容器，可能会裁剪 */
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
}

.hairstyle-gallery {
    margin-top: 5px; /* 在container和发型图片展示区之间添加一些间距 */
    text-align: center;
}

.hairstyle-images {
    display: flex;
    justify-content: center;
    gap: 5px; /* 图片之间的间距 */
    flex-wrap: wrap; /* 如果图片超出容器宽度，则换行 */
	width: 100%;
	max-width: 720px;
	margin: 0 auto; /* 使用自动外边距使整个块水平居中 */
}
.hairstyle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.hairstyle-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.hairstyle-images img {
    width: 130px; /* 设置发型图片的宽度 */
    height: 150px; /* 设置发型图片的高度 */
	border-radius: 8px; /* 添加圆角 */
    transition: transform 0.3s ease; /* 添加悬停动画 */
}

.color-images {
    display: flex;
    justify-content: center;
    gap: 5px; /* 图片之间的间距 */
    flex-wrap: wrap; /* 如果图片超出容器宽度，则换行 */
	width: 100%;
	max-width: 720px;
	margin: 0 auto; /* 使用自动外边距使整个块水平居中 */
}
.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.color-images img {
    width: 130px; /* 设置发型图片的宽度 */
    height: 120px; /* 设置发型图片的高度 */
	border-radius: 8px; /* 添加圆角 */
    transition: transform 0.3s ease; /* 添加悬停动画 */
}

.color-name {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

/* 悬停效果 */
.color-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.hairstyle-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.hairstyle-more {
    margin-top: 5px; 
	text-align: center;
}

.more-images {
    display: inline-block; /* 让容器本身可以被内容撑开，并且能够水平居中 */
    text-align: center; /* 确保内部元素居中对齐 */
}
/*.more-images img{
    display: block;
	width: 500px;
	height: 450px;
	margin: 0 auto; 
	object-fit: cover;
}*/

.rating-img {
    display: inline-block; /* 使图片在同一行显示 */
    width: 300px; /* 根据需要调整宽度 */
    height: 420px; /* 根据需要调整高度 */
    margin: 10px; /* 可选：为图片之间添加一些间距 */
	vertical-align: middle;
    /*object-fit: cover;*/
}

.erweima-img {
    display: inline-block; /* 使图片在同一行显示 */
    width: 400px; /* 根据需要调整宽度 */
    height: 420px; /* 根据需要调整高度 */
    margin: 10px; /* 可选：为图片之间添加一些间距 */
	vertical-align: middle;
    /*object-fit: cover;*/
}

.hairstyle-option, .color-option {
    cursor: pointer;
}

.error-message {
    color: red;
    padding: 20px;
    text-align: center;
}

.loading {
    color: #666;
    padding: 20px;
    text-align: center;
	font-size: 16px;
	color: red;
}

.hairstyle-option.selected,
.color-option.selected {
    border: 1px solid red;
    box-sizing: border-box; /* 确保边框不改变元素尺寸 */
}

footer {
    width: 100%;
    text-align: center;
    padding: 5px;
    color: black;
    font-size: 14px;
    /*background-color: rgba(0, 0, 0, 0.7); */
	margin-top: 50px;
}

.feature-description {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 25px;
  margin: 50px 1px 30px 1px;
  max-width: 500px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #4e73ff;
  position: relative;
  overflow: hidden;
}

.feature-description::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234e73ff" opacity="0.1"><path d="M12 2L4 12l8 10 8-10z"/></svg>');
  background-size: contain;
}

.feature-description h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(78, 115, 255, 0.3);
  position: relative;
}

.feature-description h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: #4e73ff;
}

.feature-description ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-description li {
  position: relative;
  padding-left: 35px;
  line-height: 1.6;
  color: #495057;
  font-size: 1.1rem;
}

.feature-description li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4e73ff;
  font-weight: bold;
  font-size: 1.3rem;
  background: rgba(78, 115, 255, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 悬停动画效果 */
.feature-description li:hover {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

.feature-description li:hover::before {
  background: rgba(78, 115, 255, 0.2);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .feature-description {
    padding: 20px;
	margin: 40px 5px 20px 5px;
	max-width: 500px;
  }

  .feature-description ul {
    grid-template-columns: 1fr;
  }

  .feature-description h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .feature-description li {
    font-size: 1rem;
    padding-left: 28px;
  }

  .feature-description li::before {
    width: 22px;
    height: 22px;
    font-size: 1rem;
  }
}
