/* 服饰展示页样式 */

/* 导航栏样式 */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--chinese-red);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 30px;
  position: relative;
}

.nav-menu a {
  font-size: 18px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--chinese-red);
  transition: width 0.3s;
}

.nav-menu a:hover {
  color: var(--chinese-red);
}

.nav-menu a:hover:after {
  width: 100%;
}

.nav-tools {
  display: flex;
  align-items: center;
}

.search-box {
  margin-right: 15px;
  position: relative;
}

.search-box input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  width: 180px;
  transition: width 0.3s;
}

.search-box input:focus {
  width: 200px;
  border-color: var(--tibetan-blue);
}

.lang-switch {
  position: relative;
}

.lang-switch select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  outline: none;
}

/* 汉堡菜单（移动端） */
.hamburger {
  display: none;
  cursor: pointer;
}

/* 页面头部 */
.page-header {
  background-color: var(--chinese-red);
  color: white;
  text-align: center;
  padding: 100px 0 60px;
  margin-top: 80px; /* 为固定导航栏留出空间 */
  margin-bottom: 50px;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 15px;
  color: white;
}

.page-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* 材质展示区 */
.material-section {
  padding: 60px 0;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.material-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.material-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.material-item:hover .material-image {
  transform: scale(1.05);
}

.material-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: white;
}

.material-title {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.material-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 3D试衣间 */
.fitting-room-section {
  padding: 80px 0;
  background-color: #f9f8f6;
}

.fitting-room {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.fitting-preview {
  flex: 1;
  min-width: 300px;
  height: 500px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}

.preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mannequin {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

.preview-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

.preview-control {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.preview-control:hover {
  background-color: var(--chinese-red);
  color: white;
  border-color: var(--chinese-red);
}

.fitting-options {
  flex: 1;
  min-width: 300px;
}

.option-group {
  margin-bottom: 30px;
}

.option-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--tibetan-blue);
  font-weight: bold;
}

.costume-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.costume-item {
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.costume-item:hover {
  border-color: var(--earth-yellow);
}

.costume-item.active {
  border-color: var(--chinese-red);
  background-color: rgba(195, 39, 43, 0.05);
}

.costume-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 10px;
}

.costume-name {
  font-size: 0.9rem;
}

.pattern-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pattern-item {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.pattern-item:hover {
  transform: scale(1.1);
}

.pattern-item.active {
  border-color: var(--chinese-red);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.color-item:hover {
  transform: scale(1.1);
}

.color-item.active {
  border-color: #333;
}

/* 服饰对比研究 */
.comparison-section {
  padding: 80px 0;
}

.comparison-container {
  position: relative;
}

.comparison-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.comparison-tab {
  padding: 10px 20px;
  margin: 0 5px;
  background-color: #f2f2f2;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.comparison-tab:hover {
  background-color: var(--earth-yellow);
  color: white;
}

.comparison-tab.active {
  background-color: var(--tibetan-blue);
  color: white;
}

.comparison-content {
  display: none;
}

.comparison-content.active {
  display: block;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.comparison-item {
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-item h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--tibetan-blue);
}

.comparison-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.comparison-features {
  margin-bottom: 15px;
}

.feature-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--chinese-red);
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .material-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .costume-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
  
  .material-grid {
    grid-template-columns: 1fr;
  }
  
  .fitting-room {
    flex-direction: column;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .pattern-item, .color-item {
    margin-bottom: 10px;
  }
} 