@font-face {
font-family: 'opensans';
src: url('fonts/opensans/opensans-bold-webfont.woff2') format('woff2'),
url('fonts/opensans/opensans-bold-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display:swap;
}
@font-face {
font-family: 'opensans';
src: url('fonts/opensans/opensans-regular-webfont.woff2') format('woff2'),
url('fonts/opensans/opensans-regular-webfont.woff') format('woff');
font-weight: bold;
font-style: normal;
}
html{
/* 62.5% * 16px=10px */
/*font-size:62.5%;*/
}
body{
/*margin:10px;
/*body是块级元素,它的默认宽度是100%,默认高度是0.*/
font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1rem;
line-height: 1.5;
letter-spacing: 0.7px;
word-spacing: 1px;
/*1 * font size of the root element(html)*/
background-color:#fffffe;
background-size:cover;
background-attachment: fixed;
padding:1rem;
}
h1, h2, h3, h4, h5, h6 {
margin: 3rem 0 1rem 1rem;
font-family: 'Noto Sans SC',Georgia, 'Times New Roman', Times, serif;
color: #0e172c;
text-align:center;
}
h1{
font-size: 2.986rem;
}
h2{
font-size: 2.488rem;
}
h3{
font-size: 2.074rem;
}
h4{
font-size: 1.728rem;
}
h5{
font-size: 1.44rem;
}
h6{
font-size: 1.2rem;
}
p{
color: #0e172c;
margin: 0px 0px ;
padding: 0;;
font-weight: normal;
font-size:1rem;
font-style:normal;
text-align: center;
}
.text-align-center {
text-align: center;
}
label{
display: block;
}
input[type="text"],[type="email"]{
border: 1px solid #D9D9F3;
border-radius: 5px;
padding:
0.5rem 0.7rem;
transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus,[type="email"]:focus{
border: 1px solid #a786df;
outline:0;
box-shadow:0 0 0 4px #D9D9F3;
}
button{
background:#0e172c;
color:#fffffe;
border:0;
padding:0.5rem 0.7rem;
border-radius:5px;
outline:0;
}
.form-group{
margin-bottom: 1rem;
}
/* 设置导航菜单的样式 */
/* 导航栏样式 */
.nav-menu {
display: flex; /* 使用Flexbox布局 */
justify-content: space-between; /* 元素之间的间距均匀分布 */
align-items: center; /* 垂直居中 */
list-style: none; /* 移除列表默认的样式 */
padding: 0; /* 移除默认的内边距 */
margin: 0; /* 移除默认的外边距 */
flex-wrap: wrap; /* 允许换行 */
}
/* 为每个导航项添加样式 */
.navbar-item {
color: #0e172c;
padding: 0 2.5rem; /* 上下0像素,左右1rem的内边距,根据需要调整 */
text-decoration: none; /* 移除超链接的下划线 */
font-weight: bold; /* 字体加粗 */
text-align: center; /* 文本居中对齐 */
}
/* 导航项的 logo 或文本样式 */
.navbar-logo,
.navbar-text {
flex-grow: 1; /* 允许 logo 或文本填充额外空间 */
text-align: left; /* 文本左对齐 */
font-weight: bold;
}
/* 当鼠标悬停在导航项上时的样式 */
.navbar-item:hover {
color: #a786df; /* 例如,改变颜色为蓝色 */
}
/* 当前活动的导航项的样式 */
.navbar-item.w--current {
font-weight: bold; /* 加粗字体 */
}
::selection{
background-color:#d9d4e7;
color: white;
}
.highlight{
color: #a786df
}
.section-padding {
margin-top: 6rem;
margin-bottom: 6rem;
position: relative;
}
header{
position:fixed;
top:0;
right: 0;
text-align: center;
color: rgb(51, 51, 51);
padding-inline: 18px;
background-color: #d9d4e7;
width: 100%;
z-index: 99;
padding:20px;
}
.clear{
clear:both;
}
.tweet{
border: 3px solid lightgrey;
overflow: hidden;
}
.clearfix::after{
content:' ';
display: block;
clear:both;
}
/*这个元素默认是行内元素,这里需要将display设置为block,像div一样*/
.container{
display:flex;
flex-direction: column;
border: 3px solid grey;
height:100vh;
}
.feature-header {
grid-column-gap: 1rem;
grid-row-gap: 1rem;
text-wrap: balance;
align-items: center;
max-width: 34rem;
}
.testimonials2-content {
grid-row-gap: 4rem;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
margin-top: 1rem;
display: flex;
position: relative;
}
.w-layout-vflex {
flex-direction: column;
align-items: flex-start;
display: flex;
}
.badge {
grid-column-gap: .25rem;
background-color: rgba(56, 86, 221, .1);
border-radius: .5rem;
flex: 0 auto;
justify-content: center;
align-items: center;
padding: .25rem .5rem;
display: flex;
}
.testimonial-wrapper {
grid-column-gap: 2rem;
grid-row-gap: 2rem;
column-count: 2;
column-rule-width: 0rem;
flex-direction: row;
justify-content: center;
align-items: flex-start;
column-gap: .5rem;
max-width: 53rem;
display: block;
}
.testimonials2-item {
grid-row-gap: 1.5rem;
background-color: #d9d4e7;
border-radius: 1.25rem;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
max-width: 25.5rem;
margin-bottom: 1rem;
padding: 1.5rem;
display: inline-block;
}
.testimonials2-author-wrapper {
grid-column-gap: .75rem;
flex: 0 auto;
justify-content: flex-start;
align-items: center;
margin-bottom: 1rem;
display: flex;
}
.testimonials-avatar{
object-fit: cover;
border-radius: 625000rem;
flex-direction: column;
justify-content: center;
align-items: center;
width: 2.5rem;
height: 2.5rem;
text-decoration: none;
display: flex;
}
.testimonials2-author {
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
text-decoration: none;
display: flex;
}
.testimonials-content-wrapper {
grid-row-gap: .25rem;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
width: 100%;
margin-bottom: 1rem;
display: flex;
}
.w-layout-hflex {
flex-direction: row;
align-items: flex-start;
display: flex;
}
.text-base.text-secondary.text-align-center-desktop, .text-base.text-align-center {
text-align: center;
}