* { margin: 0; padding: 0; box-sizing: border-box; font-family: Helvetica, "PingFang SC", "Microsoft Yahei", sans-serif; font-size: 14px; } body{ width: 100%; height: 100%; } img { width: 100%; } :root { --primary-color: #ff434f; --secondary-color: #e3e3e3; --text-color-lightest: #e7e9ec; --text-color-darker: #2e2e2e; --text-color-dark: #494949; --text-color-gray: #8b8b8b; --text-color-dark-gray: #727272; --text-color-light-gray: #c6c6c6; --backdrop-color: rgba(42, 42, 42, 0.7); --jackblue:rgba(49, 144, 238, 1); } /* 栅格布局 */ header{ color: 100vw; width: 100%; height: 80px; display: grid; padding: 0 40px; grid-template-columns: 1fr 2fr; background-color: rgb(255, 255, 255); align-content: center; position: relative; z-index: 200; object-fit: cover; } .logo { font-size: 24px; font-weight: 600; color: var(--text-color-lightest); } /* .first{ width: 100%; height: 10px; background-color: rgba(6,167,226,1);; } */ .logo img{ height: 40px; width: 200px; margin-top: 11px; margin-left: 100px; } .logo label{ margin-left: 10px; color:var(--text-color-darker); font-size: 15px; position: relative; margin-top: 15px; } header nav{ justify-self: center; height: 60px; line-height: 60px; padding-top: 5px; } header nav a{ color: var(--text-color-darker); text-decoration: none; padding: 10px 20px; margin: 0 10px; font-size: 20px; /* border: 20px; */ } header nav a:hover{ color: white; background-color:var(--jackblue); border-radius: 8px; /* border: black 1px solid ; */ } header.burger{ display: none; } header.sticky{ position: fixed; background-color: white; box-shadow: 0 0 18px rgba(0, 0, 0, 0.2); animation: dropDown 0.5s ease-in-out forwards; } header.sticky .logo, header.sticky nav a, header.sticky nav i{ color:var(--text-color-darker); } header.sticky nav a:hover{ color: white; } @keyframes dropDown { from{ transform: translateY(-100px); } to{ transform: translateY(0); } } .glide{ position: relative; top: -80px; z-index: 50; /* position: relative; width: 100%; height: 50%; */ /* top: px; */ /* z-index: 50; padding: 10px 0; */ /* margin-top: 80px; */ /* overflow: hidden; */ /* margin-bottom: 20px; */ } /* 设置轮播图、视频大小 */ .glide__slide img, .glide__slide video{ width: 100vw; height: 99vh; /* 自动等比例缩放 */ object-fit: cover; overflow: hidden; } .slide-caption{ position: absolute; z-index: 70; color: var(--text-color-lightest); text-align: center; max-width: 60vw; } .glide__slide { display:flex; align-items: center; justify-content: center; } .slide-caption h1{ font-size: 50px; font-weight: 600; } .slide-caption h3{ font-size: 30px; margin: 48px 0; } .slide-caption.left{ max-width: 80vw; text-align:left; } .slide-caption.right{ max-width: 80vw; text-align:right; } .slide-caption>* { opacity: 0.1; } .backdrop{ background-color:rgba(0, 0, 0, 0.6); z-index: 60; position: absolute; width: 100%; height: 100%; left: 0; top:0; opacity: 0.15; } .explore-btn{ padding: 8px 10px; background-color:var(--jackblue); border: 0; border-radius: 10px; color: var(--text-color-lightest); font-size:20px; cursor: pointer; outline: none; } .linkus{ padding: 8px 10px; background-color:white; border: 0; border-radius: 10px; color: var(--text-color-darker); font-size: 20px; cursor: pointer; /* outline: none; */ } /* 内容区域 */ /* 通用样式 */ .content-wrapper { /* 一维排版 */ display: flex; align-items: center; justify-content: center; flex-direction: column; } section { /* 二维 */ display: grid; /* 每个列的对齐方式 */ justify-items: center; max-width: 1280px; padding: 0 80px; } .section-bg { position: relative; } .section-bg::before { content: ""; display: block; position: absolute; background-color: #f9fbfb; width: 100vw; height: 100%; z-index: -1; } .title1 { font-size: 34px; color: var(--text-color-darker); } .title1::after { content: ""; display: block; width: 80%; height: 4px; background-color: var(--jackblue); margin-top: 14px; transform: translateX(10%); } .intro { margin: 28px 0 60px 0; /* text-indent: 2em; */ font-size: 18px; color: var(--text-color-dark-gray); } /* 关于我们 */ .about-us{ padding-bottom: 32px; } .features{ display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: 150px 126px; column-gap: 8vw; grid-row-gap: 80px; margin-bottom: 100px; } .feature{ display: grid; grid-template-areas: "icon title" "icon content"; grid-template-columns: 100px 1fr; grid-template-rows: 1fr 3fr; } .feature i.fa{ grid-area: icon; font-size: 35px; color: var(--jackblue); margin-left:50px; } .feature-title { grid-area: title; font-size: 25px; color: var(--text-color-darker); margin-top: 4px; /* margin-left: 10px; */ } .feature-content { grid-area: content; color: var(--text-color-gray); margin-top: 20px; font-size: 18px; } /* 成功案例 */ .showcases { max-width: unset; padding: 0px; padding-top: 72px; } .showcases .cases { width: 80vw; /* left:200px; */ } .cases{ display: grid; grid-template-columns: repeat(4,1fr); column-gap: 20px; row-gap: 30px; /* width: 0%; */ place-items: center; /* margin-bottom: 30px; */ padding-bottom: 131px; position: relative; } .showcases .case-item { width: 15vw; height: 15vw; /* overflow: hidden; */ } .case-item{ width: 150px; height: 150px; } .case-item img { /* height: 100%; */ max-width:100%; max-height:100%; border-radius: 20px; /* object-fit: cover; */ /* overflow: hidden; */ } /* entire container, keeps perspective */ .flip-container { perspective: 1000; } /* flip the pane when hovered */ .flip-container:hover .flipper, .flip-container.hover .flipper { transform: rotateY(180deg); } /* .flip-container, .front, .back { width: 320px; height: 480px; } */ /* flip speed goes here */ .flipper { transition: 1s; transform-style: preserve-3d; position: relative; } /* hide back of pane during swap */ .front, .back { backface-visibility: hidden; position: absolute; top: 0; left: 0; } /* front pane, placed above back */ .front { z-index: 2; } /* back, initially hidden pane */ .back { transform: rotateY(-180deg); } /* 服务流程 */ .service { padding-top: 72px; padding-bottom: 131px; } .services { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; column-gap: 38px; row-gap: 34px; } .service-item { display: grid; grid-template-areas: "icon title" "icon content"; grid-template-columns: 70px 1fr; grid-template-rows: 1fr 3fr; padding: 24px; box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.06); } .service-item i.fas { grid-area: icon; font-size: 42px; color: var(--jackblue); padding-top: 6px; } .service-item .service-title { grid-area: title; color: var(--text-color-darker); font-size: 24px; } .service-item .service-content { grid-area: content; color: var(--text-color-gray); line-height: 30px; font-size: 16px; margin-top: 8px; } /* 团队介绍 */ .team-intro { margin-top: 48px; padding-top: 62px; padding-bottom: 52px; } .team-members { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2vw; row-gap: 3vw; margin-top: 86px; } .team-member { background-color: white; box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2); text-align: center; padding-bottom: 28px; transition: 0.4s; display: grid; justify-items: center; } .profile-image { overflow: hidden; } .profile-image img { width: 100%; height: 264px; object-fit: cover; object-position: top center; } .team-member .name { margin-top: 18px; font-size: 18px; font-weight: 500; color: var(--text-color-dark); } .team-member .position { color: var(--text-color-dark-gray); margin-top: 20px; margin-bottom: 18px; } .social-links { width: 100%; max-width: 200px; display: flex; justify-content: space-between; padding: 0 42px; } .social-links li { list-style: none; } .social-links li a { color: var(--text-color-dark); text-decoration: none; } .team-member:hover { transform: translateY(-20px) scale(1.05); box-shadow: 0px 0px 36px rgba(0, 0, 0, 0.1); } /* 数据部分 */ .data-section{ max-width: unset; width: 100vw; height: 255px; /* background-image: url("./images/databg.jpg"); */ /* background-size:cover; */ /* background-position: center; */ display: grid; grid-template-columns: repeat(3,minmax(auto,220px)); justify-content: center; column-gap: 10vw; align-items: center; position: relative; z-index: 20; /* overflow: hidden; */ } .showdata{ padding-top: 72px; } .datas{ display: grid; grid-template-columns: repeat(3,1fr); padding-bottom: 100px; } /* .data-section::before{ content: ""; display: block; position: absolute; background-color: black; width: 100%; height: 100%; z-index: 1; } */ .data-item{ width: 250px; height:250px; justify-content: center; color: var(--jackblue); z-index: 40; border-radius: 50%; /* box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.06); */ background-color: white; /* margin: 0 auto; */ display: grid; grid-template-areas: "icon title" "icon content"; grid-template-columns: 70px 1fr; grid-template-rows: 1fr 3fr; padding: 24px; margin: 0 60px; box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.06); border: solid 20px; } .data-item i.fas{ grid-area: icon; font-size: 44px; color:var(--jackblue); padding-top: 45px; padding-left:20px; } .data-item .num{ grid-area: content; margin-top: 7px; font-size: 30px; color: var(--jackblue); font-weight: 600; padding-left:20px; padding-right: 20px; } .data-item .data-desc{ grid-area: title; font-size: 18px; color: var(--jackblue); font-weight: 500; padding-top: 45px; padding-left:20px; } /* 公司动态 */ .company-activities { margin-top: 80px; } .activities { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 36px; } .activity { box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.1); padding: 24px; transition: 0.4s; } .act-image-wrapper { height: 255px; overflow: hidden; margin: -24px; margin-bottom: 0; } .act-image-wrapper img { min-height: 300px; object-fit: cover; } .activity .meta { margin-top: 20px; margin-bottom: 12px; color: var(--text-color-light-gray); font-size: 12px; display: flex; } .activity .meta > p:last-child { margin-left: 36px; } .act-title { color: var(--text-color-dark); font-size: 18px; margin-bottom: 16px; } .activity article { color: var(--text-color-gray); letter-spacing: 0.54px; line-height: 24px; } .read-more-btn { border: 0; color: white; background-color: var(--jackblue); padding: 6px 14px; margin-top: 24px; border-radius: 4px; } .activity:hover { transform: translateY(-20px) scale(1.05); box-shadow: 0px 0px 36px rgba(0, 0, 0, 0.1); } /* 底部信息 */ footer { /* margin-top: 124px; */ background-color: var(--jackblue); display: grid; justify-items: center; /* padding-top: 52px; */ padding-bottom: 24px; } .footer-menus{ margin-top: 50px; width: 100%; display: grid; max-width: 1180px; grid-template-columns: repeat(3,1fr); padding: 0 80px; position: relative; justify-items: center; } .menu-title{ font-size: 17px; color: white; font-weight: 500; margin-bottom: 20px; } .contact-us{ /* display: flex; */ justify-self:start; color: white; } .contact-us p:not(:first-child){ padding-bottom: 16px; } div>p { list-style: none; padding-bottom: 8px; text-decoration: none; font-size: 15px; font-weight: 300; color: white; } .menu-items li { list-style: none; padding-bottom: 8px; font-size: 15px; text-decoration: none; font-weight: 300; color: white; } .icp-info{ margin-top: 40px; } .icp-info, .rights{ grid-column: 1/-1; justify-self: center; color: white; } .sscrollToTop { display: none; position: relative; z-index: 300; } .scrollToTop a { width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background-color: var(--jackblue); color: white; text-decoration: none; position: fixed; bottom: 60px; right: 30px; } @media (max-width: 1200px) { header nav { display: none; } header .burger { display: block; position: relative; width: 20px; height: 6px; justify-self: end; cursor: pointer; } .burger-line1, .burger-line2, .burger-line3 { width: 20px; height: 2px; background-color: var(--text-color-dark); } .burger-line1 { position: absolute; top: -6px; } .burger-line3 { position: absolute; top: 6px; } header.open nav>*{ color: black; animation: showMenu 0.5s linear forwards 0.4s; font-size: 18px; margin: 4px 0; opacity: 0; } header.open nav>i.fas{ margin-top: 10px; } header.open nav { display: grid; position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; background-color: white; grid-auto-rows: max-content; justify-items: end; padding: 0 40px; /* 下滑效果 */ opacity: 0; animation: slideDown 0.6s ease-out forwards; } header.open .burger-line1, header.open .burger-line2, header.open .burger-line3, header.sticky .burger-line1, header.sticky .burger-line2, header.sticky .burger-line3{ background-color: var(--text-color-darker); transition: 0.4s ease; } header.open .burger-line1{ /* header.open .burger-line1 { */ /* transform: rotate(45deg) translate(3px,5px); */ transform: rotate(45deg) translate(3px, 5px); } header.open .burger-line2{ transform: translateX(5px); opacity: 0; } header.open .burger-line3{ transform: rotate(-45deg) translate(3px,-5px); } @keyframes slideDown { from{ height: 0; opacity: 0; } to{ height: 100vh; padding: 80px; opacity: 1; } } @keyframes showMenu{ from{ opacity: 0; transform: translateY(-1vh); } to{ opacity: 1; transform: translateY(0); } } } @media (max-width:892px){ .slide-caption h1{ font-size: 48px; } .slide-caption h3{ font-size: 18px; } .features, .services{ grid-template-columns: repeat(2,1fr); grid-template-rows: unset; } .cases{ /* grid-template-columns: repeat(2,1fr); */ grid-template-columns: repeat(2,1fr); } .showcases .case-item { width: 15vw; height: 30vw; } /* /* overflow: hidden; */ .case-item{ object-fit: cover; } /* .data-section{ grid-template-columns: repeat(2,minmax(200px,auto)); padding: 24px 0; height: auto; row-gap: 24px; background-color: 200%; } */ .datas{ grid-template-columns: 1fr; row-gap: 100px; } .showcases .case-item{ width: calc(100vw/3); } } @media (max-width:768px) { section, .footer-menus{ padding: 0 40px; } .footer-menus{ grid-template-columns: 2fr repeat(2,1fr); row-gap: 24px; } .contact-us{ grid-row:1 / 3; } .activities{ grid-template-columns: 1fr; } .cases{ grid-template-columns: 1fr; } .datas{ grid-template-columns: 1fr; row-gap: 100px; } .team-members{ grid-template-columns: minmax(200px,400px); } .feature, .services{ grid-template-columns: 1fr; } } @media (max-width:576px){ .slide-caption h1{ font-size: 20px; } .slide-caption h3{ font-size: 14px; } .explore-btn { font-size: 14px; padding: 8px 18px; } .linkus{ font-size: 14px; padding: 8px 18px; } .showcases .case-item{ width: 100vw; height: 60vw; } .footer-menus{ grid-template-columns: 1fr; } .foot-menus{ justify-self: start; } }