* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* transition: all 0.3s ease-in-out; */
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    background: #BDBDBA;
    background-image: url(/noise-light.png);
    margin: 0;
    font-family: "Noto Sans SC";
    font-style: normal;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden; /* 隐藏横向滚动条 */
    overflow-y: auto;   /* 保留纵向滚动条 */
}

::-webkit-scrollbar {
    width: 0;  /* 隐藏横向滚动条 */
    height: 0; /* 隐藏横向滚动条 */
    background: transparent; /* 确保背景透明 */
}

/* button 和 textarea 的具体重置 */
button, textarea {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 确保文本区域不可调整大小（如果需要） */
textarea {
    resize: none;
}

/* 修改 placeholder 颜色 */
input::placeholder,
textarea::placeholder {
    color: #bbb; /* 将 #888 替换为你想要的颜色 */
    opacity: 1;
}

/* 适用于 WebKit 浏览器 */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #bbb;
}

/* 适用于 Firefox */
input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #bbb;
}

/* 适用于 Internet Explorer 10+ */
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #bbb;
}

/* 适用于 Microsoft Edge */
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
    color: #bbb;
}

.output {
    width: 300px;
    height: 300px;
    border: 1px solid #000;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.allC {
    display: flex;
    padding: 24px;
    align-items: flex-start;
    gap: 24px;
    border-radius: 32px;
    border: 1px solid #F8F8F8;
    background: #F0E9D9;
    background-image: url(/noise-light.png);
    box-shadow: 0px 4px 16px 0px rgba(127, 130, 133, 0.32);
    backdrop-filter: blur(8px);
}

.leftC {
    display: flex;
    width: 375px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 16px;
    background: #354D43;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.headLogo{
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

#charCount {
    padding: 4px;
    width: 80px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: #311610;
    font-size: 10px;
    color: #91C10F;
}

.headTextG{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.headTextG h1{
    color: #FFFFFF;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 100%; /* 14px */
}

.headTextG p{
    color: #BDC3C5;
    margin: 0;
    font-size: 8px;
    font-weight: 400;
    line-height: 100%; /* 8px */
}

#textarea {
    display: flex;
    padding: 12px;
    align-items: flex-start;
    gap: 8px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 8px;
    background: #311610;
    color: #F4F4EC;
}

.buttonGroup {
    width: 100%;
    display: flex;
    gap: 12px;
}

.generateImage {
    text-wrap: nowrap;
    padding: 16px;
    display: flex;
    height: 44px;
    /* padding-top: 12px; */
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    cursor: pointer;
    border-radius: 8px;
    background: #91C10F;
    color: #04462B;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    padding-top: 10px;
    box-shadow: 0px -2px 0px 0px rgba(0, 0, 0, 0.25) inset;
}

.buttonLeft {
    width: 80%;
}

.generateImage:hover {
    padding-top: 10px;
    background: #91C10F;
    box-shadow: 0px -2px 0px 0px rgba(0, 0, 0, 0.25) inset;
}

.generateImage:active {
    padding-top: 13px;
    /* background: linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), #91C10F; */
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.25) inset;
}

.rightC {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#output {
    width: 375px;
    height: 375px;
    overflow: hidden; /* 这个属性会隐藏超出的部分 */
    background: #F4F4EC;
}

#output img {
    width: 100%; /* 让图片宽度填满容器 */
    height: 100%; /* 让图片高度填满容器 */
    object-fit: contain; /* 图片按比例缩放并适应容器 */
}

.card-wrap {
    transform: perspective(1200px);
    transform-style: preserve-3d;
    /* cursor: pointer; */
}

.card-wrap:hover .card {
    transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: rgba(91, 40, 1, 0.48) 0 24px 48px 0;
}

.card {
    position: relative;
    flex: 0 0 240px;
    width: 375px;
    height: 375px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.16) 0 16px 32px 0;
    transition: 0.3s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
  
.card-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: 0.4s cubic-bezier(0.445, 0.05, 0.55, 0.95), opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
    pointer-events: none;
}

.copyright {
    color: rgba(0, 0, 0, 0.40);
    font-size: 10px;
    font-weight: 400;
    padding-bottom: 16px;
}

@media (max-width: 860px) {
    body {
        justify-content: flex-start;
        flex-direction: column;
        width: 100%;
        /* padding-top: 16px; */
    }

    .allC {
        flex-direction: column-reverse;
        height: auto;
        width: 90%;
        padding: 16px;
        gap: 24px;
        /* padding-top: 0px; */
        border-radius: 0 0 32px 32px;
    }
    
    #textarea {
        flex: none;
        width: 100%;
        height: 160px;
        box-sizing: border-box;
    }

    .leftC {
        width: 100%;
    }

    .rightC {
        width: 100%;
    }

    #output{ 
        width: 334px;
        height: 334px;
    }
    .card {
        width: 334px;
        height: 334px;
        box-shadow: rgba(91, 40, 1, 0.48) 0 24px 48px 0;
    }
}