移动端尺寸字体调整

This commit is contained in:
2025-12-03 15:30:19 +08:00
parent e16b8b6b41
commit 42d9efdc02
31 changed files with 839 additions and 259 deletions

View File

@@ -1,14 +1,38 @@
{extend name="public/base" /}
{block name="style"}
<!-- 将rem适配JS移到这里确保优先执行 -->
<script type="text/javascript">
(function (doc, win) {
var docEl = doc.documentElement;
var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';
function setRootFontSize() {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
var fontSize = clientWidth / 7.5; // 750px/7.5=100px375px/7.5=50px
// 直接修改内联样式,优先级最高
docEl.setAttribute('style', 'font-size: ' + fontSize + 'px !important;');
}
setRootFontSize();
win.addEventListener(resizeEvt, setRootFontSize);
doc.addEventListener('DOMContentLoaded', setRootFontSize);
})(document, window);
console.log("根元素实际 font-size:", getComputedStyle(document.documentElement).fontSize);
// 查看内联设置的 font-sizeJS 代码设置的值)
console.log("内联设置的 font-size:", document.documentElement.style.fontSize);
</script>
<link rel="stylesheet" href="__CSS__/topic_power_prodline/index.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/swiper.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/nav.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/advantage.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/swiper1.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/nav1.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/advantage1.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/moren.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/mask.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_list.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product1.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_list1.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_card.css">
<link rel="stylesheet" href="__CSS__/topic_power_prodline/footer.css">
{/block}
{block name="header"}
<!-- 重置header头为空 -->
@@ -237,7 +261,7 @@
<a class="product-left" href="{$dc_first_section_lf.link}">
<img src="{$dc_first_section_lf.image}" alt="{$dc_first_section_lf.short_title}" class="product-img">
<!-- 公共类+定位类:尺寸和第一个完全一致,仅定位不同 -->
<div class="product-img-hover" >
<div class="product-img-hover right" >
<img src="{$dc_first_section_lf.extra_image}" alt="{$dc_first_section_lf.short_title}" class="img3">
</div>
</a>
@@ -465,6 +489,27 @@
{/block}
{block name="script"}
<script type="text/javascript">
// (function (doc, win) {
// var docEl = doc.documentElement,
// resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
// recalc = function () {
// var clientWidth = docEl.clientWidth;
// if (!clientWidth) return;
// // 设计稿750px → 基准font-size=100px375px设备自动变为50px
// clientWidth = Math.min(clientWidth, 750); // 大屏不超过设计稿宽度
// clientWidth = Math.max(clientWidth, 320); // 小屏保底
// docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
// // 将console.log放在recalc内部每次计算后打印
// console.log(docEl.style.fontSize, '=docEl.style.fontSize=');
// };
// if (!doc.addEventListener) return;
// win.addEventListener(resizeEvt, recalc, false);
// doc.addEventListener('DOMContentLoaded', recalc, false);
// })(document, window);
let swiper=null;
const advantageItems = document.querySelectorAll('.advantage-card');
let scrollTop = 0; // 保存页面滚动位置

View File

@@ -23,7 +23,7 @@
.iotbt1 {
font-size: 18px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
padding-bottom: 24px;
padding-top: 40px;
font-weight: 700;
@@ -60,7 +60,7 @@
.iotbtp1 {
font-size: 14px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: bold;
padding-bottom: 11px;
word-break: break-word;
@@ -69,7 +69,7 @@
.iotbts1 {
text-align: center;
font-size: 12px;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
color: #9e9e9f;
word-break: break-word;
}
@@ -140,7 +140,7 @@
font-size: 14px;
padding-top: 12px;
text-align: center;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
overflow-wrap: break-word;
word-break: break-word;
}
@@ -152,7 +152,7 @@
.sfbt1 {
text-align: center;
font-size: 18px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: bold;
padding-bottom: 24px;
padding-top: 24px;
@@ -183,7 +183,7 @@
.cit {
width: 100%;
font-size: 14px;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
color: #000;
display: flex;
flex-direction: row;
@@ -237,7 +237,7 @@
.wcu_s1 {
color: #000;
font: 16px;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
font-weight: 500;
padding: 20px 24px;
}

View File

@@ -598,7 +598,7 @@
margin: auto;
font-size: 1rem;
color: #707070;
font-family: "Metropolis-Medium";
font-family: "HarmonyOS-Medium";
}
.oricoCnLc .gallery-thumbs .swiper-slide-thumb-active {
@@ -632,14 +632,14 @@
.oricoCnLc .info h5 {
font-size: #000;
font-size: 1rem;
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
padding: 2rem 2rem 0 1rem;
margin: 0;
}
.oricoCnLc .info p {
color: #707070;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
padding: 1rem;
}
@@ -651,7 +651,7 @@
.oricoCnLc .m_ach-b .title {
font-size: 1.125rem;
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
width: 98%;
margin: auto;
position: relative;
@@ -660,7 +660,7 @@
.oricoCnLc .m_ach-b .chtitle {
font-size: 1.125rem;
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
width: 98%;
margin: auto;
position: relative;
@@ -677,7 +677,7 @@
.oricoCnLc .m_ch-title {
font-size: 1rem;
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
width: 98%;
margin: 1rem auto 0;
padding: 1rem 0 0;
@@ -690,7 +690,7 @@
font-size: 0.875;
line-height: 1.5rem;
color: #707070;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
width: 98%;
margin: 1rem auto;
padding: 0;

View File

@@ -156,7 +156,7 @@
border-radius: 8px;
height: 48px;
box-shadow: none;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
}
.oricoEGapp-articledetail .content .share_box .comment .comment_form>div input {

View File

@@ -33,7 +33,7 @@
border-radius: 1rem;
background-color: #fff;
color: #6b6c6e;
font-family: "Metropolis-Medium";
font-family: "HarmonyOS-Medium";
font-size: 0.875rem;
display: inline-block;
margin-bottom: 0.5rem;

View File

@@ -16,7 +16,7 @@
font-size: 18px;
color: #004bfa;
text-align: left;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: 700;
margin-top: 0;
margin-bottom: 12px;
@@ -27,7 +27,7 @@
color: #707070;
text-align: center;
text-align: left;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
font-weight: 500;
}
@@ -83,7 +83,7 @@
.itlable {
font-size: 12.5px;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
color: #000000;
font-weight: bold;
padding-bottom: 5px;
@@ -106,7 +106,7 @@
height: 48px;
border: none;
box-shadow: none;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
}
.itselectopen {
@@ -130,12 +130,12 @@
padding: 15px;
background: #f2f2f2;
border-radius: 8px;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
}
.bttj {
font-size: 14px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: bold;
/* width: 212px; */
/* height: 48px; */
@@ -173,7 +173,7 @@
.iotbt1 {
font-size: 18px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
padding-bottom: 24px;
padding-top: 40px;
font-weight: 700;
@@ -210,7 +210,7 @@
.iotbtp1 {
font-size: 14px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: bold;
padding-bottom: 11px;
word-break: break-word;
@@ -219,7 +219,7 @@
.iotbts1 {
text-align: center;
font-size: 12px;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
color: #9e9e9f;
word-break: break-word;
}
@@ -290,7 +290,7 @@
font-size: 14px;
padding-top: 12px;
text-align: center;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
overflow-wrap: break-word;
word-break: break-word;
}
@@ -302,7 +302,7 @@
.sfbt1 {
text-align: center;
font-size: 18px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: bold;
padding-bottom: 24px;
padding-top: 24px;
@@ -333,7 +333,7 @@
.cit {
width: 100%;
font-size: 14px;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
color: #000;
display: flex;
flex-direction: row;
@@ -388,7 +388,7 @@
.wcu_s1 {
color: #000;
font-size: 16px;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
font-weight: 500;
padding: 20px 24px;
}

View File

@@ -16,7 +16,7 @@
font-size: 18px;
color: #004bfa;
text-align: left;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: 700;
margin-top: 0;
margin-bottom: 12px;
@@ -27,7 +27,7 @@
color: #707070;
text-align: center;
text-align: left;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
font-weight: 500;
}
@@ -83,7 +83,7 @@
.itlable {
font-size: 12.5px;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
color: #000000;
font-weight: bold;
padding-bottom: 5px;
@@ -106,7 +106,7 @@
height: 48px;
border: none;
box-shadow: none;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
}
.itselectopen {
@@ -130,13 +130,13 @@
padding: 15px;
background: #f2f2f2;
border-radius: 8px;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
border: 0;
}
.bttj {
font-size: 14px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: bold;
/* width: 212px; */
padding: 15px 60px;
@@ -173,7 +173,7 @@
.iotbt1 {
font-size: 18px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
padding-bottom: 24px;
padding-top: 40px;
font-weight: 700;
@@ -210,7 +210,7 @@
.iotbtp1 {
font-size: 14px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: bold;
padding-bottom: 11px;
word-break: break-word;
@@ -219,7 +219,7 @@
.iotbts1 {
text-align: center;
font-size: 12px;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
color: #9e9e9f;
word-break: break-word;
}
@@ -290,7 +290,7 @@
font-size: 14px;
padding-top: 12px;
text-align: center;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
overflow-wrap: break-word;
word-break: break-word;
}
@@ -302,7 +302,7 @@
.sfbt1 {
text-align: center;
font-size: 18px;
font-family: Metropolis-Bold, Metropolis;
font-family: HarmonyOS-Bold, HarmonyOS;
font-weight: bold;
padding-bottom: 24px;
padding-top: 24px;
@@ -333,7 +333,7 @@
.cit {
width: 100%;
font-size: 14px;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
color: #000;
display: flex;
flex-direction: row;
@@ -387,7 +387,7 @@
.wcu_s1 {
color: #000;
font: 16px;
font-family: Metropolis-Medium, Metropolis;
font-family: HarmonyOS-Medium, HarmonyOS;
font-weight: 500;
padding: 20px 24px;
}

View File

@@ -7,7 +7,7 @@
margin-top: 3.3rem;
}
.oricoEGapp-Contact .banner_title {
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 1.5rem;
position: absolute;
top: 50%;
@@ -24,7 +24,7 @@
color: #000;
}
.oricoEGapp-Contact .title {
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 1rem;
}
.oricoEGapp-Contact .info {
@@ -43,12 +43,12 @@
height: 3rem;
}
.oricoEGapp-Contact .info .right .des {
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
font-size: 0.875rem;
line-height: 1.25rem;
}
.oricoEGapp-Contact .info_title {
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 0.875rem;
line-height: 1.25rem;
margin-bottom: 0.22rem;
@@ -61,7 +61,7 @@
}
.oricoEGapp-Contact .question .title {
margin-top: 0.5rem;
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 0.875rem;
line-height: 1.25rem;
}
@@ -86,7 +86,7 @@
.oricoEGapp-Contact .send {
display: block;
background-color: #004bfa;
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 0.875rem;
padding: 0.75rem 1.5rem;
color: #fff;
@@ -98,7 +98,7 @@
color: #ee2f53;
}
.oricoEGapp-Contact .contact_b {
font-family: "Metropolis-SemiBold";
font-family: "HarmonyOS-SemiBold";
font-size: 1rem;
padding-top: 1.125rem;
padding-bottom: 1.125rem;
@@ -119,42 +119,42 @@
.oricoEGapp-Contact input::-webkit-input-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact input:-moz-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact input::-moz-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact input:-ms-input-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact textarea::-webkit-input-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact textarea:-moz-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact textarea::-moz-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact textarea:-ms-input-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact .narskfPage {
width: 100%;

View File

@@ -7,7 +7,7 @@
margin-top: 3.3rem;
}
.oricoEGapp-Contact .banner_title {
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 1.5rem;
position: absolute;
top: 50%;
@@ -24,7 +24,7 @@
color: #000;
}
.oricoEGapp-Contact .title {
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 1rem;
}
.oricoEGapp-Contact .info {
@@ -46,12 +46,12 @@
width: 88% !important;
}
.oricoEGapp-Contact .info .right .des {
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
font-size: 0.875rem;
line-height: 1.25rem;
}
.oricoEGapp-Contact .info_title {
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 0.875rem;
line-height: 1.25rem;
margin-bottom: 0.22rem;
@@ -64,7 +64,7 @@
}
.oricoEGapp-Contact .question .title {
margin-top: 0.5rem;
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 0.875rem;
line-height: 1.25rem;
}
@@ -89,7 +89,7 @@
.oricoEGapp-Contact .send {
display: block;
background-color: #004bfa;
font-family: "Metropolis-Bold";
font-family: "HarmonyOS-Bold";
font-size: 0.875rem;
padding: 0.75rem 1.5rem;
color: #fff;
@@ -101,7 +101,7 @@
color: #ee2f53;
}
.oricoEGapp-Contact .contact_b {
font-family: "Metropolis-SemiBold";
font-family: "HarmonyOS-SemiBold";
font-size: 1rem;
padding-top: 1.125rem;
padding-bottom: 1.125rem;
@@ -122,40 +122,40 @@
.oricoEGapp-Contact input::-webkit-input-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact input:-moz-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact input::-moz-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact input:-ms-input-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact textarea::-webkit-input-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact textarea:-moz-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact textarea::-moz-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}
.oricoEGapp-Contact textarea:-ms-input-placeholder {
color: #9e9e9f;
font-size: 0.875rem;
font-family: "Metropolis-Regular";
font-family: "HarmonyOS-Regular";
}

View File

@@ -29,7 +29,7 @@
display: none;
}
.oircoEgapp-head .top-menu .it-ct {
font-family: "Metropolis-SemiBold";
font-family: "HarmonyOS-SemiBold";
font-weight: bold;
}
.oircoEgapp-head .top-menu .it-ct .it-1 {

View File

@@ -1,20 +1,20 @@
@font-face {
font-family: "Metropolis";
src: url("../fonts/Metropolis-Regular.otf") format("opentype");
font-family: "HarmonyOS";
src: url("../fonts/HarmonyOS-Regular.otf") format("opentype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Metropolis-Bold";
src: url("../fonts/Metropolis-Bold.otf") format("opentype");
font-family: "HarmonyOS-Bold";
src: url("../fonts/HarmonyOS-Bold.otf") format("opentype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Metropolis-Medium";
src: url("../fonts/Metropolis-Medium.otf") format("opentype");
font-family: "HarmonyOS-Medium";
src: url("../fonts/HarmonyOS-Medium.otf") format("opentype");
font-weight: normal;
font-style: normal;
}
@@ -22,7 +22,7 @@
* {
margin: 0;
padding: 0;
/* font-family: 'Metropolis'; */
/* font-family: 'HarmonyOS'; */
-ms-overflow-style: none;
/* IE 和 Edge */
scrollbar-width: none;
@@ -88,7 +88,7 @@ a {
}
body {
font-family: 'Metropolis-SemiBold';
font-family: 'HarmonyOS-SemiBold';
}
/* 分页样式 */

View File

@@ -1,29 +1,30 @@
@font-face {
font-family: "Metropolis";
src: url("../fonts/Metropolis-Regular.otf") format("opentype");
font-family: "HarmonyOS";
src: url("../fonts/HarmonyOS_Sans_SC_Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Metropolis-Bold";
src: url("../fonts/Metropolis-Bold.otf") format("opentype");
font-family: "HarmonyOS-Bold";
src: url("../fonts/HarmonyOS_Sans_SC_Bold.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Metropolis-Medium";
src: url("../fonts/Metropolis-Medium.otf") format("opentype");
font-family: "HarmonyOS-Medium";
src: url("../fonts/HarmonyOS_Sans_SC_Medium.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
/* HarmonyOS-SemiBold1 */
@font-face {
font-family: "Metropolis-SemiBold";
src: url("../fonts/Metropolis-SemiBold.otf") format("opentype");
font-family: "HarmonyOS-SemiBold";
src: url("../fonts/HarmonyOS_Sans_SC_Bold.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
body {
font-family: 'Metropolis-SemiBold';
font-family: 'HarmonyOS-SemiBold';
margin: auto;
background-color: #f5f5f5;
max-width: 750px;
@@ -591,7 +592,7 @@ button.swiper-pagination-bullet {
.Innew-text .title {
font-size: 2.5rem;
padding-bottom: 1rem;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
}
.Inpro-text {
padding: 2rem 0 0.8rem;
@@ -600,7 +601,7 @@ button.swiper-pagination-bullet {
.Inpro-text .title {
font-size: 1.5rem;
padding-bottom: 1rem;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
}
.Innew-text .more {
@@ -635,7 +636,7 @@ video img {
font-size: 1.2rem;
max-height: 3rem;
overflow: hidden;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
}
.inprotext .t-f16 {
font-size: 1rem;
@@ -957,12 +958,12 @@ video img {
margin: auto;
line-height: 2rem;
padding: 0 3rem;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
}
.ban-t {
padding: 0.5rem 3rem;
font-size: 1.125rem;
font-family: 'Metropolis-Regular';
font-family: 'HarmonyOS-Regular';
}
.btn-more {
background: transparent;
@@ -979,7 +980,7 @@ video img {
margin: auto;
font-size: 1rem;
font-weight: 600;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
}
/*类别*/
.category {
@@ -1095,11 +1096,11 @@ video img {
padding: 0.2rem 0;
text-align: center;
margin: 0;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
}
.num-bg li p {
font-size: 0.8rem;
font-family: 'Metropolis-Regular';
font-family: 'HarmonyOS-Regular';
}
/*标题*/
.Tech-text {
@@ -1115,7 +1116,7 @@ video img {
.Tech-text p {
padding: 1rem 0;
font-size: 0.875rem;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
}
.pos-text {
@@ -1125,7 +1126,7 @@ video img {
color: #fff;
font-size: 0.825rem;
margin: 0 auto;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
height: 2rem;
overflow: hidden;
text-overflow: ellipsis;
@@ -1157,7 +1158,7 @@ video img {
font-size: 0.9rem;
padding: 1rem 0;
line-height: 1.3em;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
word-break: break-all;
}
.faq span {
@@ -1172,7 +1173,7 @@ video img {
font-size: 0.875rem;
line-height: 1.75em;
color: #666;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
}
.faq i {
position: absolute;
@@ -1209,7 +1210,7 @@ video img {
word-wrap: break-word;
overflow: hidden;
height: 1.5rem;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
font-weight: 400;
word-break: break-all;
}
@@ -1217,7 +1218,7 @@ video img {
font-size: 1.125rem;
color: #7f7f7f;
padding-bottom: 1rem;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
font-weight: 400;
}
/*foot */
@@ -1249,7 +1250,7 @@ video img {
}
.foot-in h3 {
font-size: 1.25rem;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
font-weight: 100;
}
.logo-input {
@@ -1292,7 +1293,7 @@ video img {
.foot-cate li p {
font-size: 0.7rem;
line-height: 2.5rem;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
word-wrap: break-word;
}
.foot-wei {
@@ -1327,7 +1328,7 @@ video img {
width: 100%;
height: 1.2rem;
cursor: pointer;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
}
/*下拉*/
.m_footer .left {
@@ -1375,7 +1376,7 @@ video img {
text-align: center;
font-size: 12px;
padding-bottom: 0.5rem;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
}
/*下拉*/
.mask-up {
@@ -1985,7 +1986,7 @@ video img {
}
.swiper-slide a {
color: #000;
font-family: 'Metropolis-SemiBold';
font-family: 'HarmonyOS-SemiBold';
}
.swiper-slide img {
max-width: 100%;
@@ -2491,7 +2492,7 @@ video img {
margin-right: 0px;
line-height: 40px;
font-weight: 600;
font-family: Metropolis !important;
font-family: HarmonyOS !important;
color: #666;
text-align: left;
}
@@ -3479,26 +3480,26 @@ video img {
font-size: 1.5rem;
width: 90%;
margin: 4rem auto 0;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
}
.timedesin {
font-size: 0.875rem;
padding: 0.5rem 1rem;
line-height: 1.3rem;
width: 90%;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
}
.timeblue {
color: #004bfa;
font-size: 1.125rem;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
}
.timeblue img {
vertical-align: middle;
}
.timeblue a {
color: #004bfa;
font-family: 'Metropolis-Medium';
font-family: 'HarmonyOS-Medium';
}
/*视频*/
.video-youtu {
@@ -3558,7 +3559,7 @@ video img {
}
.vision-title {
font-size: 1rem;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
width: 98%;
margin: 1rem auto 0;
}
@@ -3566,7 +3567,7 @@ video img {
font-size: 0.875;
line-height: 1.5rem;
color: #707070;
font-family: 'Metropolis-Regular';
font-family: 'HarmonyOS-Regular';
width: 98%;
margin: 1rem auto;
}
@@ -3584,7 +3585,7 @@ video img {
}
.brand_title {
font-size: 1.125rem;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
width: 98%;
margin: 1rem auto 0;
position: relative;
@@ -3602,7 +3603,7 @@ video img {
font-size: 0.875;
line-height: 1.5rem;
color: #000000;
font-family: 'Metropolis-Regular';
font-family: 'HarmonyOS-Regular';
width: 98%;
margin: 1rem auto;
}
@@ -3655,7 +3656,7 @@ video::-webkit-media-controls-current-time-display {
}
.m_ach .title {
font-size: 1.125rem;
font-family: 'Metropolis-Bold';
font-family: 'HarmonyOS-Bold';
width: 98%;
margin: 1rem auto 0;
position: relative;
@@ -3680,7 +3681,7 @@ video::-webkit-media-controls-current-time-display {
}
.m_ach .list-num li p {
color: #707070;
font-family: 'Metropolis-Regular';
font-family: 'HarmonyOS-Regular';
}
/*新闻评测*/
.news-vertu {
@@ -3976,7 +3977,7 @@ video::-webkit-media-controls-current-time-display {
border-radius: 8px;
height: 48px;
box-shadow: none;
font-family: Metropolis-Regular, Metropolis;
font-family: HarmonyOS-Regular, HarmonyOS;
}
.comment_area {
width: 100% !important;

View File

@@ -267,7 +267,7 @@
}
.advantage-card__description {
font-size: clamp(10px, 2vw, 14px);
font-size: clamp(11px, 2vw, 18px);
min-height: clamp(24px, 4vw, 30px);
color:#666666;
}
@@ -307,5 +307,6 @@
.advantage-card__description {
min-height: clamp(18px, 4vw, 24px);
color:#666666;
font-size: clamp(11px, 2vw, 18px);
}
}

View File

@@ -0,0 +1,143 @@
/* 核心模块固定90%宽度PC端优化移动端边距 */
.advantage-section {
width: 93.5%;
margin: 0 auto;
padding-top:0.99rem;
position: relative;
z-index: 1;
height: auto !important;
min-height: auto !important;
margin-bottom: 0.51rem;
}
/* 标题容器:恢复原有居中样式 */
.advantage-section__title {
font-size: 0.46rem;
font-weight: 700;
text-align: center;
color: #101010;
margin:0 auto;
margin-bottom: 0.51rem;
width: 80%;
}
/* 列表容器改为wrap换行实现2+3布局间距设为0.08rem8px */
.advantage-section__list {
display: flex;
justify-content: flex-start; /* 左对齐排列 */
align-items: flex-start;
gap: 0.08rem; /* 列间距设计稿8px=0.08rem */
row-gap: 0.08rem; /* 行间距设计稿8px=0.08rem */
width: 100% !important;
flex-wrap: wrap; /* 允许换行 */
overflow: visible !important;
padding: 0 !important;
height: auto !important;
min-height: 1px !important;
position: relative !important;
}
/* 卡片包裹容器:动态宽度控制 */
.advantage-card-wrap {
display: block !important;
height: auto !important;
min-height: 1px !important;
}
/* 第一行2个卡片宽度=(100% - 1个间距)/2 */
.advantage-card-wrap:nth-child(1),
.advantage-card-wrap:nth-child(2) {
width: calc((100% - 0.08rem) / 2) !important;
}
/* 第二行3个卡片宽度=(100% - 2个间距)/3 */
.advantage-card-wrap:nth-child(3),
.advantage-card-wrap:nth-child(4),
.advantage-card-wrap:nth-child(5) {
width: calc((100% - 2 * 0.08rem) / 3) !important;
}
/* 卡片核心:宽度继承父容器,高度自适应 */
.advantage-card {
width: 100% !important;
overflow: hidden;
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
cursor: pointer;
background: #fff;
position: relative;
z-index: 1;
height: auto !important;
display: flex;
flex-direction: column;
border-radius: 0.1rem 0.1rem 0 0 !important;
}
/* 图片容器保持1:1比例 */
.advantage-card__img {
width: 100%;
aspect-ratio: 1 / 1; /* 1:1比例 */
object-fit: cover;
background-color: #f9f9f9;
display: block;
flex-shrink: 0;
}
/* 文字区域保持内边距和布局内部间距也调整为0.08rem */
.advantage-card__content {
width: 100%;
padding: 0.4rem 0.23rem 0.31rem 0.2rem; /* 上下内边距 */
gap: 0.08rem; /* 内部元素间距设计稿8px=0.08rem */
}
/* 标题容器间距设为0.08rem8px */
.advantage-card__heading-wrap {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.08rem; /* 设计稿8px=0.08rem */
width: 100%;
}
/* 卡片标题:字体大小调整 */
.advantage-card__heading {
font-size: 0.34rem;
font-weight: 600;
color: #101010;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; /* 强制不换行 */
overflow: hidden; /* 超出隐藏 */
text-overflow: ellipsis; /* 显示省略号 */
}
/* 描述文字样式 */
.advantage-card__description {
font-size: 0.24rem;
color:#666666;
margin-top: 0.08rem; /* 与标题间距设计稿8px=0.08rem */
white-space: nowrap; /* 强制不换行 */
overflow: hidden; /* 超出隐藏 */
text-overflow: ellipsis; /* 显示省略号 */
}
/* 箭头大小 */
.card-arrow {
transition: transform 0.3s ease;
display: inline-flex;
align-items: center;
justify-content: center;
width: 0.33rem;
height: 0.33rem;
}
/* 卡片hover效果 */
/* .advantage-card:hover {
transform: scale(1.03);
} */
/* 箭头hover位移 */
.advantage-card:hover .card-arrow {
transform: translateX(0.03rem);
}

View File

@@ -1,6 +1,6 @@
.prodline-footer-box{
width: 100%;
padding: 3rem 0;
/* padding: 3rem 0; */
}
.prodline-footer-box-img {
width: 93.5%;

View File

@@ -5,16 +5,16 @@
}
/* 1. 根字体适配限制最小根字体为14px从源头避免文字过小 */
html {
/* PC端≥1024px1rem=16px原尺寸 */
/* html {
font-size: 16px;
}
} */
/* 平板端768px~1023px15px→16px过渡最小15px */
@media (max-width: 1024px) and (min-width: 768px) {
html {
/* html {
font-size: calc(15px + (16 - 15) * (100vw - 768px) / (1023 - 768));
}
} */
html body {
margin: 0 !important;
padding: 0 !important;
@@ -25,10 +25,10 @@ html {
/* 移动端320px~767px固定14px不随屏幕缩小而变小避免文字<12px */
@media (max-width: 767px) {
html {
/* html {
font-size: 14px;
}
} */
html body {
margin: 0 !important;
padding: 0 !important;
@@ -39,9 +39,9 @@ html {
/* 超小屏≤320px仍固定14px彻底杜绝文字过小 */
@media (max-width: 320px) {
html {
/* html {
font-size: 14px;
}
} */
html body {
margin: 0 !important;
padding: 0 !important;
@@ -57,38 +57,24 @@ a {
text-decoration: none;
display: block;
}
.more {
width: 93.5%;
margin: 0 auto;
display: flex;
justify-content: center;
padding-top: clamp(1.5rem, 3vw, 3rem);
}
.more-img {
background: #000;
color: #fff;
font-size: clamp(0.6rem, 0.9vw, 0.9rem);
border-radius: clamp(0.875rem, 1.5vw, 1.125rem);
padding: clamp(0.1rem, 0.3vw, 0.2rem);
width: 5rem;
display: flex;
justify-content: center;
}
.line {
width: 100%;
height: clamp(1.5rem, 3vw, 3rem);
}
.header {
width: 100%;
background: #fff;
height: 60px;
display: flex;
align-items: center;
}
.header-img {
margin: 0 auto;
width: 90%;
display: flex;
align-items: center;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
/* 强制设置根元素font-size优先级最高!important确保覆盖所有冲突 */
html {
font-size: inherit !important; /* 继承内联样式的50px而非浏览器默认值 */
-webkit-text-size-adjust: none !important; /* 禁止iOS自动调整字体大小 */
}

View File

@@ -0,0 +1,27 @@
.more {
width: 93.5%;
margin: 0 auto;
display: flex;
justify-content: center;
padding-top: 0.33rem;
}
.more:nth-child(5) {
padding-top: 0.33rem;
padding-bottom: 0.79rem;
}
.more-img {
background: #000;
color: #fff;
font-size: 0.21rem;
width: 1.54rem;
height: 0.5rem;
display: flex;
justify-content: center;
align-items: center;
border-radius: 0.5rem;
}
.line {
width: 100%;
height:0.14rem;
}

View File

@@ -2,98 +2,67 @@
display: flex;
justify-content: space-around;
width: 93.5%;
/* 平板/PC端限制最大宽度 */
margin: 0 auto;
background-color: #fff;
border-radius: 3.125rem;
/* 50px→3.125rem */
box-shadow: 0 0.125rem 0.9375rem rgba(0, 0, 0, 0.05);
/* 2px→0.125rem15px→0.9375rem */
position: relative;
z-index: 1;
/* padding: 0.625rem 0; */
/* 10px→0.625rem(原内边距不变) */
overflow: visible;
padding: 0 clamp(21px, 5.6vw, 42px);
/* 新增:确保容器能捕获子元素高度 */
min-height: fit-content;
/* 平板端补偿内边距,抵消负边距影响 */
/* padding-top: clamp(1rem, 3vw, 2rem);*/
padding-bottom: clamp(0.5rem, 2vw, 1.5rem);
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.625rem;
/* 10px→0.625rem */
cursor: pointer;
/* 10px→0.625rem20px→1.25rem */
position: relative;
z-index: 2;
flex: 1;
min-width: 3rem;
/* 48px→3rem适配14px根字体 */
max-width: 5rem;
/* 80px→5rem */
text-align: center;
padding: 0 c;
/* 修改:用相对单位+媒体查询区分设备,避免过度上移 */
margin-top: clamp(-8%, -2vw, -15%);
/* 新增:确保子元素高度被正确计算 */
align-self: flex-start;
}
.nav-item img {
width: 100%;
/* clamp(4rem, 5.6vw, 8rem) 4rem; */
/* height: 4rem; */
max-width: 98px;
/* 60px→3.75rem16px基准14px根字体下≈52.5px,仍清晰 */
object-fit: contain;
border-radius: 0.75rem;
/* 12px→0.75rem */
position: absolute;
top: -3.125rem;
/* -50px→-3.125rem14px根字体下≈43.75px,超出效果不变) */
transform: translateY(0.625rem);
/* 10px→0.625rem */
transition: transform 0.3s ease, box-shadow 0.3s ease;
/* 平板端单独调整负边距 */
@media (max-width: 1023px) and (min-width: 767px) {
.nav-item {
margin-top: -8%; /* 减小负边距,避免溢出 */
}
.nav-item:hover img {
transform: translateY(0.3125rem);
/* 5px→0.3125rem */
}
.nav-item:active img {
transform: translateY(0.4375rem);
/* 7px→0.4375rem */
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}
/* 关键文字单独控制确保最小12px */
.nav-item p {
margin: 0;
/* PC端15px→0.9375rem16px根字体 */
font-size: clamp(12px, 3vw, 1.3125rem);
color: #1E1E1E;
font-weight: 500;
/* 18px→1.125rem */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-top:6vw;
padding-bottom:1.4vw;
/* padding: clamp(1.5rem, 6vw, 3.86rem) 0 clamp(0.7rem, 2.67vw, 1.43rem); */
padding-top:clamp(6px,2vw,12px);
font-size: clamp(11px, 3vw, 21px);
}
/* 平板端文字14px→0.9375rem15px根字体下=14px */
@media (max-width: 1023px) and (min-width: 768px) {
.nav-item p {
font-size: clamp(12px, 3vw, 1.3125rem);
}
@media (min-width: 1024px) {
.nav-item {
margin-top: -5%; /* 减小负边距,避免溢出 */
}
.nav-item p {
padding-top:clamp(6px,2vw,12px);
font-size: clamp(11px, 3vw, 21px);
}
/* 移动端文字强制12px用px兜底避免rem计算后过小 */
@media (max-width: 767px) {
}
@media (max-width: 76px) and (min-width: 374px) {
.nav-item {
margin-top: -15%; /* 减小负边距,避免溢出 */
}
.nav-item p {
font-size: 12px;
/* 直接用px固定最小尺寸优先级最高 */
font-size: clamp(12px, 0.857rem, 0.9375rem);
/* 增强版最小12px默认0.857rem14px根字体下≈12px最大0.9375rem */
padding-top:clamp(6px,2vw,12px);
font-size: clamp(11px, 3vw, 21px);
}
}

View File

@@ -0,0 +1,43 @@
/* 设计稿750px → 1rem=100px所有尺寸按设计稿÷100换算 */
.nav-box {
display: flex;
justify-content: space-around;
width: 93.5%;
margin: 0 auto;
background-color: #fff;
border-radius: 3.125rem; /* 设计稿312.5px */
box-shadow: 0 0.125rem 0.9375rem rgba(0, 0, 0, 0.05); /* 设计稿12.5px/93.75px */
position: relative;
z-index: 1;
overflow: visible;
padding: 0 0.42rem; /* 设计稿42px左右内边距取中间值 */
/* min-height: fit-content; */
/* height:0.86rem; */
box-sizing: border-box;
padding-bottom: 0.2rem;
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
flex: 1;
margin-top: -0.5rem;
text-align: center;
align-self: flex-start;
}
.nav-item img {
width: 0.94rem; /* 设计稿80px示例图片尺寸可按实际调整 */
height: 0.94rem;
margin-bottom: 0.15rem; /* 设计稿10px图片与文字间距 */
}
.nav-item p {
font-size: 0.22rem; /* 设计稿16px文字大小 */
margin: 0;
}

View File

@@ -1,6 +1,6 @@
.product-box {
background: #fff;
padding: clamp(1.5rem, 3vw, 3rem) 0;
padding-top: clamp(3.2rem, 3vw, 5rem);
/* 产品块之间留间距 */
}
@@ -11,7 +11,7 @@
}
.product-title-h2 {
font-size: clamp(1.5rem, 3vw, 2.25rem);
font-size: clamp(24px, 3vw, 2.25rem);
/* padding-top: clamp(1.5rem, 3vw, 3rem); */
}
@@ -225,9 +225,9 @@
max-width: clamp(135px, 20vw, 270px) !important;
}
.img3 {
width: clamp(129px, 20vw, 258px);
width: clamp(142px, 20vw, 284px);
/* 或者保持原有width:100%只设置max-width */
max-width: clamp(129px, 20vw, 258px) !important;
max-width: clamp(142px, 20vw, 284px) !important;
}
.img4 {
width: clamp(125px, 20vw,250px);
@@ -261,9 +261,9 @@
max-width:270px;
}
.img3 {
width:258px;
width:284px;
/* 或者保持原有width:100%只设置max-width */
max-width: 258px;
max-width: 284px;
}
.img4 {
width:250px;

View File

@@ -0,0 +1,149 @@
/* 设计稿750px → 1rem=100px所有尺寸按设计稿÷100换算 */
.product-box {
background: #fff;
padding-top: 0.93rem;
}
.product-title {
width: 93.5%;
margin: 0 auto;
padding-bottom: 0.83rem;
}
.product-title-h2 {
font-size: 0.46rem;
}
.product-title-p {
font-size: 0.24rem;
color: #646464;
margin-top: 0.21rem;
}
/* 容器布局:改为上下结构(右侧在上,左侧在下) */
.product-container {
display: flex;
flex-direction: column-reverse;
gap: 0.1rem; /* 上下间距 */
margin: 0 auto;
width: 93.5%;
align-items: stretch; /* 宽度铺满 */
}
/* 右侧容器:移到上方 */
.product-right {
flex: none; /* 取消flex比例自适应高度 */
position: relative;
border-radius: 0.1rem;
overflow: hidden;
width: 100%;
background-color: #f5f5f5;
min-height: 1.94rem;
aspect-ratio: 16/9;
}
/* 左侧容器:移到下方 */
.product-left {
flex: none; /* 取消flex比例自适应高度 */
position: relative;
width: 100%;
}
.product-img {
width: 100%;
height: auto;
border-radius: 0.1rem;
display: block;
}
/* 第二个产品:悬浮图位置调整(适配下方布局) */
.product-img-2 {
top: auto; /* 取消顶部定位 */
bottom: -0.8rem; /* 底部超出 */
transform: none;
width: 1.08rem;
position: absolute;
right: 0;
}
.right-content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity 0.3s ease;
}
.right-video {
display: none;
}
.video-play-btn {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: none;
border: none;
cursor: pointer;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 2;
display: none;
}
.play-icon {
display: inline-block;
}
.pause-icon {
display: none;
}
.video-play-btn.paused .play-icon {
display: none;
}
.video-play-btn.paused .pause-icon {
display: inline-block;
}
.right-video[playing] ~ .video-play-btn,
.product-right:hover .video-play-btn {
opacity: 1;
display: block;
}
/* 悬浮图容器:适配下方布局 */
.product-img-hover {
width: auto;
position: absolute;
right: 0;
bottom: 0;
z-index: 33;
}
.right {
right: -0.3rem;
}
/* 图片尺寸统一用rem */
.img1, .img2, .img3, .img4, .img5 {
width: 3.56rem;
max-width: 3.56rem;
}
.img1 {
max-width: 2.76rem;
}
.img2 {
max-width: 2.7rem;
}
.img3 {
max-width: 2.84rem;
}
.img4 {
max-width: 2.5rem;
}
.img5 {
max-width: 2.68rem;
}

View File

@@ -51,7 +51,7 @@
/* 标题:超出一行显示省略号(左对齐) */
.product-card-title2 {
font-size: clamp(12px, 2vw, 18px);
font-size: clamp(16px, 2vw, 19px);
font-weight: 600;
color: #333;
margin-bottom: 5px;

View File

@@ -11,7 +11,7 @@
display: flex;
flex-wrap: nowrap;
overflow: visible !important; /* 改为visible显示所有内容 */
padding: 0 clamp(0.2rem, 0.6vw, 0.3rem);
/* padding: 0 clamp(0.2rem, 0.6vw, 0.3rem); */
height: auto !important; /* 高度自适应内容 */
}
@@ -31,7 +31,7 @@
flex-wrap: wrap !important; /* 强制开启换行 */
justify-content: flex-start !important; /* 左对齐 */
gap: clamp(0.5rem, 1vw, 1rem) !important; /* 设置间距 */
padding: 0 clamp(0.2rem, 0.6vw, 0.3rem) clamp(1rem, 2vw, 1.5rem) !important;
height: auto !important; /* 高度自适应内容 */
}
@@ -100,21 +100,21 @@
/* 标题样式:移动端+平板特有,高度自适应 */
.product-card-title {
font-size: clamp(15px, 1.5vw, 30px);
font-size: clamp(15px, 2vw, 30px);
font-weight: 600;
color: #333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
height: auto !important; /* 移除固定高度 */
margin-bottom: clamp(0.2rem, 0.4vw, 0.3rem); /* 添加间距 */
margin-bottom: clamp(10px, 2vw, 20px); /* 添加间距 */
line-height: 1.2;
text-align: center;
}
/* 描述样式:移动端+平板高度自适应 */
.product-card-desc {
font-size: clamp(11px, 1.5vw,21px);
font-size: clamp(12px, 1.5vw,21px);
color: #656565;
word-break: break-word;
height: auto !important; /* 移除固定高度 */
@@ -128,16 +128,15 @@
/* 链接图标容器:移动端+平板高度自适应,添加较小的底部内边距 */
.product-card-link {
width: 100%;
display: flex;
align-items: center;
justify-content: center; /* 水平居中 */
flex: 0 0 auto;
padding: clamp(0.5rem, 1vw, 0.8rem);
padding-bottom: clamp(1rem, 3vw, 1.5rem);
padding-left: clamp(0.8rem, 2vw, 1.5rem);
/* padding: clamp(0.5rem, 1vw, 0.8rem); */
padding-top: clamp(1.25rem, 3vw, 2.5rem);
padding-bottom: clamp(1.45rem, 3vw,2.9rem);
/* padding-left: clamp(0.8rem, 2vw, 1.5rem); */
height: auto !important;
text-align: center; /* 针对inline元素的居中 */
@@ -156,26 +155,26 @@
.product-card-img {
aspect-ratio: 3 / 2.8; /* 保持图片比例 */
}
.product-card-link img {
width: clamp(5rem, 4vw, 6rem);
}
/* 平板端字体稍大 */
.product-card-title {
font-size: clamp(15px, 1.5vw, 30px);
font-size: 30px;
text-align: center;
}
.product-card-desc {
font-size: clamp(11px, 1.5vw,21px);
font-size: 21px;
text-align: center;
}
/* 平板端底部内边距稍大但仍较小 */
.product-card-link {
min-width: 90px;
padding-bottom: clamp(1rem, 3vw, 1.5rem);
width: 100%;
padding-top: clamp(2.3rem, 4vw, 3.2rem);
padding-bottom: clamp(2.7rem, 5vw,3.9rem);
}
.product-card-link img {
width: 100%;
max-width: 154px;
}
}
}
@@ -283,7 +282,7 @@
display: flex; /* 确保flex布局 */
align-items: center;
flex: 0 0 auto; /* 改为auto高度自适应 */
padding-left: clamp(0.8rem, 2vw, 1.5rem);
/* padding-left: clamp(0.8rem, 2vw, 1.5rem); */
padding-bottom: clamp(1rem, 3vw, 1.5rem) ; /* 更小的底部内边距 */
height: auto !important; /* 高度自适应 */
}

View File

@@ -0,0 +1,124 @@
/* 设计稿750px → 1rem=100px所有尺寸按设计稿÷100换算 */
/* 容器布局:通用基础样式 */
.product-card-box {
width: 93.5%;
margin: 0.12rem auto 0;
padding: 0;
}
.product-card-container {
width: 100%;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
overflow: visible !important;
height: auto !important;
gap: 0.12rem; /* 间距调整为0.12rem */
justify-content: space-between; /* 两端对齐,确保铺满 */
align-items: flex-start;
}
/* 卡片包裹容器强制一行2个并铺满 */
.product-card-wrap {
display: block !important;
width: calc(50% - 0.06rem) !important; /* 50%宽度 - 间距的一半0.12rem/2=0.06rem */
height: auto !important;
margin: 0 !important; /* 移除额外margin */
}
/* 卡片核心:通用样式 */
.product-card {
background: rgb(242, 243, 245);
cursor: pointer;
width: 100% !important;
flex: none;
box-shadow: 0 0.1125rem 0.4rem rgba(0, 0, 0, 0.05);
margin: 0 !important;
box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.08); /* 包裹容器阴影 */
display: flex;
flex-direction: column;
height: auto !important;
transition: transform 0.3s ease;
border-radius: 0.07rem;
}
/* 卡片hover效果通用 */
.product-card:hover {
transform: scale(1.02);
}
/* 图片容器:通用样式 */
.product-card-img {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
flex: 0 0 auto;
aspect-ratio: 3 / 2.8;
overflow: hidden;
}
/* 产品图片:通用样式 */
.product-card img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
}
/* 文字容器:通用样式(居中对齐) */
.product-card-text {
flex: 1 1 auto;
display: flex;
flex-direction: column;
justify-content: center;
height: auto !important;
align-items: center;
text-align: center;
}
/* 标题样式:通用 */
.product-card-title {
font-size: 0.3rem;
font-weight: 600;
color: #333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
height: auto !important;
margin-bottom: 0.21rem;
}
/* 描述样式通用2行截断 */
.product-card-desc {
font-size: 0.24rem;
color: #656565;
word-break: break-word;
height: auto !important;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
line-height: 1.4;
}
/* 链接图标容器:通用样式(居中) */
.product-card-link {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
padding: 0.35rem 0 0.4rem;
height: auto !important;
text-align: center;
}
/* 链接图标:通用样式 */
.product-card-link img {
width: 1.54rem;
height: auto;
object-fit: contain;
}

View File

@@ -0,0 +1,75 @@
.swiper-container {
padding: 0 !important;
}
/* 轮播容器 - 核心:基于视口高度自适应 */
.auto-swiper-container {
width: 100%;
/* 关键:高度 = 视口高度的百分比可调整如60vh=屏幕高度60% */
margin-bottom:1.5rem;
/* max-height: 900px; */
min-height: 300px;
position: relative;
margin-top:60px;
}
/* 轮播项 - 填充容器高度 */
.auto-swiper-slide {
width: 100%;
/*height: 100%;*/
display: flex;
align-items: center;
justify-content: center;
}
/* 图片自适应核心:填充屏幕比例高度,保持比例 */
.auto-swiper-slide img {
width: 100%;
height: 100%;
object-fit: contain; /* 替换 cover 为 contain完整显示图片 */
display: block;
}
/* 轮播容器保持相对定位 */
.auto-swiper-container {
position: relative;
width: 100%;
}
/* 轮播容器保持相对定位 */
.auto-swiper-container {
position: relative;
width: 100%;
}
/* 指示标容器:居中排列 */
.swiper-pagination {
position: absolute;
bottom: 10%; /* 距离底部的距离,可调整 */
left: 50%;
transform: translateX(-50%);
/* width:100%;
display: flex; */
/* justify-content: center; */
z-index: 10;
}
/* 激活状态:白色长条 */
.swiper-pagination-bullet-active {
background:#fff !important;
}
/* 未激活状态:黑色透明圆点(可调整透明度) */
.swiper-pagination-bullet {
display: inline-block;
width: 16px !important;
height: 16px !important;
border-radius: 8px;
/*background: #555;*/
margin: 0 5px;
/*opacity: 0.8;*/
border: 1px solid #fff;
/*cursor: pointer;*/
}

BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Black.ttf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Bold.ttf (Stored with Git LFS) Normal file

Binary file not shown.

BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Light.ttf (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Thin.ttf (Stored with Git LFS) Normal file

Binary file not shown.