From 56bfd84606c611d2ac8857bc31d956ce19ed3721 Mon Sep 17 00:00:00 2001 From: zhangjianjun Date: Wed, 25 Mar 2026 15:54:53 +0800 Subject: [PATCH] ud --- src/components/Pagination/index.module.css | 22 ++--- src/components/ScreenOpen/index.module.css | 2 +- .../SineWaveTimeline/index.module.css | 18 ++-- .../YearPicker/YearPicker.module.css | 34 +++---- src/components/YearPicker/index.tsx | 2 +- .../layout/AnimateTopCard/index.module.css | 48 ++++----- .../layout/Article/index.module.css | 29 +++--- src/components/layout/Article/index.tsx | 2 +- .../layout/BottomTabsSection/index.module.css | 34 +++---- .../layout/ColumnXGrids/index.module.css | 14 +-- .../layout/HonorGrids/index.module.css | 28 +++--- .../layout/JobPage/index.module.css | 32 +++--- src/components/layout/JobPage/index.tsx | 6 +- .../layout/ParagraphSection/index.module.css | 18 ++-- .../layout/RowAccordion/index.module.css | 63 ++++++------ src/components/layout/RowAccordion/index.tsx | 2 +- src/components/layout/Section/index.tsx | 2 +- .../layout/SectionTitle/index.module.css | 18 ++-- src/components/layout/SectionTitle/index.tsx | 2 +- .../layout/SwiperCardSection/index.module.css | 38 +++---- .../layout/TopTabsSection/index.module.css | 62 ++++++------ .../layout/TopTabsSection/index.tsx | 2 +- src/index.css | 20 ++-- src/index.tsx | 14 ++- src/layouts/Footer.module.css | 22 ++--- src/layouts/Footer.tsx | 6 +- src/layouts/Header.module.css | 28 +++--- src/layouts/Header.tsx | 2 +- src/pages/About/About.module.css | 2 +- src/pages/About/Founder.module.css | 28 +++--- src/pages/About/History.module.css | 34 +++---- src/pages/Business/CommercialGroup.module.css | 82 ++++++++-------- src/pages/Business/CommercialGroup.tsx | 2 +- .../Business/CommercialGroupDetail.module.css | 50 +++++----- src/pages/Business/InvestGroup.module.css | 48 ++++----- src/pages/Home/Home.module.css | 10 +- src/pages/Join/Campus.module.css | 98 +++++++++---------- src/pages/Join/Culture.module.css | 36 +++---- src/pages/News/Media.module.css | 18 ++-- src/pages/News/NewsPublic.module.css | 42 ++++---- src/pages/Others/AuditReport.module.css | 22 ++--- src/pages/Others/Search.module.css | 51 +++++----- src/pages/Others/Search.tsx | 97 ++++++++++++------ src/pages/Others/SiteMap.module.css | 42 ++++---- src/pages/Others/TermsOfUse.tsx | 4 +- src/pages/Social/Foundation.module.css | 24 ++--- src/pages/Social/Foundation.tsx | 6 +- src/pages/Social/Sustainability.module.css | 68 ++++++------- src/proxy.cjs | 2 +- src/utils/toast.tsx | 2 +- 50 files changed, 699 insertions(+), 639 deletions(-) diff --git a/src/components/Pagination/index.module.css b/src/components/Pagination/index.module.css index dcf0509..c994f31 100644 --- a/src/components/Pagination/index.module.css +++ b/src/components/Pagination/index.module.css @@ -2,23 +2,23 @@ display: flex; align-items: center; justify-content: center; - gap: 8px; + gap: .5rem; flex-wrap: wrap; } .item, .itemActive, .arrow { - width: 45px; - height: 45px; + width: 2.8125rem; + height: 2.8125rem; display: inline-flex; align-items: center; justify-content: center; - border-radius: 5px; - border: 1px solid #e0e0e0; + border-radius: .3125rem; + border: .0625rem solid #e0e0e0; background: #fff; color: #222; - font-size: 14px; + font-size: .875rem; font-weight: 500; font-family: inherit; cursor: pointer; @@ -54,13 +54,13 @@ } .ellipsis { - width: 45px; - height: 45px; + width: 2.8125rem; + height: 2.8125rem; font-weight: 400; - font-size: 20px; + font-size: 1.25rem; color: rgba(0, 0, 0, 0.25); - line-height: 45px; - letter-spacing: 2px; + line-height: 2.8125rem; + letter-spacing: .125rem; text-align: center; font-style: normal; text-transform: none; diff --git a/src/components/ScreenOpen/index.module.css b/src/components/ScreenOpen/index.module.css index 78bb7cc..7c7ccfc 100644 --- a/src/components/ScreenOpen/index.module.css +++ b/src/components/ScreenOpen/index.module.css @@ -15,7 +15,7 @@ flex-direction: row; overflow: hidden; img { - width: 100px; + width: 6.25rem; } } diff --git a/src/components/SineWaveTimeline/index.module.css b/src/components/SineWaveTimeline/index.module.css index 2d880bc..804a247 100644 --- a/src/components/SineWaveTimeline/index.module.css +++ b/src/components/SineWaveTimeline/index.module.css @@ -48,18 +48,18 @@ .labelBlock { position: absolute; pointer-events: auto; - min-width: 160px; - max-width: 550px; - min-height: 200px; - padding: 0 20px; + min-width: 10rem; + max-width: 34.375rem; + min-height: 12.5rem; + padding: 0 1.25rem; } .labelBlock.top { - margin-bottom: 4px; + margin-bottom: .25rem; } .labelBlock.bottom { - margin-top: 4px; + margin-top: .25rem; display: flex; flex-direction: column; justify-content: flex-end; @@ -69,20 +69,20 @@ font-size: 1.125rem; font-weight: 600; color: #14355c; - margin-bottom: 6px; + margin-bottom: .375rem; line-height: 1.3; } .labelList { margin: 0; - font-size: 0.875rem; + font-size: .875rem; line-height: 1.6; color: #333; list-style: disc; } .labelList li { - margin-bottom: 4px; + margin-bottom: .25rem; list-style: disc; margin-left: 1.25em; } diff --git a/src/components/YearPicker/YearPicker.module.css b/src/components/YearPicker/YearPicker.module.css index 6d9036f..d2fb16d 100644 --- a/src/components/YearPicker/YearPicker.module.css +++ b/src/components/YearPicker/YearPicker.module.css @@ -8,12 +8,12 @@ display: flex; align-items: center; justify-content: space-between; - gap: 0.5rem; - padding: 0.5rem 0.6875rem; + gap: .5rem; + padding: .5rem .6875rem; background: #14355C; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); - border-radius: 0.375rem; + border-radius: .375rem; cursor: pointer; user-select: none; } @@ -58,10 +58,10 @@ width: 1rem; height: 1rem; color: rgba(255, 255, 255, 0.85); - font-size: 0.875rem; + font-size: .875rem; line-height: 1; cursor: pointer; - border-radius: 0.125rem; + border-radius: .125rem; } .clear:hover { @@ -80,23 +80,23 @@ .panel { position: absolute; - top: calc(100% + 0.25rem); + top: calc(100% + .25rem); left: 0; z-index: 1050; min-width: 13.75rem; - padding: 0.75rem; + padding: .75rem; background: #14355C; border: 1px solid rgba(255, 255, 255, 0.25); - border-radius: 0.5rem; - box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.3); + border-radius: .5rem; + box-shadow: 0 .375rem 1rem rgba(0, 0, 0, 0.3); } .header { display: flex; align-items: center; justify-content: space-between; - margin-bottom: 0.75rem; - padding: 0 0.25rem; + margin-bottom: .75rem; + padding: 0 .25rem; } .navBtn { @@ -109,9 +109,9 @@ background: transparent; color: #fff; border: none; - border-radius: 0.25rem; + border-radius: .25rem; cursor: pointer; - font-size: 0.75rem; + font-size: .75rem; } .navBtn:hover:not(:disabled) { @@ -125,14 +125,14 @@ .decadeLabel { color: #fff; - font-size: 0.875rem; + font-size: .875rem; font-weight: 500; } .yearGrid { display: grid; grid-template-columns: repeat(3, 1fr); - gap: 0.25rem; + gap: .25rem; } .yearCell { @@ -142,9 +142,9 @@ background: transparent; color: #fff; border: none; - border-radius: 0.25rem; + border-radius: .25rem; cursor: pointer; - font-size: 0.875rem; + font-size: .875rem; transition: background 0.2s; } diff --git a/src/components/YearPicker/index.tsx b/src/components/YearPicker/index.tsx index 716cb5d..dfb03fd 100644 --- a/src/components/YearPicker/index.tsx +++ b/src/components/YearPicker/index.tsx @@ -94,7 +94,7 @@ export default function YearPicker({ {value != null ? `${value}年` : placeholder}
- arrow-down + arrow-down
diff --git a/src/components/layout/AnimateTopCard/index.module.css b/src/components/layout/AnimateTopCard/index.module.css index 84f524c..3d7029f 100644 --- a/src/components/layout/AnimateTopCard/index.module.css +++ b/src/components/layout/AnimateTopCard/index.module.css @@ -29,7 +29,7 @@ transition-delay: 0s; .cardTitle span { - left: 30px; + left: 1.875rem; transform: translateX(0); text-align: left; transition-delay: 0s; @@ -42,33 +42,33 @@ } .cardTitleUnderline::before { - left: 30px; + left: 1.875rem; transform: translateX(0); transition-delay: 0s; } } .cardInner { - padding: 50px; + padding: 3.125rem; width: 100%; height: 100%; background: transparent; transition: all 0.3s ease; transition-delay: 0.2s; position: absolute; - top: calc(100% - 170px); + top: calc(100% - 10.625rem); } .cardTitle { position: relative; font-weight: 500; - font-size: 24px; + font-size: 1.5rem; color: #FFFFFF; - height: 34px; - line-height: 34px; + height: 2.125rem; + line-height: 2.125rem; font-style: normal; text-transform: none; - padding: 0 30px; + padding: 0 1.875rem; span { display: inline-block; @@ -91,19 +91,19 @@ .cardTitleUnderline { position: relative; width: 100%; - height: 1px; + height: .0625rem; background: rgba(255,255,255,0.3); - margin-top: 30px; + margin-top: 1.875rem; &::before { content: ''; display: block; - width: 300px; - height: 3px; + width: 18.75rem; + height: .1875rem; background: rgba(255,255,255,1); position: absolute; left: 50%; - top: -1px; + top: -0.0625rem; transform: translateX(-50%); transition: all 0.3s ease; transition-delay: 0.2s; @@ -111,12 +111,12 @@ } .cardContent { - margin-top: 20px; - padding: 0 30px; + margin-top: 1.25rem; + padding: 0 1.875rem; font-weight: 400; - font-size: 18px; + font-size: 1.125rem; color: #FFFFFF; - line-height: 34px; + line-height: 2.125rem; text-align: justify; font-style: normal; text-transform: none; @@ -125,16 +125,16 @@ .cardMore { display: inline-block; - margin-top: 60px; - width: 104px; - height: 38px; - border-radius: 0px 0px 0px 0px; - border: 1px solid #FFFFFF; + margin-top: 3.75rem; + width: 6.5rem; + height: 2.375rem; + border-radius: 0rem 0rem 0rem 0rem; + border: .0625rem solid #FFFFFF; font-weight: 400; - font-size: 16px; + font-size: 1rem; color: #FFFFFF; - line-height: 22px; + line-height: 1.375rem; text-align: center; display: flex; align-items: center; diff --git a/src/components/layout/Article/index.module.css b/src/components/layout/Article/index.module.css index c86a304..92ddf15 100644 --- a/src/components/layout/Article/index.module.css +++ b/src/components/layout/Article/index.module.css @@ -1,11 +1,16 @@ .article { width: 100%; min-height: 100vh; - padding: 120px auto; + padding: 7.5rem 0; + + .articleHeaderLine, .articleHeader, .articleContent { + width: 90%; + margin: 0 auto; + } .articleHeaderLine { - height: 100px; - border-bottom: 1px solid #222222; + height: 6.25rem; + border-bottom: .0625rem solid #222222; display: flex; .articleHeaderLineBack { @@ -16,35 +21,35 @@ } .articleHeader { - padding: 60px 0; - margin-bottom: 60px; + padding: 3.75rem 0; + margin-bottom: 3.75rem; .articleHeaderTitle { font-weight: 700; - font-size: 32px; + font-size: 2rem; color: #222222; - line-height: 42px; + line-height: 2.625rem; text-align: center; font-style: normal; text-transform: none; - margin-bottom: 20px; + margin-bottom: 1.25rem; } .articleHeaderTimeLine { font-weight: 400; - font-size: 16px; + font-size: 1rem; color: #666666; - line-height: 22px; + line-height: 1.375rem; text-align: left; font-style: normal; text-transform: none; display: flex; - gap: 40px; + gap: 2.5rem; } } .articleContent { - font-size: 20px; + font-size: 1.25rem; } } \ No newline at end of file diff --git a/src/components/layout/Article/index.tsx b/src/components/layout/Article/index.tsx index 13394b7..c25c202 100644 --- a/src/components/layout/Article/index.tsx +++ b/src/components/layout/Article/index.tsx @@ -13,7 +13,7 @@ export default function Article({ data }: { data: Data }) {
window.history.back()}> - arrowleft + arrowleft 返回
diff --git a/src/components/layout/BottomTabsSection/index.module.css b/src/components/layout/BottomTabsSection/index.module.css index 8a111cb..596402d 100644 --- a/src/components/layout/BottomTabsSection/index.module.css +++ b/src/components/layout/BottomTabsSection/index.module.css @@ -2,9 +2,9 @@ position: relative; overflow: hidden; width: 100%; - /* height: 1080px; */ + /* height: 67.5rem; */ height: 100vh; - padding: 100px 0; + padding: 6.25rem 0; background-size: cover; background-position: center; background-repeat: no-repeat; @@ -32,10 +32,10 @@ .bottomTabsSectionContent { position: relative; z-index: 1; - width: calc(100% - 520px); + width: calc(100% - 32.5rem); margin: 0 auto; - height: 500px; - margin-top: 200px; + height: 31.25rem; + margin-top: 12.5rem; display: flex; flex-direction: column; justify-content: space-between; @@ -47,15 +47,15 @@ .contentTitle { font-weight: 500; - font-size: 30px; - line-height: 40px; + font-size: 1.875rem; + line-height: 2.5rem; } .contentText { font-weight: 400; - font-size: 18px; - line-height: 26px; - margin-top: 20px; + font-size: 1.125rem; + line-height: 1.625rem; + margin-top: 1.25rem; } } @@ -65,7 +65,7 @@ flex-direction: row; justify-content: space-evenly; gap: auto; - border-top: 1px solid rgba(255,255,255,0.5); + border-top: .0625rem solid rgba(255,255,255,0.5); padding: 0 auto; } @@ -77,7 +77,7 @@ position: absolute; top: 0; left: 0; - height: 2px; + height: .125rem; background-color: #fff; transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease; pointer-events: none; @@ -85,15 +85,15 @@ .bottomTabsSectionContentTab { font-weight: 500; - font-size: 20px; + font-size: 1.25rem; color: #FFFFFF; - line-height: 60px; - height: 60px; + line-height: 3.75rem; + height: 3.75rem; cursor: pointer; span { display: inline-block; - line-height: 60px; - height: 60px; + line-height: 3.75rem; + height: 3.75rem; } } \ No newline at end of file diff --git a/src/components/layout/ColumnXGrids/index.module.css b/src/components/layout/ColumnXGrids/index.module.css index 1eeaf2c..f0f6511 100644 --- a/src/components/layout/ColumnXGrids/index.module.css +++ b/src/components/layout/ColumnXGrids/index.module.css @@ -7,7 +7,7 @@ /* 3列 */ display: grid; grid-template-columns: repeat(3, 1fr); - gap: 30px; + gap: 1.875rem; .columnXGridsItem { color: #fff; @@ -43,7 +43,7 @@ width: 100%; height: 100%; z-index: 2; - padding: 60px 40px; + padding: 3.75rem 2.5rem; transition: background var(--duration) ease; &:hover { @@ -55,17 +55,17 @@ .columnXGridsItemTitle { font-weight: 500; - font-size: 24px; + font-size: 1.5rem; color: #FFFFFF; - line-height: 34px; - margin-bottom: 10px; + line-height: 2.125rem; + margin-bottom: .625rem; } .columnXGridsItemContent { font-weight: 500; - font-size: 18px; + font-size: 1.125rem; color: #FFFFFF; - line-height: 34px; + line-height: 2.125rem; opacity: 0; transition: opacity var(--duration) ease; } diff --git a/src/components/layout/HonorGrids/index.module.css b/src/components/layout/HonorGrids/index.module.css index 0229779..f131ecc 100644 --- a/src/components/layout/HonorGrids/index.module.css +++ b/src/components/layout/HonorGrids/index.module.css @@ -1,55 +1,55 @@ .honorGrids { width: 100%; - padding: 100px 0; + padding: 6.25rem 0; background: rgba(216, 216, 216, 0.5); .honorGridsTitle { font-family: Source Han Sans, Source Han Sans; font-weight: 700; - font-size: 40px; + font-size: 2.5rem; color: #222222; - line-height: 50px; + line-height: 3.125rem; text-align: center; - width: 1320px; + width: 82.5rem; margin: 0 auto; - margin-bottom: 100px; + margin-bottom: 6.25rem; } .honorGridsItems { - width: 1320px; + width: 82.5rem; margin: 0 auto; /* 4*n */ display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); - gap: 60px; + gap: 3.75rem; .honorGridsItem { - height: 116px; + height: 7.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; - padding: 0 50px; + padding: 0 3.125rem; text-align: center; .honorGridsTitle { font-weight: 400; - font-size: 16px; + font-size: 1rem; color: #222222; } .honorGridsItemLargeTitle { font-weight: 600; - font-size: 20px; + font-size: 1.25rem; color: #222222; - line-height: 30px; + line-height: 1.875rem; } .honorGridsItemBgleft, .honorGridsItemBgright { - width: 70px; - height: 116px; + width: 4.375rem; + height: 7.25rem; position: absolute; background-size: cover; background-position: left; diff --git a/src/components/layout/JobPage/index.module.css b/src/components/layout/JobPage/index.module.css index dc0d9a6..f6b63b4 100644 --- a/src/components/layout/JobPage/index.module.css +++ b/src/components/layout/JobPage/index.module.css @@ -1,11 +1,11 @@ .jobPage { width: 100%; min-height: 100vh; - padding: 120px 100px; + padding: 7.5rem 6.25rem; .jobPageHeaderLine { - height: 100px; - border-bottom: 1px solid #222222; + height: 6.25rem; + border-bottom: .0625rem solid #222222; display: flex; .jobPageHeaderLineBack { @@ -16,41 +16,41 @@ } .jobPageHeader { - padding: 60px 160px; + padding: 3.75rem 10rem; .jobPageHeaderTitle { font-weight: 700; - font-size: 32px; + font-size: 2rem; color: #222222; - line-height: 42px; + line-height: 2.625rem; /* text-align: center; */ font-style: normal; text-transform: none; - margin-bottom: 20px; + margin-bottom: 1.25rem; } .jobPageHeaderTimeLine { font-weight: 400; - font-size: 20px; + font-size: 1.25rem; color: #333333; - line-height: 30px; + line-height: 1.875rem; display: flex; - gap: 30px; + gap: 1.875rem; } } .jobPageContent { - font-size: 20px; - padding: 0 160px; + font-size: 1.25rem; + padding: 0 10rem; } .jobPageContentTitle { font-family: Source Han Sans, Source Han Sans; font-weight: 600; - font-size: 24px; + font-size: 1.5rem; color: #222222; - line-height: 34px; + line-height: 2.125rem; text-align: left; font-style: normal; text-transform: none; @@ -59,9 +59,9 @@ .jobPageContentText { font-family: Source Han Sans, Source Han Sans; font-weight: 400; - font-size: 18px; + font-size: 1.125rem; color: #333333; - line-height: 26px; + line-height: 1.625rem; text-align: left; font-style: normal; text-transform: none; diff --git a/src/components/layout/JobPage/index.tsx b/src/components/layout/JobPage/index.tsx index 0b6ffb3..44ebc38 100644 --- a/src/components/layout/JobPage/index.tsx +++ b/src/components/layout/JobPage/index.tsx @@ -18,7 +18,7 @@ export default function JobPage({ data }: { data: Data }) {
window.history.back()}> - arrowleft + arrowleft 返回
@@ -36,11 +36,11 @@ export default function JobPage({ data }: { data: Data }) {
岗位描述

-
+
任职需求

-
+
联系方式

{data.contact}

diff --git a/src/components/layout/ParagraphSection/index.module.css b/src/components/layout/ParagraphSection/index.module.css index f5e30e4..2cc6a02 100644 --- a/src/components/layout/ParagraphSection/index.module.css +++ b/src/components/layout/ParagraphSection/index.module.css @@ -1,5 +1,5 @@ .paragraphSection { - padding: 100px 260px; + padding: 6.25rem 16.25rem; background: rgba(255, 255, 255, 0.8); background-size: cover; background-position: center; @@ -11,9 +11,9 @@ .paragraphSectionTitle { font-weight: 500; - font-size: 40px; + font-size: 2.5rem; color: #14355C; - line-height: 50px; + line-height: 3.125rem; text-align: left; font-style: normal; text-transform: none; @@ -24,17 +24,17 @@ display: flex; flex-wrap: wrap; justify-content: center; - gap: 40px; - margin-top: 100px; + gap: 2.5rem; + margin-top: 6.25rem; .tag { font-family: Source Han Sans, Source Han Sans; font-weight: 500; - font-size: 24px; + font-size: 1.5rem; color: #14355C; - line-height: 30px; - padding: 24px 40px; + line-height: 1.875rem; + padding: 1.5rem 2.5rem; background: #F0F2F4; - border-radius: 326px 326px 326px 326px; + border-radius: 20.375rem 20.375rem 20.375rem 20.375rem; } } \ No newline at end of file diff --git a/src/components/layout/RowAccordion/index.module.css b/src/components/layout/RowAccordion/index.module.css index cd6a12e..c093f7b 100644 --- a/src/components/layout/RowAccordion/index.module.css +++ b/src/components/layout/RowAccordion/index.module.css @@ -4,9 +4,9 @@ .rowAccordion { position: relative; overflow-anchor: none; - padding: 0 260px; + /* padding: 0 16.25rem; */ width: 100%; - height: 100vh; + height: 100vh; } .rowAccordionBgContainer { position: absolute; @@ -27,44 +27,47 @@ .rowAccordion .contentRow { position: relative; z-index: 1; + width: 80%; + margin: 0 auto; } .rowAccordion { .headerRow { width: 100%; - height: 250px; + height: 15.625rem; display: flex; align-items: center; justify-content: center; .title { font-weight: 700; - font-size: 40px; + font-size: 2.5rem; color: #FFFFFF; - line-height: 50px; + line-height: 3.125rem; } } .contentRow { height: 100%; display: flex; color: #fff; + .contentItem { flex: 1; transition: flex var(--duration) ease, padding-bottom var(--duration) ease; display: flex; flex-direction: column; justify-content: flex-end; - padding-top: 100px; - padding-bottom: 100px; - border-left: 1px solid #fff; + padding-top: 6.25rem; + padding-bottom: 6.25rem; + border-left: .0625rem solid #fff; &:last-child { - border-right: 1px solid #fff; + border-right: .0625rem solid #fff; } .contentItemContainer { - padding: 0 20px; - min-height: 100px; + padding: 0 1.25rem; + min-height: 6.25rem; display: flex; flex-direction: column; justify-content: center; - margin-left: -3px; + margin-left: -0.1875rem; transition: all var(--duration) ease-in-out; position: relative; &::before { @@ -72,26 +75,26 @@ position: absolute; left: 0; top: 0; - width: 5px; - height: 100px; + width: .3125rem; + height: 6.25rem; background: #14355C; } } .contentItemTitle { - height: 100px; + height: 6.25rem; font-weight: 500; - font-size: 24px; + font-size: 1.5rem; color: #FFFFFF; transition: all var(--duration) ease-in-out; - margin-bottom: 6px; + margin-bottom: .375rem; display: flex; align-items: center; white-space: nowrap; } .contentItemSubtitle { - font-size: 20px; + font-size: 1.25rem; transition: font-size var(--duration) ease-in-out; } @@ -104,41 +107,41 @@ display: flex; flex-direction: column; justify-content: space-between; - /* padding: 60px 0; */ - margin-top: 20px; + /* padding: 3.75rem 0; */ + margin-top: 1.25rem; } .contentItemContent { - font-size: 16px; - /* margin-top: 40px; */ + font-size: 1rem; + /* margin-top: 2.5rem; */ } .contentItemLinks { font-weight: 700; - font-size: 16px; + font-size: 1rem; color: #FFFFFF; - line-height: 30px; + line-height: 1.875rem; text-decoration-line: underline; display: flex; flex-direction: row; flex-wrap: wrap; - gap: 30px 20px; + gap: 1.875rem 1.25rem; } } .contentItem.active { flex: 2; - padding-bottom: 200px; + padding-bottom: 12.5rem; .contentItemContainer { - padding: 0 40px; + padding: 0 2.5rem; } .contentItemTitle { - font-size: 40px; + font-size: 2.5rem; } .contentItemSubtitle { - font-size: 24px; + font-size: 1.5rem; } .contentItemContentWrapper { - height: 300px; + height: 18.75rem; opacity: 1; } } diff --git a/src/components/layout/RowAccordion/index.tsx b/src/components/layout/RowAccordion/index.tsx index f2e4f47..f1f5edf 100644 --- a/src/components/layout/RowAccordion/index.tsx +++ b/src/components/layout/RowAccordion/index.tsx @@ -90,7 +90,7 @@ export default function RowAccordion({ data, placement='bottom' }: Props) {
) } -
+
{data.items.map((item, index) => ( +
{title} {subtitle && {subtitle}} {subcontent && {subcontent}} diff --git a/src/components/layout/SwiperCardSection/index.module.css b/src/components/layout/SwiperCardSection/index.module.css index b91def8..4fb1afb 100644 --- a/src/components/layout/SwiperCardSection/index.module.css +++ b/src/components/layout/SwiperCardSection/index.module.css @@ -7,16 +7,16 @@ .carouselWrapper { display: flex; align-items: center; - gap: 20px; + gap: 1.25rem; position: relative; } .navBtn { flex-shrink: 0; - width: 50px; - height: 50px; + width: 3.125rem; + height: 3.125rem; background: #FFFFFF; - box-shadow: 0px 0 12px 0px rgba(20, 53, 92, 0.2); + box-shadow: 0rem 0 .75rem 0rem rgba(20, 53, 92, 0.2); border: none; border-radius: 50%; cursor: pointer; @@ -24,13 +24,13 @@ position: absolute; top: 50%; transform: translateY(-50%); - left: -90px; + left: -5.625rem; z-index: 99; } .nextBtn { left: auto; - right: -90px; + right: -5.625rem; } .swiperCardList { @@ -65,10 +65,10 @@ top: 0; .swiperTitle { - padding: 0 30px; + padding: 0 1.875rem; span { - left: 30px; + left: 1.875rem; transform: translateX(0); border-color: #fff; } @@ -91,21 +91,21 @@ .swiperTitle { position: relative; font-weight: 500; - font-size: 24px; + font-size: 1.5rem; color: #FFFFFF; - line-height: 80px; - height: 80px; - margin: 0 30px; - border-bottom: 1px solid rgba(255, 255, 255, 0.3); + line-height: 5rem; + height: 5rem; + margin: 0 1.875rem; + border-bottom: .0625rem solid rgba(255, 255, 255, 0.3); span { display: inline-block; position: absolute; left: 50%; - line-height: 80px; - height: 80px; - border-bottom: 3px solid #14355C; + line-height: 5rem; + height: 5rem; + border-bottom: .1875rem solid #14355C; transform: translateX(-50%); transition: left 0.3s ease-in-out, transform 0.3s ease-in-out; white-space: nowrap; @@ -113,10 +113,10 @@ } .swiperDesc { - font-size: 16px; + font-size: 1rem; color: #FFFFFF; - line-height: 24px; - margin: 40px 60px; + line-height: 1.5rem; + margin: 2.5rem 3.75rem; opacity: 0; } } diff --git a/src/components/layout/TopTabsSection/index.module.css b/src/components/layout/TopTabsSection/index.module.css index e50c921..ac0b717 100644 --- a/src/components/layout/TopTabsSection/index.module.css +++ b/src/components/layout/TopTabsSection/index.module.css @@ -1,5 +1,5 @@ .topTabsSection { - padding: 100px 260px 150px 260px; + padding: 6.25rem 16.25rem 9.375rem 16.25rem; width: 100%; min-height: 100vh; background-size: cover; @@ -9,11 +9,11 @@ .topTabsTabs { position: relative; - height: 60px; + height: 3.75rem; font-weight: 400; - font-size: 24px; - line-height: 34px; - border-bottom: 1px solid #D5D8DC; + font-size: 1.5rem; + line-height: 2.125rem; + border-bottom: .0625rem solid #D5D8DC; width: 100%; } @@ -22,8 +22,8 @@ top: 50%; transform: translateY(-50%); z-index: 1; - width: 36px; - height: 36px; + width: 2.25rem; + height: 2.25rem; display: flex; align-items: center; justify-content: center; @@ -32,7 +32,7 @@ color: #14355C; cursor: pointer; border-radius: 50%; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); + box-shadow: 0 .0625rem .25rem rgba(0, 0, 0, 0.15); transition: background 0.2s, color 0.2s; } @@ -42,11 +42,11 @@ } .topTabsNavBtnLeft { - left: 0px; + left: 0rem; } .topTabsNavBtnRight { - right: 0px; + right: 0rem; } .topTabsTabsScroll { @@ -54,7 +54,7 @@ display: flex; flex-direction: row; flex-wrap: nowrap; - gap: 130px; + gap: 8.125rem; height: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; @@ -74,14 +74,14 @@ .topTabsBottomLine { position: absolute; bottom: 0; - height: 2px; + height: .125rem; background: #000000; transition: left 0.25s ease, width 0.25s ease; } .topTabsTabItem { - /* height: 90px; - line-height: 90px; */ + /* height: 5.625rem; + line-height: 5.625rem; */ flex-shrink: 0; cursor: pointer; color: #222222; @@ -92,9 +92,9 @@ } .topTabsContent { - padding-top: 150px; + padding-top: 9.375rem; display: flex; - gap: 80px; + gap: 5rem; flex-direction: row; } @@ -103,20 +103,20 @@ margin: auto 0; .topTabsContentLeftHead { - margin-bottom: 30px; + margin-bottom: 1.875rem; display: flex; - gap: 10px; + gap: .625rem; .topTabsContentLeftTitle { display: flex; align-items: flex-end; - gap: 10px; + gap: .625rem; .topTabsContentLeftTitleMain { font-weight: 700; - font-size: 40px; + font-size: 2.5rem; color: #222222; - line-height: 50px; + line-height: 3.125rem; text-align: left; font-style: normal; text-transform: none; @@ -124,9 +124,9 @@ .topTabsContentLeftTitleSub { font-weight: 400; - font-size: 18px; + font-size: 1.125rem; color: #14355C; - line-height: 26px; + line-height: 1.625rem; text-align: left; font-style: normal; text-transform: none; @@ -142,9 +142,9 @@ .topTabsContentLeftDesc { font-weight: 400; - font-size: 18px; + font-size: 1.125rem; color: #222222; - line-height: 34px; + line-height: 2.125rem; text-align: justify; font-style: normal; text-transform: none; @@ -155,26 +155,26 @@ flex: 8; img { - width: 800px; - height: 500px; + width: 50rem; + height: 31.25rem; } } .topTabsContentItems { - width: 920px; + width: 57.5rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); - gap: 20px; + gap: 1.25rem; } .topTabsContentItem { list-style: disc; font-family: Source Han Sans, Source Han Sans; font-weight: 500; - font-size: 20px; + font-size: 1.25rem; color: #222222; - line-height: 30px; + line-height: 1.875rem; text-align: left; font-style: normal; text-transform: none; diff --git a/src/components/layout/TopTabsSection/index.tsx b/src/components/layout/TopTabsSection/index.tsx index 62e7e95..11d6d0d 100644 --- a/src/components/layout/TopTabsSection/index.tsx +++ b/src/components/layout/TopTabsSection/index.tsx @@ -60,7 +60,7 @@ export default function TopTabsSection({ data, className }: { data: Data, classN { data.tabItems[activeIndex].icon && ( - + ) } diff --git a/src/index.css b/src/index.css index 9399d6f..b28918f 100644 --- a/src/index.css +++ b/src/index.css @@ -1,35 +1,40 @@ -/* rem 基准:以 16px 为设计稿基准 */ +/* rem 基准:以设计稿 16px 为基准;再按 --ui-scale 抵消 Windows 显示缩放带来的物理尺寸偏大 */ +:root { + --design-rem-base: 16px; + --ui-scale: 1; +} + html { - font-size: 16px; + font-size: calc(var(--design-rem-base) * var(--ui-scale)); } @media screen and (max-width: 1920px) { html { - font-size: 16px; + --design-rem-base: 16px; } } @media screen and (max-width: 1440px) { html { - font-size: 14px; + --design-rem-base: 14px; } } @media screen and (max-width: 1024px) { html { - font-size: 12px; + --design-rem-base: 12px; } } @media screen and (max-width: 768px) { html { - font-size: 12px; + --design-rem-base: 12px; } } @media screen and (max-width: 480px) { html { - font-size: 12px; + --design-rem-base: 12px; } } @@ -41,6 +46,7 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + overflow-x: hidden; } code { diff --git a/src/index.tsx b/src/index.tsx index d0f88f2..2d56b89 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3,12 +3,24 @@ import ReactDOM from 'react-dom/client'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; +import { px2remTransformer, StyleProvider } from '@ant-design/cssinjs'; + +const dpr = window.devicePixelRatio || 1; +// 用 UI 缩放因子抵消 Windows 显示缩放导致的“物理尺寸变大”。 +// 例如:dpr=1.25 时 uiScale=0.8,rem 会整体变小 20%。 +const uiScale = 1 / dpr; +document.documentElement.style.setProperty('--ui-scale', String(uiScale)); + +// antd cssinjs 内部 px->rem 转换的 rootValue:rootValue 越大,rem 越小。 +const rootValue = 16 * dpr; const root = ReactDOM.createRoot( document.getElementById('root') as HTMLElement ); root.render( - + + + ); // If you want to start measuring performance in your app, pass a function diff --git a/src/layouts/Footer.module.css b/src/layouts/Footer.module.css index 5ef53d4..d7eb07c 100644 --- a/src/layouts/Footer.module.css +++ b/src/layouts/Footer.module.css @@ -18,18 +18,18 @@ .footerColumn { display: flex; flex-direction: column; - gap: 0.75rem; + gap: .75rem; } .footerTitle { - font-size: 0.875rem; + font-size: .875rem; font-weight: 600; color: #333; - margin-bottom: 0.25rem; + margin-bottom: .25rem; } .footerLink { - font-size: 0.8125rem; + font-size: .8125rem; color: #666; text-decoration: none; } @@ -42,7 +42,7 @@ display: flex; flex-direction: row; align-items: center; - gap: 40px; + gap: 2.5rem; position: absolute; right: 3.75rem; } @@ -57,7 +57,7 @@ .socialIcons { display: flex; - gap: 0.75rem; + gap: .75rem; } .socialIcon { @@ -70,7 +70,7 @@ justify-content: center; color: #666; text-decoration: none; - font-size: 0.75rem; + font-size: .75rem; } .footerLower { @@ -86,7 +86,7 @@ display: flex; align-items: center; justify-content: space-between; - font-size: 0.875rem; + font-size: .875rem; } .footerLowerLinks { @@ -103,7 +103,7 @@ color: #fff; } -@media (max-width: 1024px) { +@media (max-width: 64rem) { .footerUpper { padding: 2rem; } @@ -118,7 +118,7 @@ } } -@media (max-width: 768px) { +@media (max-width: 48rem) { .footerUpper { padding: 1.5rem; } @@ -140,6 +140,6 @@ .footerLowerInner { flex-direction: column; - gap: 0.5rem; + gap: .5rem; } } diff --git a/src/layouts/Footer.tsx b/src/layouts/Footer.tsx index 6541929..6f247a4 100644 --- a/src/layouts/Footer.tsx +++ b/src/layouts/Footer.tsx @@ -41,14 +41,14 @@ export default function Footer() { {icon.alt} ))} logo
@@ -79,7 +79,7 @@ function FooterLower({ return (
-
+
{`${copyright} | ${companyName}`} {icpNumber}
diff --git a/src/layouts/Header.module.css b/src/layouts/Header.module.css index d92ec02..e57df34 100644 --- a/src/layouts/Header.module.css +++ b/src/layouts/Header.module.css @@ -42,13 +42,13 @@ .whiteMode.header { /* background: rgba(255, 255, 255, 1); */ - box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.1); - box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2); + box-shadow: 0 0 .625rem 0 rgba(255, 255, 255, 0.1); + box-shadow: 0 0 .625rem 0 rgba(0, 0, 0, 0.2); transition-delay: none; } .keepNavDark.header::before { - height: 120px; + height: 7.5rem; } .whiteMode .navLink, @@ -103,7 +103,7 @@ width: 95%; margin: 0 auto; box-sizing: border-box; - height: 1px; + height: .0625rem; background: #FFFFFF; transform: scaleX(0); transform-origin: 90% 0; @@ -191,7 +191,7 @@ } .crossYline { - width: 1px; + width: .0625rem; height: 0%; background: #FFFFFF; align-self: flex-end; @@ -204,7 +204,7 @@ .langTrigger { display: flex; align-items: center; - gap: 0.25rem; + gap: .25rem; color: #fff; background: transparent; border: none; @@ -216,7 +216,7 @@ background: transparent; border: none; cursor: pointer; - padding: 0.25rem; + padding: .25rem; display: flex; align-items: center; justify-content: center; @@ -230,7 +230,7 @@ width: 100%; height: 0; background: rgba(255, 255, 255, 0.9); - box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); + box-shadow: 0 0 .625rem 0 rgba(0, 0, 0, 0.1); padding: 0; z-index: 1000; overflow: hidden; @@ -259,7 +259,7 @@ text-decoration: none; } -@media (max-width: 1024px) { +@media (max-width: 64rem) { .header { height: 5.5rem; } @@ -286,7 +286,7 @@ } } -@media (max-width: 768px) { +@media (max-width: 48rem) { .header { height: 4rem; } @@ -297,19 +297,19 @@ } .navItem { - padding: 0 0.5rem; + padding: 0 .5rem; } .headerRight { - gap: 0.5rem; + gap: .5rem; } .nav { - margin-right: 0.5rem; + margin-right: .5rem; } .actions { - margin-left: 0.5rem; + margin-left: .5rem; } .dropPanel { diff --git a/src/layouts/Header.tsx b/src/layouts/Header.tsx index f009598..990b9a2 100644 --- a/src/layouts/Header.tsx +++ b/src/layouts/Header.tsx @@ -134,7 +134,7 @@ export default function Header() { trigger={["click"]} >
- {searchData.map((item) => ( -
+ {localSearchData.map((item) => ( +
{item.title} - {dateFormat(item.createTime, "yyyy年MM月dd日")} + {locale.startsWith("zh") + ? dateFormat(item.createTime, "yyyy年MM月dd日") + : dateFormat(item.createTime, "yyyy-MM-dd") + }
{item.content}
-
+ ))}
+
); diff --git a/src/pages/Others/SiteMap.module.css b/src/pages/Others/SiteMap.module.css index a1806f8..fc0aefe 100644 --- a/src/pages/Others/SiteMap.module.css +++ b/src/pages/Others/SiteMap.module.css @@ -1,40 +1,40 @@ .siteMap { .siteMapTitle { font-weight: 700; - font-size: 24px; + font-size: 1.5rem; color: #14355C; - line-height: 34px; + line-height: 2.125rem; } .siteMapItems { - margin-top: 60px; - border-top: 1px solid #DDDDDD; - padding: 0 50px; + margin-top: 3.75rem; + border-top: .0625rem solid #DDDDDD; + padding: 0 3.125rem; /* 主网格:标签列 + 5列子项,列宽固定以实现跨行对齐 */ - /* 第一列为180px */ + /* 第一列为11.25rem */ display: grid; - grid-template-columns: 182px repeat(5, minmax(140px, 1fr)); + grid-template-columns: 11.375rem repeat(5, minmax(8.75rem, 1fr)); .siteMapItem { - padding: 50px 0; - border-bottom: 1px solid #DDDDDD; + padding: 3.125rem 0; + border-bottom: .0625rem solid #DDDDDD; display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; .siteMapItemLabel { - padding-left: 50px; + padding-left: 3.125rem; font-weight: 700; - font-size: 18px; + font-size: 1.125rem; color: #14355C; position: relative; &::after { content: ''; display: block; - height: 30px; - width: 1px; + height: 1.875rem; + width: .0625rem; background: #DDDDDD; position: absolute; right: 0; @@ -43,17 +43,17 @@ } .siteMapItemChildren { - padding: 0 20px 0 60px; + padding: 0 1.25rem 0 3.75rem; display: grid; grid-column: 2 / -1; grid-template-columns: subgrid; - column-gap: 20px; + column-gap: 1.25rem; .siteMapItemChildLabel { font-weight: bold; - font-size: 18px; + font-size: 1.125rem; color: #222222; - line-height: 22px; + line-height: 1.375rem; cursor: pointer; &:hover { @@ -63,13 +63,13 @@ .siteMapItemChildChildren { font-weight: 400; - font-size: 18px; + font-size: 1.125rem; color: #666666; - line-height: 22px; + line-height: 1.375rem; display: flex; flex-flow: column; - gap: 10px; - margin-top: 10px; + gap: .625rem; + margin-top: .625rem; .siteMapItemChildChild { cursor: pointer; diff --git a/src/pages/Others/TermsOfUse.tsx b/src/pages/Others/TermsOfUse.tsx index b566094..f1ff47a 100644 --- a/src/pages/Others/TermsOfUse.tsx +++ b/src/pages/Others/TermsOfUse.tsx @@ -25,8 +25,8 @@ export default function TermsOfUse() {

-

+
{section1Data.tabItems && } )} @@ -98,7 +98,7 @@ export default function Foundation() { ))}
-
+
)} @@ -108,7 +108,7 @@ export default function Foundation() { titleColor="#fff" background={section3Data.backgroundImage ?? "/images/bg-overview.png"} maskBackground="rgba(255,255,255,0.1)" - height="760px" + height="47.5rem" >
diff --git a/src/pages/Social/Sustainability.module.css b/src/pages/Social/Sustainability.module.css index ff6d43f..2510554 100644 --- a/src/pages/Social/Sustainability.module.css +++ b/src/pages/Social/Sustainability.module.css @@ -1,6 +1,6 @@ .socialResponsibilityCaseDataContent { - margin-top: -50px; - margin-bottom: 100px; + margin-top: -3.125rem; + margin-bottom: 6.25rem; } .socialResponsibilityCaseDataItems { @@ -11,7 +11,7 @@ */ display: flex; flex-wrap: wrap; - gap: 30px; + gap: 1.875rem; } .socialResponsibilityCaseDataItem { @@ -37,7 +37,7 @@ transition-delay: 0s; .socialResponsibilityCaseDataItemTitle { - left: 50px; + left: 3.125rem; transform: translateX(0); transition-delay: 0s; } @@ -50,7 +50,7 @@ } .socialResponsibilityCaseDataItemContentInner { - padding: 50px; + padding: 3.125rem; width: 100%; height: 100%; background: transparent; @@ -61,16 +61,16 @@ .socialResponsibilityCaseDataItemMore { display: inline-block; - margin-top: 60px; - width: 104px; - height: 38px; - border-radius: 0px 0px 0px 0px; - border: 1px solid #FFFFFF; + margin-top: 3.75rem; + width: 6.5rem; + height: 2.375rem; + border-radius: 0rem 0rem 0rem 0rem; + border: .0625rem solid #FFFFFF; font-weight: 400; - font-size: 16px; + font-size: 1rem; color: #FFFFFF; - line-height: 22px; + line-height: 1.375rem; text-align: center; display: flex; align-items: center; @@ -80,9 +80,9 @@ .socialResponsibilityCaseDataItemTitle { font-weight: 500; - font-size: 24px; + font-size: 1.5rem; color: #FFFFFF; - line-height: 34px; + line-height: 2.125rem; font-style: normal; text-transform: none; transition: all 0.3s ease; @@ -91,11 +91,11 @@ } .socialResponsibilityCaseDataItemContent { - margin-top: 20px; + margin-top: 1.25rem; font-weight: 400; - font-size: 18px; + font-size: 1.125rem; color: #FFFFFF; - line-height: 34px; + line-height: 2.125rem; text-align: justify; font-style: normal; text-transform: none; @@ -109,16 +109,16 @@ /* 奇数行 [宽|窄]: 4n+1 宽, 4n+2 窄 */ /* 偶数行 [窄|宽]: 4n+3 窄, 4n+4 宽 */ -/* 810+560=1370,每行总宽 = 100% - 30px */ +/* 810+560=1370,每行总宽 = 100% - 1.875rem */ .socialResponsibilityCaseDataItem:nth-child(4n + 1), .socialResponsibilityCaseDataItem:nth-child(4n + 4) { - flex-basis: calc((100% - 30px) * 810 / 1370); + flex-basis: calc((100% - 1.875rem) * 810 / 1370); aspect-ratio: 810 / 480; } .socialResponsibilityCaseDataItem:nth-child(4n + 2), .socialResponsibilityCaseDataItem:nth-child(4n + 3) { - flex-basis: calc((100% - 30px) * 560 / 1370); + flex-basis: calc((100% - 1.875rem) * 560 / 1370); aspect-ratio: 560 / 480; } @@ -127,16 +127,16 @@ /* 4列 */ display: grid; grid-template-columns: repeat(4, 1fr); - gap: 33px; + gap: 2.0625rem; .socialResponsibilityReportItem { - /* width: 325px; */ + /* width: 20.3125rem; */ .socialResponsibilityReportItemCover { - /* width: 325px; */ - /* height: 439px; */ + /* width: 20.3125rem; */ + /* height: 27.4375rem; */ aspect-ratio: 325 / 439; - box-shadow: 0px 0px 20px 0px rgba(0, 16, 32, 0.2); + box-shadow: 0rem 0rem 1.25rem 0rem rgba(0, 16, 32, 0.2); background-size: cover; background-position: center; background-repeat: no-repeat; @@ -145,13 +145,13 @@ .socialResponsibilityReportItemTitle { font-weight: 500; - font-size: 18px; + font-size: 1.125rem; color: #222222; - line-height: 26px; + line-height: 1.625rem; text-align: center; font-style: normal; text-transform: none; - margin-top: 40px; + margin-top: 2.5rem; } } @@ -159,16 +159,16 @@ } .socialResponsibilityReportItemMore { - width: 104px; - height: 38px; - line-height: 38px; + width: 6.5rem; + height: 2.375rem; + line-height: 2.375rem; text-align: center; - border: 1px solid #333333; - font-size: 16px; + border: .0625rem solid #333333; + font-size: 1rem; color: #333333; cursor: pointer; margin: 0 auto; - margin-top: 100px; + margin-top: 6.25rem; &:hover { background: #14355C; diff --git a/src/proxy.cjs b/src/proxy.cjs index 936af2f..93b03a5 100644 --- a/src/proxy.cjs +++ b/src/proxy.cjs @@ -9,7 +9,7 @@ const isDev = process.env.DEV console.log('isDev', isDev) module.exports = { '/companyHome': { - target: isDev ? 'http://10.3.0.7:9999/' : 'http://yintai.batiao8.com/', + target: isDev === 'true' ? 'http://10.3.0.7:9999/' : 'http://yintai.batiao8.com/', // target: "http://10.3.0.24:9211/", changeOrigin: true, rewrite: (path) => path.replace(/^\/companyHome/, '') diff --git a/src/utils/toast.tsx b/src/utils/toast.tsx index 6874086..73e18fd 100644 --- a/src/utils/toast.tsx +++ b/src/utils/toast.tsx @@ -15,7 +15,7 @@ const Toast = ( type === "info" ? "#333" : type === "warn" ? "#ff9800" : "#f44336" }; color: white; - padding: 10px 20px; + padding: .625rem 1.25rem; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); z-index: 1000;