
body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: 'Source Han Serif CN VF';
}

.flex-container2 {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    flex-direction: column;
    height: 100%;
}
blockquote {
    color: #666;
    font-weight: bold;
    font-style: italic;
}
article {
    margin-bottom: 50px;
}
.flex-container {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
}
.gallery img {
   width: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
}
.gallery h1 {
    margin-bottom: 0px;
}
.item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

#back-to-top:hover {
    background: rgba(0, 0, 0, 0.9);
}
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.gpt-family {
    padding: 10%;
}
.character-image {
    min-width: 100px;
    max-width: 500px;
    width: 50%;
    padding: 10px;
    position: relative;  /* 改为相对定位 */
    float: right;       /* 添加浮动，使图片靠右 */
}
.div-desc{
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.div-desc-title {
    font-weight: bold;
    font-size: 1.5rem;
}
.div-desc-button {
    margin-top: 20px;
    border: 1px black solid;
    padding: 10px;
    right: 0;
    margin-left: auto;
    transition: all ease-in-out 0.5s;
}
.div-desc-float {
    position: absolute;
    background: white;
    font-size: 1.3rem;
    max-width: 100vw;
    left: 0;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    margin: 20px;
    top: 20px;
}
.div-desc-button:hover {
    background-color: black;
    color: white;
    transition: all ease-in-out 0.5s;
}
@media screen and (max-width: 768px) {
    .flex-container {
        display: flex;
        flex-wrap: wrap;
        height:auto !important;
        overflow: hidden;
    }
}

.item {
    flex: 1 0 50%;
    height: 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    perspective: 1000px;
}

@media screen and (max-width: 768px) {
    .item {
        flex: 1 0 100%;
        height: 25vh;
        font-size: 1.2rem;
    }
    .item-back {
        font-size: 1rem;
    }
    .item-front {
        padding: 10px;
    }
    .item-image {
        max-height: 20vh;
        width: auto;
        margin: auto;
    }
}

.item-inner {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
    .item:active .item-inner {
        transform: rotateY(180deg);
    }
    .item:hover .item-inner {
        transform: none;
    }
}

.item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1s ease-in-out;
    transform-style: preserve-3d;
}

.item:hover .item-inner {
    transform: rotateY(180deg);
}

.item-front, .item-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.item-front {
    background-color: white;
    padding: 15px;
}

.item-back {
    background-color: rgba(255, 255, 255, 0.8);
    transform: rotateY(180deg);
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}