#page {
    background: url('/images/bg.png') no-repeat center center;
    background-size: cover;
}

.hero {
    position: relative;
    /* width: 100%;
    height: 100%; */
    width: 100%;
    min-height: 400px;
    /* background: url('/images/hero-bg.png') no-repeat center center; */
    /* background-size: contain; */

}

.hero-title {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 400px;
    z-index: 1;
}


.hero-bg {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
}

.hero-footer {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 400px;
    z-index: 2;
}

.hero-shadow {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* max-width: 400px; */
    z-index: 1;
    /* width: 100vw;          使用视口宽度单位 */
    /* max-width: 100%;  */
}

/* 片段：修复 main 的层级，让其可见 */
/* 主内容容器需要建立层叠上下文且不要使用负 z-index */
.main {
    position: relative;
    width: 100%;
    min-height: 1000px;
    z-index: 0;
    /* 去掉 -10 的层级，或直接不写 */
}

.main-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 若要等比铺满用 cover */
    opacity: 1;
    z-index: 0;
    /* 背景层 */
}


.main-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    z-index: 1;
}

/* 输入区域卡片样式与标签样式 */
.input-container {
    position: absolute;
    top: 35%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    width: 100%;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.input-item {
    background: #f6ecd9;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 1rem 1rem;
}

/* 粉色标签 */
.input-item label {
    display: inline-block;
    color: #333;
    font-size: 20px;
}

/* 输入控件在卡片内铺满，透明背景以融合卡片色 */
.input-item input,
.input-item textarea {
    font-family: inherit;  
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    color: #333;
}

/* 单行输入框高度 */
.input-item input {
    height: 24px;
    width: 40%;
}

/* 文本域更高一些，允许用户多行书写 */
.input-item textarea {
    min-height: 200px;
    /* 你可以根据图示调整高度 */
    line-height: 1.6;
    resize: vertical;
    width: 50%;
}

.input-item-textarea {
    display: flex;
    align-items: start;
    font-size: 18px;

}



.submit-btn {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    max-width: 400px;
    z-index: 1;
}

.description {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    z-index: 1;
}

.bottom {
    position: absolute;
    margin-top: 10%;
    bottom: 0;
    width: 100%;
    z-index: 1;
}
