* {padding: 0; margin: 0; box-sizing: border-box; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body{
  height: 100vh;
  font-family: 'GBK', sans-serif;
}
body::-webkit-scrollbar {
        display: none;
}

.banner1{
    width: 100%;
    height: 220px;
    position: absolute;
    background-image: url(https://raw.gitcode.com/2503_94561396/BreezeWebsite/raw/main/title.png);
    background-size: cover;
    background-position: center;
}
.banner2{
    width: 100%;
    height: 220px;
    position: absolute;
    background-image: url(https://raw.gitcode.com/2503_94561396/BreezeWebsite/raw/main/title2.png);
    background-size: cover;
    background-position: center;
}

.header{
    position: fixed;
    display: flex;
    height: 7vh;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    padding: 1.5vh 4vw;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.164);
    z-index: 10;
    }
    .header .img1{
        height: 3vh;
        filter: drop-shadow(0 0 10px rgba(0, 68, 255, 0.4));
        z-index: 11;
    }

.menu{
    margin-left: auto;
    width: 6vh;
    height: 6vh;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease, filter 0.4s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    }
    .menu:hover{
        background-color: #e9e9e977;
        transform: scale(1.1);
    }
    .menu .menu1{
        height: 2.5vh;
        display: block;
}

.grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    padding: 15vh 20px 20px 20px;
    max-width: 900px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}
.item{
    container-type: inline-size;   /* 把卡片设为容器 */
    background: #ffffffe7;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}
.item .titleimg{
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: none;
    object-fit: contain;    /*图片平铺*/
    object-position: top;   /*上对齐*/
    display: block;
    border-radius: 5px;
}

.item .comment-img{
    display: block;               /* ← 关键：变成块级 */
    margin: 10px auto 0 auto;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 2px 2px 8px #5a5a5a86;
}
.item .comment-p{
    text-align: center;
    color: #a3a3a3;
    font-size: 0.8rem;
}

.item .text{
    font-size: clamp(0.5rem, 1rem, 1.5rem);
}
.item h1{
    margin-top: 10px;
    text-align: center;
    color: #424242;
}
.grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, 200px);
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
    width: 100%;
    min-width: 0;
}
.grid1 .item1 {
    aspect-ratio: 8 / 3;
    container-type: inline-size;
    background: #fff;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

a {
    text-decoration: none;
    color: inherit;
    min-width: 0;
    width: 100%;
}

.grid1 .item1 {
    width: 100%;
    height: 100%;            /* ← 撑满 a 的高度 */
    container-type: inline-size;
    background: #fff;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2cqi;
    min-width: 0;
    box-sizing: border-box;
}

.item1 .head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}
.item1 .headimg {
    width: 25cqw;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 100%;
    box-shadow: 2px 2px 10px #8f8f8f;
    flex: none;
    margin-left: 3cqw;
    align-self: center;
}
.item1 .info {
    flex: 1;
    min-width: 0;
    align-self: center;
    font-weight: lighter;
    font-size: small;
}

.item ul{
    margin-left: 40px;
}
.item .content p{
    text-indent: 2em;
    margin-top: 10px;
    color: #424242;
}
.item .endtext{
    text-align: center;
}
.item .blue{
    color: #008cff;
}
.item .red{
    color: #ff3b3b;
}