
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    padding: 20px;
    margin:0;
    padding:0;
}

body#home {
    background-color: #DDC295;
    background: url(img/decorate.png) #DDC295;
    background-repeat: repeat-y;
    background-position-x: 90%;
    background-position-y: 21%;
    font-size: 20px;
}

body#dress-home {
    background-color: #DDC295;
}

body#dress-bg {background-color: #AAA4C8;}

body#makeup-bg {background-color: #9FC4E1;}

body#hairstyle-bg {background-color: #DAB09F;}

/* 汉堡菜单按钮样式 */
.menu-icon {
    font-size: 24px;
    cursor: pointer;
}

/* 侧边菜单栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -220px; /* 初始隐藏 */
    width: 200px;
    height: 100vh;
    background-color: #98A47D; /* 绿色背景 */
    padding-top: 50px;
    transition: left 0.3s ease; /* 动画效果 */
}

/* 菜单栏列表 */
.sidebar ul {
    list-style: none;
    padding-left: 20px;
}

.sidebar ul li {
    font-size: 20px;
    padding: 15px 0;
}

/* 菜单文字 */
.sidebar ul li a {
    text-decoration: none;
    color: black;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 24px;
    cursor: pointer;
}

header {
    background-color: #A6B893;
    color: white;
    /* padding: 20px 0; */
    text-align: center;
    padding: 2%;
    /*    border: 1px*/
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
     align-items:center;
    height: 20vh;
    width: 96%;
}

.fa-bars, .fa-user {color:#111;
font-size: 4em;
line-height: normal;}

option{
    color: rgb(0, 0, 0);
    padding: 20px 0;
    text-align: center;
    padding: 2%;
    /*    border: 1px*/
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
}

.carousel {
    width: 700px;
    height: 450px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: auto; /* 居中 */
}

.carousel-inner {
    display: flex;
    /* width: 400%;
    transition: transform 0.5s ease-in-out; */
    width: 1000%; /* 12 张图片，每张占 100% */
    animation: slide 240s linear infinite; /* 匀速播放 24 秒后循环 */
}

.carousel-item {
    /* width: 25%; */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 关键帧动画：匀速滚动 12 张图片 */
@keyframes slide {
    0% { transform: translateX(0%); }
    10% { transform: translateX(-100%); }
    20% { transform: translateX(-200%); }
    30% { transform: translateX(-300%); }
    40% { transform: translateX(-400%); }
    50% { transform: translateX(-500%); }
    60% { transform: translateX(-600%); }
    70% { transform: translateX(-700%); }
    80% { transform: translateX(-800%); }
    90% { transform: translateX(-900%); }
    /* 83.33% { transform: translateX(-1000%); }
    91.66% { transform: translateX(-1100%); } */
    100% { transform: translateX(0%); } /* 循环回到第一张 */
}

#container {
    /*    background-color: aliceblue;*/
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    border: 1px black;
    /*    text-align: center;*/
    /* background-color: #FFF; */
}

.resp {

    max-width: 300px;
    height: 0 auto;
}

.logo {
    max-width: 200px;
    height: 0 auto;
    /* margin: -20px; */
}

.cols {

    display:grid;
    grid-template-columns: 1fr 2fr;
    grid-gap:20px;
    margin:40px 0;
}

.Han-Intro {
    display: flex;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    align-items: center;
}
.Begin-image {
    flex: 1;
    padding-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image img {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
}
.Intro-text {
    flex: 2;
    color: #333;
}
.Intro-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
.Intro-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}


section {
    margin-bottom: 20px;
    padding: 15px;
    /* background-color: white; */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #4CAF50;
}


/* footer {
    background-color: #A6B893;
    color: black;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
} */

.bottom-bar {
    display: flex;
    justify-content: space-around;
    background-color: #A6B893; /* 绿色背景 */
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.bottom-bar i {
    font-size: 24px;
    cursor: pointer;
}


/* styles for navigation bart */

ul {
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;

    /* background-color: #333; */
    /* border: 1px red solid; */

  }

  ul#three {
    text-align: center;
    width: 55%;
    margin: 0 auto;
    /* border:1px red solid; */
  }
  
  
  li {
    float: left;
  }
  
  li a {
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    margin:40px;
    text-decoration: none;
  }
  
  li a:hover:not(.active) {
    background-color: #585656;
  }
  
  .active {
    display: none;
  }
  
  #party-2
  {
    display: hidden;
  }
  #party-3
  {
    display: hidden;
  }
  #sport-2
  {
    display: hidden;
  }
  #daily-2
  {
    display: hidden;
  }
  #daily-3
  {
    display: hidden;
  }

  .dynasty {
    background-color: #C3B59B;
  }


  .dresses {
    background-color: #AAA4C8;
  }

  .makeup {
    background-color: #9FC4E1;
  }

  .hairstyle {
    background-color: #DAB09F;
  }

  .game {
    background-color: #BF9972;
  }

  /* styles for slider on index */

  @keyframes slidy {
    0% {
        left: 0%;
    }

    20% {
        left: 0%;
    }

    25% {
        left: -100%;
    }

    45% {
        left: -100%;
    }

    50% {
        left: -200%;
    }

    70% {
        left: -200%;
    }

    75% {
        left: -300%;
    }

    95% {
        left: -300%;
    }

    100% {
        left: -400%;
    }
}

div#slider {
    overflow: hidden;
    width:100%;
    height: 60vh;
    margin:0 auto;
    border-radius: 40px;;
}

div#slider figure img {
    width: 20%;
    float: left;
}

div#slider figure {
    position: relative;
    width: 500%;
    margin: 0;
    left: 0;
    text-align: left;
    font-size: 0;
    animation: 15s slidy infinite;
}

/* 返回按钮 */
.back-button {
    position: absolute;
    top: 260px;
    left: 150px;
    font-size: 35px;
    cursor: pointer;
}

/* 标题 */
.title {
    font-size: 64px;
    /* margin-top: 50px;
    margin-left: 600px; */
    text-align: center;
}

/* 图片网格 */

.grid {
   display: grid;
   position: relative;
   left: 185px; /* 向左移动 100px */
   grid-template-columns: repeat(3, 1fr);
   gap: calc(10px * 3); /* 根据放大比例计算 */
   padding: 20px;
   max-width: 600px; /* 调整最大宽度 */
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item img {
    /* height: auto; */
    width: calc(100px * 3); /* 图片等比例放大 */
    border-radius: 5px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.item img:hover {
    transform: scale(1.2);
}

.item p {
    font-size: 44px;
    font-weight: bold;
}

.description {
    font-size: 21px;
    padding: 10px;
    margin: 10px 30px;
    text-align: left;
    background-color: #A6B893;
    border-radius: 8px;
}

/* 服饰分类 */
.section {
    margin: 30px 0;
    padding: 10px;
}

.section-title {
    font-size: 40px;
    font-weight: bold; 
    /* margin-left: 20px; 负值向左移动  */
    margin-left: 20px;
    text-align: left;
}

/* slider styles */

.slider-container {
    position: relative;
    max-width: 300px; /* 设置图片最大宽度 */
    margin: auto;
    overflow: hidden;
}

/* 图片样式 */
.slider img {
    width: 100%;
    display: none; 默认隐藏所有图片
    
}

.slider img.active{
    display:block;
}

.detail {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    border: 1px solid black;
    border-radius: 100%;
    background-size: cover;
}


/* 左右按钮样式 */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    margin: 0 2%;
    cursor: pointer;
    font-size: 20px;
    transition: left 0.3s ease, right 0.3s ease; /* 平滑动画 */
}

.prev { left: 10px; }
.next { right: 10px; }

/* 文字描述 */
.dress-description {
    background-color: #A6B893;
    padding: 10px;
    margin: 10px 30px;
    border-radius: 8px;
    text-align: left;
    font-size: 30px;
}




/* @media only screen and (min-width:1025px) {

    body {
        background-color: #DDC295;
    }

    p {
        color: #FFE7E1
    }
} */


.dress-container{
    position: relative;
    max-width: 300px; /* 设置图片最大宽度 */
    margin: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center; /* 居中按钮和图片 */
    margin-left: 370px; /* 让整个 dress-container 向右移动 */
}

/* 图片样式 */

image-container{
    width: 100%;
    max-width: 300px;
    margin-left: 40px;
}

h2{
    font-size: 30px;
    color: #111;
    top: 20px;
    text-align: left; /* 让标题靠左对齐 */
    margin-left: -850px; /* 调整左移距离 */
}


.top-container {
    display: flex;
    flex-direction: column; /* 让两张图片垂直排列 */
    align-items: center; /* 居中对齐 */
    margin-left: 50px; /* 适当向右移动 */
}

.main-images img {
    width: 120%; /* 图片放大 20% */
    max-width: 250px; /* 设置最大宽度，防止图片过大 */
    display: block;
    margin: 10px auto; /* 图片居中 */
}

.main-container {
    display: flex;
    flex-direction: column; /* 让所有部分垂直排列 */
    align-items: center; /* 居中对齐 */
}

.content {
    padding: 10px;
}

.content img {
    width: 90%;
    max-width: 300px;
    margin: 10px 0;
    margin-left: 330px;
}

.makeup-steps {
    display: flex;
    flex-direction: column;
    align-items: center; /* 让所有内容居中 */
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left; /* 让文字左对齐 */
    width: 100%; /* 让内容适应容器 */
}

.step p {
    align-self: flex-start; /* 让小标题向左移动 */
    margin-left: 20px; /* 调整左侧偏移量 */
    font-size: 20px;
}

.step img {
    width: 80%;
    max-width: 200px;
    display: block; /* 确保图片不受文本影响 */
    margin: 0 auto; /* 让图片居中 */
}

.Tang{
    text-align: center;
    margin: 0 auto; /* 让图片居中 */
    width: 100%;
    /* max-width: 300px;
    overflow:hidden; */
    /* margin-left: 250px; */
    /* width: calc(100px * 3); 图片等比例放大 */
}

.eyebrown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    grid-template-columns: 1fr 4fr 1fr;
}

.eyebrown img {
    width: 200%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.eyebrown{
    display: grid;
   position: relative;
   left: 185px; /* 向左移动 100px */
   grid-template-columns: repeat(3, 1fr);
   gap: calc(10px * 3); /* 根据放大比例计算 */
   padding: 20px;
   max-width: 600px; /* 调整最大宽度 */
}
