@view-transition {
    navigation: auto;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 抽象样式 */
/* 字体大小 */

/* 这是首屏的大图部分样式(fullScreen) */
#fullScreen{
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("images/fullSreen.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index:-1;
}
.wrap{
    width: 100%;
    height: 95vh;
    /* 设置首屏文字水平垂直居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.wrap img.slogan {
    min-width: 130px;
    min-height: 35px;
    object-fit: contain;
}

/* 这是主体内容的样式 */
main{
    width: 100%;
    height: 100%;
    /* 这个颜色是遮罩主屏幕的 */
    background-color: rgba(58, 49, 40, 0.3);
}
#cardBox{
    width: 100%;
    height: 90vh;
    overflow-x: auto;
    /* overflow-y: auto; */
    flex-wrap: nowrap;
    background-color: #E2D4C4;
    /* 隐藏滚动条 */
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    align-items: center;
    
    /* grid布局 */
    display: grid;
    grid-template-columns: repeat(8,20vw);
    grid-template-rows: 20px 70vh;
    gap: 10px;
    align-content: center;
}

    /* 隐藏滚动条 */
#cardBox::-webkit-scrollbar{
    display: none;
}

.card{
    width: 100%;
    height: 100%;
    background-color: var(--item-color1);
}
.Title{
    padding-left: 10px;
    font-weight: 500;
    font-size: 18px;
    color: rgb(119, 73, 46);
    text-shadow: 
        2px 2px 0 #fff,
        -1px -1px 0 #ccc,
        0 0 10px rgba(169, 0, 0, 0.7);
    filter: url(#rough);  /* 用 SVG 滤镜做粗糙边缘 */
    letter-spacing: 2px;
}
#cardBox a{
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}
.card_back{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    
}
.card_front{
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 0%;
}

.card img{
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}
.card:hover .card_back{
    width: 0%;
    height: 0%;
}
.card:hover .card_front{
    width: 100%;
    height: 100%;
}

/* 隐藏手机的按钮 */
#enter{
    display: none;
    width: 0;
    height: 0;
    margin-top: auto;
    margin-bottom: 5vh;
    
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid white;
    color: white;
    letter-spacing: 0.5em;
    text-align: center;
    border-radius: 2px;
}

/* 隐藏手机的菜单 */


/* 媒体查询做电脑和平板大屏的响应式 */
@media screen and (max-width:1500px){
    #cardBox{
        grid-template-columns: repeat(8,28vw);
    }
}
@media screen and (max-width:1200px){
    #cardBox{
        grid-template-columns: repeat(8,33vw);
    }
}
@media screen and (max-width:1024px){
    #cardBox{
        grid-template-columns: repeat(8,37vw);
    }
}

@media screen and (max-width: 1031px) and (min-width: 768px) {
  #cardBox {
    /* grid-template-columns: repeat(6, 28vw);  */
     /* 减少列数，加宽单卡 */
    grid-template-rows: 60vh;   /* 降低高度，让比例接近 1:1.5 */
    height: 87vh;
    gap: 10px;
  }
}
/* 手机的响应式 */
@media screen and (max-width:767px){
    /* 字体 */
    header{
        font-size: 8px;
    }
    /* 切换色块 */
    .item1,.item2,.item3{
    width: 17px;
    height: 22px;
    }
    #cardBox{
        width: 0;
        height: 0;
    }

    /* 显示手机的按钮 */
    #enter{
        display: block;
        width: 110px;
        height: 30px;
    }
    h1{
        margin-top: 40vh;
    }
}
/* 这是手机界面的菜单样式 */
/* ===== 菜单整体 ===== */
.menu{
    display: none;

    position: fixed;
    top: 15%;
    left: 10%;
    width: 80%;
    height: 70%;
    /* --------------- */
    background-color: var(--theme-light, #E2D4C4);
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-sizing: border-box;
    z-index: 99;
}
.menu.active{
    display: flex;
}

/* ===== 主体三栏 ===== */
.menu-body {
    display: flex;
    width: 90%;   
    /* --------------- */
    /* 左右留一点边距 */
    flex: 1;                  
    /* 占满剩余高度 */
    align-items: stretch;     /* 让三栏等高 */
}

/* 左右装饰列 */
.menu-left,
.menu-right {
    display: flex;
    align-items: center;      /* 垂直居中 */
    justify-content: center;
    width: 30px;

    /* --------------- */
    /* 固定宽度，根据需要调整 */
}
.menu-left img,
.menu-right img {
    /* 装饰图大小 */
    width: auto;              
    height: 90%;
    /* --------------- */
}

/* 中间列表列 */
.menu-center {
    flex: 1;                  /* 占满剩余宽度 */
    display: flex;
    flex-direction: column;
    justify-content: center; 
     /* 垂直居中 */
    align-items: center;      /* 水平居中（如果希望左对齐可改为 flex-start） */
    gap: 6%;   
                  /* 列表项间距 */
}
.menu-center a{
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 3px;
    color: var(--theme-primary, #67412a);

    display: inline-block;        /* 让 transform 生效且不影响同行元素 */
    transition: transform 0.3s ease;
    will-change: transform;
}
.menu-center a:hover {
    color: black;
    transform: scale(1.2); 
}
/* 上下的图 */
.menu img.menu-top,
.menu img.menu-foot {
    width: 94%;
    /* height: 20%; */
    object-fit: contain;
    /* --------------- */
}
@media screen and (max-height: 670px) and (orientation: portrait) {
    .menu-left img,
    .menu-right img {
        /* 装饰图大小 */
        width: auto;              
        height: 350px;
        /* --------------- */
    }
    .menu img.menu-top,
    .menu img.menu-foot {
        width: auto;
        height: 40px;
        /* --------------- */
    }

    .menu-center{
        gap: 5%;
    }
    .menu-body {
        display: flex;
        width: 90%;   
        /* --------------- */            
        /* 左右留一点边距 */
        flex: 0.4;                  
        /* 占满剩余高度 */
        align-items: stretch;     
        /* 让三栏等高 */
    }
}





