Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
392 lines
9.8 KiB
CSS
392 lines
9.8 KiB
CSS
.u-section-1 {
|
||
min-height: 400px;
|
||
}
|
||
|
||
|
||
.u-section-1 .u-image-1 {
|
||
min-height: calc(831px * 0.6);
|
||
height: 100vh; /* 强制背景占满窗口高度 */
|
||
position: relative; /* 为伪元素定位提供参考 */
|
||
overflow: hidden; /* 隐藏伪元素溢出的部分 */
|
||
/* 移除以下属性 */
|
||
/* background-size: cover; */
|
||
/* background-position: center; */
|
||
/* background-repeat: no-repeat; */
|
||
/* background-image: url("../images/photo-1488590528505-98d2b5aba04b.jpeg"); */
|
||
}
|
||
|
||
/* 定义背景渐变放大缩小的关键帧动画 */
|
||
@keyframes backgroundScale {
|
||
0% {
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
transform: scale(1.1);
|
||
}
|
||
100% {
|
||
transform: scale(1);
|
||
}
|
||
}
|
||
|
||
.u-section-1 .u-image-1::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background-image: url("../images/photo-1488590528505-98d2b5aba04b.jpeg"); /* 背景图片路径 */
|
||
background-size: cover; /* 背景覆盖整个容器 */
|
||
background-position: center; /* 背景图片居中 */
|
||
background-repeat: no-repeat; /* 禁止重复 */
|
||
transform: scale(1); /* 初始缩放 */
|
||
transform-origin: center; /* 缩放中心 */
|
||
animation: backgroundScale 10s ease-in-out infinite; /* 应用动画 */
|
||
z-index: -1; /* 将伪元素置于内容后面 */
|
||
}
|
||
|
||
.u-section-1 .u-container-layout-1 {
|
||
padding: 0;
|
||
transform: scale(0.6); /* 缩放到原来的 50% */
|
||
transform-origin: top center; /* 以中心为缩放中心 */
|
||
}
|
||
|
||
.u-section-1 .u-form-1 {
|
||
height: 831px;
|
||
background-image: none;
|
||
box-shadow: 5px 5px 20px 0 rgba(0,0,0,0.4);
|
||
--radius: 36px;
|
||
width: 742px;
|
||
margin: 245px auto 0;
|
||
}
|
||
|
||
.u-section-1 .u-text-1 {
|
||
margin-left: 0;
|
||
line-height: 0.72;
|
||
text-transform: uppercase;
|
||
font-size: 2.25rem;
|
||
}
|
||
|
||
.u-section-1 .u-input-1 {
|
||
--radius: 50px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.u-section-1 .u-form-group-3 {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.u-section-1 .u-input-2 {
|
||
font-weight: 600;
|
||
--radius: 50px;
|
||
}
|
||
|
||
.u-section-1 .u-text-2 {
|
||
margin-left: 0;
|
||
text-transform: uppercase;
|
||
font-size: 2.25rem;
|
||
line-height: 0.14;
|
||
}
|
||
|
||
.u-section-1 .u-btn-1 {
|
||
border-style: solid;
|
||
letter-spacing: 0px;
|
||
background-image: none;
|
||
width: 100%;
|
||
font-size: 1.5rem;
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
font-weight: 600;
|
||
text-transform: none;
|
||
}
|
||
|
||
.u-section-1 .u-text-3 {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.u-section-1 .u-image-2 {
|
||
width: 300px;
|
||
height: 300px;
|
||
box-shadow: 2px 0 0 0 rgba(0,0,0,0);
|
||
transition-duration: 0.5s;
|
||
transform: rotate(0deg) scale(1) translateX(0px) translateY(0px);
|
||
margin: -1065px auto 0;
|
||
}
|
||
|
||
.u-section-1 .u-group-2 {
|
||
width: 659px;
|
||
min-height: 76px;
|
||
height: auto;
|
||
margin: 662px auto 27px;
|
||
}
|
||
|
||
.u-section-1 .u-container-layout-2 {
|
||
padding-left: 30px;
|
||
padding-right: 30px;
|
||
}
|
||
|
||
.u-section-1 .u-btn-2 {
|
||
transition-duration: 0.5s;
|
||
transform: rotate(0deg) scale(1) translateX(0px) translateY(0px);
|
||
text-decoration: underline !important;
|
||
margin: 24px auto 0 66px;
|
||
padding: 0;
|
||
}
|
||
|
||
.u-section-1 .u-btn-3 {
|
||
transition-duration: 0.5s;
|
||
transform: rotate(0deg) scale(1) translateX(0px) translateY(0px);
|
||
text-decoration: underline !important;
|
||
margin: -26px 74px 1px auto;
|
||
padding: 0;
|
||
}
|
||
|
||
@media (max-width: 1199px) {
|
||
.u-section-1 .u-image-1 {
|
||
--radius: 30px;
|
||
margin-right: initial;
|
||
margin-left: initial;
|
||
height: auto;
|
||
}
|
||
|
||
.u-section-1 .u-image-2 {
|
||
--animation-custom_in-translate_x: 0px;
|
||
--animation-custom_in-translate_y: 0px;
|
||
--animation-custom_in-opacity: 0;
|
||
--animation-custom_in-rotate: 0deg;
|
||
--animation-custom_in-scale: 1;
|
||
}
|
||
|
||
.u-section-1 .u-group-2 {
|
||
height: auto;
|
||
}
|
||
|
||
.u-section-1 .u-btn-2 {
|
||
border-style: solid;
|
||
}
|
||
|
||
.u-section-1 .u-btn-3 {
|
||
border-style: solid;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 991px) {
|
||
.u-section-1 .u-form-1 {
|
||
width: 720px;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 767px) {
|
||
.u-section-1 .u-form-1 {
|
||
width: 540px;
|
||
}
|
||
|
||
.u-section-1 .u-group-2 {
|
||
width: 540px;
|
||
}
|
||
|
||
.u-section-1 .u-container-layout-2 {
|
||
padding-left: 10px;
|
||
padding-right: 10px;
|
||
}
|
||
|
||
.u-section-1 .u-btn-2 {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.u-section-1 .u-btn-3 {
|
||
margin-right: 0;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 575px) {
|
||
.u-section-1 .u-form-1 {
|
||
width: 340px;
|
||
}
|
||
|
||
.u-section-1 .u-group-2 {
|
||
width: 340px;
|
||
}
|
||
}
|
||
|
||
.u-section-1 .u-image-2,
|
||
.u-section-1 .u-image-2:before,
|
||
.u-section-1 .u-image-2 > .u-container-layout:before {
|
||
transition-property: fill, color, background-color, stroke-width, border-style, border-width, border-top-width, border-left-width, border-right-width, border-bottom-width, custom-border, borders, box-shadow, text-shadow, opacity, border-radius, stroke, border-color, font-size, font-style, font-weight, text-decoration, letter-spacing, transform, background-image, image-zoom, background-size, background-position;
|
||
}
|
||
|
||
.u-section-1 .u-image-2.u-image-2.u-image-2:hover {
|
||
transform: scale(1.1) translateX(0px) translateY(0px) !important;
|
||
}
|
||
|
||
.u-section-1 .u-image-2.u-image-2.u-image-2.hover {
|
||
transform: scale(1.1) translateX(0px) translateY(0px) !important;
|
||
}
|
||
|
||
.u-section-1 .u-btn-2,
|
||
.u-section-1 .u-btn-2:before,
|
||
.u-section-1 .u-btn-2 > .u-container-layout:before {
|
||
transition-property: fill, color, background-color, stroke-width, border-style, border-width, border-top-width, border-left-width, border-right-width, border-bottom-width, custom-border, borders, box-shadow, text-shadow, opacity, border-radius, stroke, border-color, font-size, font-style, font-weight, text-decoration, letter-spacing, transform, background-image, image-zoom, background-size, background-position;
|
||
}
|
||
|
||
.u-section-1 .u-btn-2.u-btn-2.u-btn-2:hover {
|
||
transform: scale(1.1) translateX(0px) translateY(0px) !important;
|
||
}
|
||
|
||
.u-section-1 .u-btn-2 {
|
||
border-color: transparent !important;
|
||
}
|
||
|
||
.u-section-1 .u-btn-2.u-btn-2.u-btn-2.hover {
|
||
transform: scale(1.1) translateX(0px) translateY(0px) !important;
|
||
}
|
||
|
||
.u-section-1 .u-btn-2 {
|
||
border-color: transparent !important;
|
||
}
|
||
|
||
.u-section-1 .u-btn-3,
|
||
.u-section-1 .u-btn-3:before,
|
||
.u-section-1 .u-btn-3 > .u-container-layout:before {
|
||
transition-property: fill, color, background-color, stroke-width, border-style, border-width, border-top-width, border-left-width, border-right-width, border-bottom-width, custom-border, borders, box-shadow, text-shadow, opacity, border-radius, stroke, border-color, font-size, font-style, font-weight, text-decoration, letter-spacing, transform, background-image, image-zoom, background-size, background-position;
|
||
}
|
||
|
||
.u-section-1 .u-btn-3.u-btn-3.u-btn-3:hover {
|
||
transform: scale(1.1) translateX(0px) translateY(0px) !important;
|
||
}
|
||
|
||
.u-section-1 .u-btn-3 {
|
||
border-color: transparent !important;
|
||
}
|
||
|
||
.u-section-1 .u-btn-3.u-btn-3.u-btn-3.hover {
|
||
transform: scale(1.1) translateX(0px) translateY(0px) !important;
|
||
}
|
||
|
||
.u-section-1 .u-btn-3 {
|
||
border-color: transparent !important;
|
||
}
|
||
|
||
.u-input-rectangle {
|
||
display: flex; /* 使用 Flexbox */
|
||
align-items: center; /* 垂直居中 */
|
||
justify-content: center; /* 水平居中 */
|
||
text-align: center; /* 文本水平居中 */
|
||
}
|
||
|
||
.u-form-send-error {
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* 模态窗口的背景 */
|
||
.modal {
|
||
display: block; /* 始终保持为block,以便应用过渡效果 */
|
||
position: fixed; /* 固定位置 */
|
||
z-index: 1000; /* 确保模态窗口在最前面 */
|
||
left: 0;
|
||
top: 0;
|
||
width: 100%; /* 全屏 */
|
||
height: 100%; /* 全屏 */
|
||
overflow: auto; /* 如果需要滚动 */
|
||
background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
|
||
|
||
/* 初始状态为隐藏 */
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
transition: opacity 0.3s ease, visibility 0.3s ease; /* 过渡效果 */
|
||
}
|
||
|
||
/* 当模态窗口显示时应用 */
|
||
.modal.show {
|
||
opacity: 1;
|
||
visibility: visible;
|
||
}
|
||
|
||
/* 模态窗口的内容 */
|
||
.modal-content {
|
||
background-color: #fefefe;
|
||
margin: 15% auto; /* 居中 */
|
||
padding: 20px;
|
||
border: 1px solid #888;
|
||
width: 80%; /* 宽度 */
|
||
max-width: 500px; /* 最大宽度 */
|
||
border-radius: 10px; /* 圆角 */
|
||
text-align: center;
|
||
|
||
/* 添加淡入效果 */
|
||
transform: translateY(-20px);
|
||
transition: transform 0.3s ease;
|
||
}
|
||
|
||
.modal.show .modal-content {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
/* 关闭按钮 */
|
||
.close-button {
|
||
color: #aaa;
|
||
float: right;
|
||
font-size: 28px;
|
||
font-weight: bold;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.close-button:hover,
|
||
.close-button:focus {
|
||
color: black;
|
||
text-decoration: none;
|
||
}
|
||
|
||
/* Toast 容器 */
|
||
#toast-container {
|
||
position: fixed;
|
||
top: 10%;
|
||
left: 50%;
|
||
transform: translate(-50%, -50%);
|
||
z-index: 100002; /* 确保在最上层 */
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 10px;
|
||
pointer-events: none; /* 允许点击穿透 */
|
||
}
|
||
|
||
/* 单个 Toast */
|
||
.toast {
|
||
min-width: 250px;
|
||
max-width: 350px;
|
||
padding: 15px 20px;
|
||
border-radius: 5px;
|
||
color: #fff;
|
||
font-family: Arial, sans-serif;
|
||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
||
opacity: 0.9;
|
||
transition: opacity 0.5s ease, transform 0.5s ease;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center; /* 居中文本 */
|
||
text-align: center; /* 居中文本 */
|
||
pointer-events: auto; /* 允许 Toast 接收事件 */
|
||
}
|
||
|
||
/* 成功 Toast */
|
||
.toast.success {
|
||
background-color: #4CAF50; /* 绿色 */
|
||
}
|
||
|
||
/* 错误 Toast */
|
||
.toast.error {
|
||
background-color: #f44336; /* 红色 */
|
||
}
|
||
|
||
/* 信息 Toast */
|
||
.toast.info {
|
||
background-color: #2196F3; /* 蓝色 */
|
||
}
|
||
|
||
/* 淡出效果 */
|
||
.toast.fade-out {
|
||
opacity: 0;
|
||
transform: translateY(-20px);
|
||
transition: opacity 0.5s ease, transform 0.5s ease;
|
||
} |