Compare commits
2 Commits
e0f99450af
...
7b9e348cf6
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b9e348cf6 | |||
| 1cb612bdf8 |
@@ -1,14 +1,35 @@
|
|||||||
{extend name="public/base" /}
|
{extend name="public/base" /}
|
||||||
{block name="style"}
|
{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=100px,375px/7.5=50px
|
||||||
|
// 直接修改内联样式,优先级最高
|
||||||
|
docEl.setAttribute('style', 'font-size: ' + fontSize + 'px !important;');
|
||||||
|
}
|
||||||
|
|
||||||
|
setRootFontSize();
|
||||||
|
win.addEventListener(resizeEvt, setRootFontSize);
|
||||||
|
doc.addEventListener('DOMContentLoaded', setRootFontSize);
|
||||||
|
})(document, window);
|
||||||
|
</script>
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/index.css">
|
<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/swiper.css">
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/nav.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/advantage.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/mask.css">
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product.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/product_list.css">
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_card.css">
|
<link rel="stylesheet" href="__CSS__/topic_power_prodline/product_card.css">
|
||||||
<link rel="stylesheet" href="__CSS__/topic_power_prodline/footer.css">
|
<link rel="stylesheet" href="__CSS__/topic_power_prodline/footer.css">
|
||||||
|
|
||||||
{/block}
|
{/block}
|
||||||
{block name="header"}
|
{block name="header"}
|
||||||
<!-- 重置header头为空 -->
|
<!-- 重置header头为空 -->
|
||||||
@@ -237,7 +258,7 @@
|
|||||||
<a class="product-left" href="{$dc_first_section_lf.link}">
|
<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">
|
<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">
|
<img src="{$dc_first_section_lf.extra_image}" alt="{$dc_first_section_lf.short_title}" class="img3">
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
@@ -274,28 +295,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{assign name="dc_second_section" value=":array_splice($data.desktop_charger, 0, 2)" /}
|
{assign name="dc_second_section" value=":array_splice($data.desktop_charger, 0, 2)" /}
|
||||||
{notempty name="dc_second_section"}
|
{notempty name="dc_second_section"}
|
||||||
<!-- <div class="product-card-box">
|
|
||||||
<div class="product-card-container">
|
|
||||||
{volist name="dc_second_section" id="dcs"}
|
|
||||||
<a class="product-card" href="{$dcs.link}">
|
|
||||||
<div class="product-text">
|
|
||||||
<div class="product-text-content">
|
|
||||||
<div class="product-card-title">{$dcs.title}</div>
|
|
||||||
<div class="product-card-desc">{$dcs.short_title}</div>
|
|
||||||
<div class="product-card-link">
|
|
||||||
<img src="__IMAGES__/ljgd.png" alt="了解更多">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="product-card-img">
|
|
||||||
<img src="{$dcs.image}" alt="{$dcs.title}">
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
{/volist}
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
|
|
||||||
<div class="product-card-box">
|
<div class="product-card-box">
|
||||||
<div class="product-card-container">
|
<div class="product-card-container">
|
||||||
{volist name="dc_second_section" id="dcs"}
|
{volist name="dc_second_section" id="dcs"}
|
||||||
@@ -465,6 +464,27 @@
|
|||||||
{/block}
|
{/block}
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
<script type="text/javascript">
|
<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=100px,375px设备自动变为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;
|
let swiper=null;
|
||||||
const advantageItems = document.querySelectorAll('.advantage-card');
|
const advantageItems = document.querySelectorAll('.advantage-card');
|
||||||
let scrollTop = 0; // 保存页面滚动位置
|
let scrollTop = 0; // 保存页面滚动位置
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
.iotbt1 {
|
.iotbt1 {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
.iotbtp1 {
|
.iotbtp1 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-bottom: 11px;
|
padding-bottom: 11px;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
.iotbts1 {
|
.iotbts1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
.sfbt1 {
|
.sfbt1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
padding-top: 24px;
|
padding-top: 24px;
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
.cit {
|
.cit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
color: #000;
|
color: #000;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -237,7 +237,7 @@
|
|||||||
.wcu_s1 {
|
.wcu_s1 {
|
||||||
color: #000;
|
color: #000;
|
||||||
font: 16px;
|
font: 16px;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 20px 24px;
|
padding: 20px 24px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -598,7 +598,7 @@
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #707070;
|
color: #707070;
|
||||||
font-family: "Metropolis-Medium";
|
font-family: "HarmonyOS-Medium";
|
||||||
}
|
}
|
||||||
|
|
||||||
.oricoCnLc .gallery-thumbs .swiper-slide-thumb-active {
|
.oricoCnLc .gallery-thumbs .swiper-slide-thumb-active {
|
||||||
@@ -632,14 +632,14 @@
|
|||||||
.oricoCnLc .info h5 {
|
.oricoCnLc .info h5 {
|
||||||
font-size: #000;
|
font-size: #000;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
padding: 2rem 2rem 0 1rem;
|
padding: 2rem 2rem 0 1rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.oricoCnLc .info p {
|
.oricoCnLc .info p {
|
||||||
color: #707070;
|
color: #707070;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -651,7 +651,7 @@
|
|||||||
|
|
||||||
.oricoCnLc .m_ach-b .title {
|
.oricoCnLc .m_ach-b .title {
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -660,7 +660,7 @@
|
|||||||
|
|
||||||
.oricoCnLc .m_ach-b .chtitle {
|
.oricoCnLc .m_ach-b .chtitle {
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -677,7 +677,7 @@
|
|||||||
|
|
||||||
.oricoCnLc .m_ch-title {
|
.oricoCnLc .m_ch-title {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: 1rem auto 0;
|
margin: 1rem auto 0;
|
||||||
padding: 1rem 0 0;
|
padding: 1rem 0 0;
|
||||||
@@ -690,7 +690,7 @@
|
|||||||
font-size: 0.875;
|
font-size: 0.875;
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
color: #707070;
|
color: #707070;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: 1rem auto;
|
margin: 1rem auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
@@ -156,7 +156,7 @@
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
.oricoEGapp-articledetail .content .share_box .comment .comment_form>div input {
|
.oricoEGapp-articledetail .content .share_box .comment .comment_form>div input {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #6b6c6e;
|
color: #6b6c6e;
|
||||||
font-family: "Metropolis-Medium";
|
font-family: "HarmonyOS-Medium";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #004bfa;
|
color: #004bfa;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
color: #707070;
|
color: #707070;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
.itlable {
|
.itlable {
|
||||||
font-size: 12.5px;
|
font-size: 12.5px;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
height: 48px;
|
height: 48px;
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itselectopen {
|
.itselectopen {
|
||||||
@@ -130,12 +130,12 @@
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
background: #f2f2f2;
|
background: #f2f2f2;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bttj {
|
.bttj {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
/* width: 212px; */
|
/* width: 212px; */
|
||||||
/* height: 48px; */
|
/* height: 48px; */
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
|
|
||||||
.iotbt1 {
|
.iotbt1 {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
@@ -210,7 +210,7 @@
|
|||||||
|
|
||||||
.iotbtp1 {
|
.iotbtp1 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-bottom: 11px;
|
padding-bottom: 11px;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
@@ -219,7 +219,7 @@
|
|||||||
.iotbts1 {
|
.iotbts1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
@@ -302,7 +302,7 @@
|
|||||||
.sfbt1 {
|
.sfbt1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
padding-top: 24px;
|
padding-top: 24px;
|
||||||
@@ -333,7 +333,7 @@
|
|||||||
.cit {
|
.cit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
color: #000;
|
color: #000;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -388,7 +388,7 @@
|
|||||||
.wcu_s1 {
|
.wcu_s1 {
|
||||||
color: #000;
|
color: #000;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 20px 24px;
|
padding: 20px 24px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #004bfa;
|
color: #004bfa;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
color: #707070;
|
color: #707070;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
.itlable {
|
.itlable {
|
||||||
font-size: 12.5px;
|
font-size: 12.5px;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
height: 48px;
|
height: 48px;
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itselectopen {
|
.itselectopen {
|
||||||
@@ -130,13 +130,13 @@
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
background: #f2f2f2;
|
background: #f2f2f2;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bttj {
|
.bttj {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
/* width: 212px; */
|
/* width: 212px; */
|
||||||
padding: 15px 60px;
|
padding: 15px 60px;
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
|
|
||||||
.iotbt1 {
|
.iotbt1 {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
padding-top: 40px;
|
padding-top: 40px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
@@ -210,7 +210,7 @@
|
|||||||
|
|
||||||
.iotbtp1 {
|
.iotbtp1 {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-bottom: 11px;
|
padding-bottom: 11px;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
@@ -219,7 +219,7 @@
|
|||||||
.iotbts1 {
|
.iotbts1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
@@ -302,7 +302,7 @@
|
|||||||
.sfbt1 {
|
.sfbt1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-family: Metropolis-Bold, Metropolis;
|
font-family: HarmonyOS-Bold, HarmonyOS;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
padding-top: 24px;
|
padding-top: 24px;
|
||||||
@@ -333,7 +333,7 @@
|
|||||||
.cit {
|
.cit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
color: #000;
|
color: #000;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -387,7 +387,7 @@
|
|||||||
.wcu_s1 {
|
.wcu_s1 {
|
||||||
color: #000;
|
color: #000;
|
||||||
font: 16px;
|
font: 16px;
|
||||||
font-family: Metropolis-Medium, Metropolis;
|
font-family: HarmonyOS-Medium, HarmonyOS;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 20px 24px;
|
padding: 20px 24px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
margin-top: 3.3rem;
|
margin-top: 3.3rem;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .banner_title {
|
.oricoEGapp-Contact .banner_title {
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .title {
|
.oricoEGapp-Contact .title {
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .info {
|
.oricoEGapp-Contact .info {
|
||||||
@@ -43,12 +43,12 @@
|
|||||||
height: 3rem;
|
height: 3rem;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .info .right .des {
|
.oricoEGapp-Contact .info .right .des {
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .info_title {
|
.oricoEGapp-Contact .info_title {
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
margin-bottom: 0.22rem;
|
margin-bottom: 0.22rem;
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
}
|
}
|
||||||
.oricoEGapp-Contact .question .title {
|
.oricoEGapp-Contact .question .title {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
}
|
}
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
.oricoEGapp-Contact .send {
|
.oricoEGapp-Contact .send {
|
||||||
display: block;
|
display: block;
|
||||||
background-color: #004bfa;
|
background-color: #004bfa;
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
padding: 0.75rem 1.5rem;
|
padding: 0.75rem 1.5rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
color: #ee2f53;
|
color: #ee2f53;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .contact_b {
|
.oricoEGapp-Contact .contact_b {
|
||||||
font-family: "Metropolis-SemiBold";
|
font-family: "HarmonyOS-SemiBold";
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
padding-top: 1.125rem;
|
padding-top: 1.125rem;
|
||||||
padding-bottom: 1.125rem;
|
padding-bottom: 1.125rem;
|
||||||
@@ -119,42 +119,42 @@
|
|||||||
.oricoEGapp-Contact input::-webkit-input-placeholder {
|
.oricoEGapp-Contact input::-webkit-input-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact input:-moz-placeholder {
|
.oricoEGapp-Contact input:-moz-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact input::-moz-placeholder {
|
.oricoEGapp-Contact input::-moz-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact input:-ms-input-placeholder {
|
.oricoEGapp-Contact input:-ms-input-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact textarea::-webkit-input-placeholder {
|
.oricoEGapp-Contact textarea::-webkit-input-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact textarea:-moz-placeholder {
|
.oricoEGapp-Contact textarea:-moz-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact textarea::-moz-placeholder {
|
.oricoEGapp-Contact textarea::-moz-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact textarea:-ms-input-placeholder {
|
.oricoEGapp-Contact textarea:-ms-input-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .narskfPage {
|
.oricoEGapp-Contact .narskfPage {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
margin-top: 3.3rem;
|
margin-top: 3.3rem;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .banner_title {
|
.oricoEGapp-Contact .banner_title {
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .title {
|
.oricoEGapp-Contact .title {
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .info {
|
.oricoEGapp-Contact .info {
|
||||||
@@ -46,12 +46,12 @@
|
|||||||
width: 88% !important;
|
width: 88% !important;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .info .right .des {
|
.oricoEGapp-Contact .info .right .des {
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .info_title {
|
.oricoEGapp-Contact .info_title {
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
margin-bottom: 0.22rem;
|
margin-bottom: 0.22rem;
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
.oricoEGapp-Contact .question .title {
|
.oricoEGapp-Contact .question .title {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
}
|
}
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
.oricoEGapp-Contact .send {
|
.oricoEGapp-Contact .send {
|
||||||
display: block;
|
display: block;
|
||||||
background-color: #004bfa;
|
background-color: #004bfa;
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
padding: 0.75rem 1.5rem;
|
padding: 0.75rem 1.5rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
color: #ee2f53;
|
color: #ee2f53;
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact .contact_b {
|
.oricoEGapp-Contact .contact_b {
|
||||||
font-family: "Metropolis-SemiBold";
|
font-family: "HarmonyOS-SemiBold";
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
padding-top: 1.125rem;
|
padding-top: 1.125rem;
|
||||||
padding-bottom: 1.125rem;
|
padding-bottom: 1.125rem;
|
||||||
@@ -122,40 +122,40 @@
|
|||||||
.oricoEGapp-Contact input::-webkit-input-placeholder {
|
.oricoEGapp-Contact input::-webkit-input-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact input:-moz-placeholder {
|
.oricoEGapp-Contact input:-moz-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact input::-moz-placeholder {
|
.oricoEGapp-Contact input::-moz-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact input:-ms-input-placeholder {
|
.oricoEGapp-Contact input:-ms-input-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact textarea::-webkit-input-placeholder {
|
.oricoEGapp-Contact textarea::-webkit-input-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact textarea:-moz-placeholder {
|
.oricoEGapp-Contact textarea:-moz-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact textarea::-moz-placeholder {
|
.oricoEGapp-Contact textarea::-moz-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
.oricoEGapp-Contact textarea:-ms-input-placeholder {
|
.oricoEGapp-Contact textarea:-ms-input-placeholder {
|
||||||
color: #9e9e9f;
|
color: #9e9e9f;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: "Metropolis-Regular";
|
font-family: "HarmonyOS-Regular";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.oircoEgapp-head .top-menu .it-ct {
|
.oircoEgapp-head .top-menu .it-ct {
|
||||||
font-family: "Metropolis-SemiBold";
|
font-family: "HarmonyOS-SemiBold";
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.oircoEgapp-head .top-menu .it-ct .it-1 {
|
.oircoEgapp-head .top-menu .it-ct .it-1 {
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Metropolis";
|
font-family: "HarmonyOS";
|
||||||
src: url("../fonts/Metropolis-Regular.otf") format("opentype");
|
src: url("../fonts/HarmonyOS-Regular.otf") format("opentype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
src: url("../fonts/Metropolis-Bold.otf") format("opentype");
|
src: url("../fonts/HarmonyOS-Bold.otf") format("opentype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Metropolis-Medium";
|
font-family: "HarmonyOS-Medium";
|
||||||
src: url("../fonts/Metropolis-Medium.otf") format("opentype");
|
src: url("../fonts/HarmonyOS-Medium.otf") format("opentype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
/* font-family: 'Metropolis'; */
|
/* font-family: 'HarmonyOS'; */
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
/* IE 和 Edge */
|
/* IE 和 Edge */
|
||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
@@ -88,7 +88,7 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Metropolis-SemiBold';
|
font-family: 'HarmonyOS-SemiBold';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 分页样式 */
|
/* 分页样式 */
|
||||||
|
|||||||
@@ -1,29 +1,30 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Metropolis";
|
font-family: "HarmonyOS";
|
||||||
src: url("../fonts/Metropolis-Regular.otf") format("opentype");
|
src: url("../fonts/HarmonyOS_Sans_SC_Regular.ttf") format("truetype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Metropolis-Bold";
|
font-family: "HarmonyOS-Bold";
|
||||||
src: url("../fonts/Metropolis-Bold.otf") format("opentype");
|
src: url("../fonts/HarmonyOS_Sans_SC_Bold.ttf") format("truetype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Metropolis-Medium";
|
font-family: "HarmonyOS-Medium";
|
||||||
src: url("../fonts/Metropolis-Medium.otf") format("opentype");
|
src: url("../fonts/HarmonyOS_Sans_SC_Medium.ttf") format("truetype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
/* HarmonyOS-SemiBold1 */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Metropolis-SemiBold";
|
font-family: "HarmonyOS-SemiBold";
|
||||||
src: url("../fonts/Metropolis-SemiBold.otf") format("opentype");
|
src: url("../fonts/HarmonyOS_Sans_SC_Bold.ttf") format("truetype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
body {
|
body {
|
||||||
font-family: 'Metropolis-SemiBold';
|
font-family: 'HarmonyOS-SemiBold';
|
||||||
margin: auto;
|
margin: auto;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
max-width: 750px;
|
max-width: 750px;
|
||||||
@@ -591,7 +592,7 @@ button.swiper-pagination-bullet {
|
|||||||
.Innew-text .title {
|
.Innew-text .title {
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
}
|
}
|
||||||
.Inpro-text {
|
.Inpro-text {
|
||||||
padding: 2rem 0 0.8rem;
|
padding: 2rem 0 0.8rem;
|
||||||
@@ -600,7 +601,7 @@ button.swiper-pagination-bullet {
|
|||||||
.Inpro-text .title {
|
.Inpro-text .title {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
}
|
}
|
||||||
|
|
||||||
.Innew-text .more {
|
.Innew-text .more {
|
||||||
@@ -635,7 +636,7 @@ video img {
|
|||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
max-height: 3rem;
|
max-height: 3rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
}
|
}
|
||||||
.inprotext .t-f16 {
|
.inprotext .t-f16 {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
@@ -957,12 +958,12 @@ video img {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
line-height: 2rem;
|
line-height: 2rem;
|
||||||
padding: 0 3rem;
|
padding: 0 3rem;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
}
|
}
|
||||||
.ban-t {
|
.ban-t {
|
||||||
padding: 0.5rem 3rem;
|
padding: 0.5rem 3rem;
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-family: 'Metropolis-Regular';
|
font-family: 'HarmonyOS-Regular';
|
||||||
}
|
}
|
||||||
.btn-more {
|
.btn-more {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -979,7 +980,7 @@ video img {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
}
|
}
|
||||||
/*类别*/
|
/*类别*/
|
||||||
.category {
|
.category {
|
||||||
@@ -1095,11 +1096,11 @@ video img {
|
|||||||
padding: 0.2rem 0;
|
padding: 0.2rem 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
}
|
}
|
||||||
.num-bg li p {
|
.num-bg li p {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
font-family: 'Metropolis-Regular';
|
font-family: 'HarmonyOS-Regular';
|
||||||
}
|
}
|
||||||
/*标题*/
|
/*标题*/
|
||||||
.Tech-text {
|
.Tech-text {
|
||||||
@@ -1115,7 +1116,7 @@ video img {
|
|||||||
.Tech-text p {
|
.Tech-text p {
|
||||||
padding: 1rem 0;
|
padding: 1rem 0;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
}
|
}
|
||||||
|
|
||||||
.pos-text {
|
.pos-text {
|
||||||
@@ -1125,7 +1126,7 @@ video img {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 0.825rem;
|
font-size: 0.825rem;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
height: 2rem;
|
height: 2rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -1157,7 +1158,7 @@ video img {
|
|||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
padding: 1rem 0;
|
padding: 1rem 0;
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
.faq span {
|
.faq span {
|
||||||
@@ -1172,7 +1173,7 @@ video img {
|
|||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1.75em;
|
line-height: 1.75em;
|
||||||
color: #666;
|
color: #666;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
}
|
}
|
||||||
.faq i {
|
.faq i {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -1209,7 +1210,7 @@ video img {
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
@@ -1217,7 +1218,7 @@ video img {
|
|||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
color: #7f7f7f;
|
color: #7f7f7f;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
/*foot */
|
/*foot */
|
||||||
@@ -1249,7 +1250,7 @@ video img {
|
|||||||
}
|
}
|
||||||
.foot-in h3 {
|
.foot-in h3 {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
}
|
}
|
||||||
.logo-input {
|
.logo-input {
|
||||||
@@ -1292,7 +1293,7 @@ video img {
|
|||||||
.foot-cate li p {
|
.foot-cate li p {
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
line-height: 2.5rem;
|
line-height: 2.5rem;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
.foot-wei {
|
.foot-wei {
|
||||||
@@ -1327,7 +1328,7 @@ video img {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 1.2rem;
|
height: 1.2rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
}
|
}
|
||||||
/*下拉*/
|
/*下拉*/
|
||||||
.m_footer .left {
|
.m_footer .left {
|
||||||
@@ -1375,7 +1376,7 @@ video img {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding-bottom: 0.5rem;
|
padding-bottom: 0.5rem;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
}
|
}
|
||||||
/*下拉*/
|
/*下拉*/
|
||||||
.mask-up {
|
.mask-up {
|
||||||
@@ -1985,7 +1986,7 @@ video img {
|
|||||||
}
|
}
|
||||||
.swiper-slide a {
|
.swiper-slide a {
|
||||||
color: #000;
|
color: #000;
|
||||||
font-family: 'Metropolis-SemiBold';
|
font-family: 'HarmonyOS-SemiBold';
|
||||||
}
|
}
|
||||||
.swiper-slide img {
|
.swiper-slide img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
@@ -2491,7 +2492,7 @@ video img {
|
|||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-family: Metropolis !important;
|
font-family: HarmonyOS !important;
|
||||||
color: #666;
|
color: #666;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@@ -3479,26 +3480,26 @@ video img {
|
|||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin: 4rem auto 0;
|
margin: 4rem auto 0;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
}
|
}
|
||||||
.timedesin {
|
.timedesin {
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
line-height: 1.3rem;
|
line-height: 1.3rem;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
}
|
}
|
||||||
.timeblue {
|
.timeblue {
|
||||||
color: #004bfa;
|
color: #004bfa;
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
}
|
}
|
||||||
.timeblue img {
|
.timeblue img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
.timeblue a {
|
.timeblue a {
|
||||||
color: #004bfa;
|
color: #004bfa;
|
||||||
font-family: 'Metropolis-Medium';
|
font-family: 'HarmonyOS-Medium';
|
||||||
}
|
}
|
||||||
/*视频*/
|
/*视频*/
|
||||||
.video-youtu {
|
.video-youtu {
|
||||||
@@ -3558,7 +3559,7 @@ video img {
|
|||||||
}
|
}
|
||||||
.vision-title {
|
.vision-title {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: 1rem auto 0;
|
margin: 1rem auto 0;
|
||||||
}
|
}
|
||||||
@@ -3566,7 +3567,7 @@ video img {
|
|||||||
font-size: 0.875;
|
font-size: 0.875;
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
color: #707070;
|
color: #707070;
|
||||||
font-family: 'Metropolis-Regular';
|
font-family: 'HarmonyOS-Regular';
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: 1rem auto;
|
margin: 1rem auto;
|
||||||
}
|
}
|
||||||
@@ -3584,7 +3585,7 @@ video img {
|
|||||||
}
|
}
|
||||||
.brand_title {
|
.brand_title {
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: 1rem auto 0;
|
margin: 1rem auto 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -3602,7 +3603,7 @@ video img {
|
|||||||
font-size: 0.875;
|
font-size: 0.875;
|
||||||
line-height: 1.5rem;
|
line-height: 1.5rem;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
font-family: 'Metropolis-Regular';
|
font-family: 'HarmonyOS-Regular';
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: 1rem auto;
|
margin: 1rem auto;
|
||||||
}
|
}
|
||||||
@@ -3655,7 +3656,7 @@ video::-webkit-media-controls-current-time-display {
|
|||||||
}
|
}
|
||||||
.m_ach .title {
|
.m_ach .title {
|
||||||
font-size: 1.125rem;
|
font-size: 1.125rem;
|
||||||
font-family: 'Metropolis-Bold';
|
font-family: 'HarmonyOS-Bold';
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin: 1rem auto 0;
|
margin: 1rem auto 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -3680,7 +3681,7 @@ video::-webkit-media-controls-current-time-display {
|
|||||||
}
|
}
|
||||||
.m_ach .list-num li p {
|
.m_ach .list-num li p {
|
||||||
color: #707070;
|
color: #707070;
|
||||||
font-family: 'Metropolis-Regular';
|
font-family: 'HarmonyOS-Regular';
|
||||||
}
|
}
|
||||||
/*新闻评测*/
|
/*新闻评测*/
|
||||||
.news-vertu {
|
.news-vertu {
|
||||||
@@ -3976,7 +3977,7 @@ video::-webkit-media-controls-current-time-display {
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
font-family: Metropolis-Regular, Metropolis;
|
font-family: HarmonyOS-Regular, HarmonyOS;
|
||||||
}
|
}
|
||||||
.comment_area {
|
.comment_area {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
|
|||||||
@@ -2,56 +2,64 @@
|
|||||||
.advantage-section {
|
.advantage-section {
|
||||||
width: 93.5%;
|
width: 93.5%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: clamp(4rem, 5vw, 6rem) 0 clamp(1.8rem, 3vw, 3rem) 0;
|
padding-top:0.99rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
min-height: auto !important;
|
min-height: auto !important;
|
||||||
|
margin-bottom: 0.51rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 标题容器:恢复原有居中样式 */
|
/* 标题容器:恢复原有居中样式 */
|
||||||
.advantage-section__title {
|
.advantage-section__title {
|
||||||
font-size: clamp(2rem, 3vw, 2.4rem);
|
font-size: 0.46rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #333;
|
color: #101010;
|
||||||
line-height: 1.2;
|
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
|
margin-bottom: 0.51rem;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 列表容器:强制设置高度相关属性,确保内容正常显示 */
|
/* 列表容器:改为wrap换行,实现2+3布局,间距设为0.08rem(8px) */
|
||||||
.advantage-section__list {
|
.advantage-section__list {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: flex-start; /* 左对齐排列 */
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: clamp(0.1rem, 0.3vw, 0.8rem);
|
gap: 0.08rem; /* 列间距:设计稿8px=0.08rem */
|
||||||
|
row-gap: 0.08rem; /* 行间距:设计稿8px=0.08rem */
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: wrap; /* 允许换行 */
|
||||||
overflow: visible !important; /* 改为visible确保内容显示 */
|
overflow: visible !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
/* 强制设置高度相关属性 */
|
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
min-height: 1px !important; /* 确保容器至少有高度 */
|
min-height: 1px !important;
|
||||||
position: relative !important; /* 建立BFC */
|
position: relative !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 卡片包裹容器:确保为块级元素并继承高度 */
|
/* 卡片包裹容器:动态宽度控制 */
|
||||||
.advantage-card-wrap {
|
.advantage-card-wrap {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
width: 100% !important;
|
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
min-height: 1px !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 {
|
.advantage-card {
|
||||||
flex: 0 0 calc((100% - 4 * clamp(0.1rem, 0.3vw, 0.8rem)) / 5);
|
width: 100% !important;
|
||||||
min-width: calc((100% - 4 * clamp(0.1rem, 0.3vw, 0.8rem)) / 5);
|
|
||||||
max-width: calc((100% - 4 * clamp(0.1rem, 0.3vw, 0.8rem)) / 5);
|
|
||||||
border-radius: 0.5rem;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
|
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.3s ease;
|
||||||
@@ -59,253 +67,77 @@
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
height: auto !important; /* 高度自适应内容 */
|
height: auto !important;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
border-radius: 0.1rem 0.1rem 0 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 图片容器:设置为1:1比例 */
|
/* 图片容器:保持1:1比例 */
|
||||||
.advantage-card__img {
|
.advantage-card__img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
aspect-ratio: 1 / 1; /* 1:1图片比例 */
|
aspect-ratio: 1 / 1; /* 1:1比例 */
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
display: block;
|
display: block;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 文字区域:flex垂直分布,确保标题和描述都垂直居中 */
|
/* 文字区域:保持内边距和布局,内部间距也调整为0.08rem */
|
||||||
.advantage-card__content {
|
.advantage-card__content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: clamp(1rem,3vw, 1.5rem);
|
padding: 0.4rem 0.23rem 0.31rem 0.2rem; /* 上下内边距 */
|
||||||
display: flex;
|
gap: 0.08rem; /* 内部元素间距:设计稿8px=0.08rem */
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
flex-grow: 1;
|
|
||||||
gap: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 标题容器:水平居中+内部两端对齐,同时垂直居中 */
|
/* 标题容器:间距设为0.08rem(8px) */
|
||||||
.advantage-card__heading-wrap {
|
.advantage-card__heading-wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: clamp(0.3rem, 0.5vw, 0.5rem);
|
gap: 0.08rem; /* 设计稿8px=0.08rem */
|
||||||
width: 80%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 卡片标题:居左显示 */
|
/* 卡片标题:字体大小调整 */
|
||||||
.advantage-card__heading {
|
.advantage-card__heading {
|
||||||
font-size: clamp(16px, 1.5vw, 32px);
|
font-size: 0.34rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #101010;
|
||||||
line-height: 1.3;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
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 {
|
.card-arrow {
|
||||||
color: #409eff;
|
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.3s ease;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
/* 箭头大小根据标题字体大小自适应 */
|
width: 0.33rem;
|
||||||
width: clamp(1rem, 1.8vw, 1.5rem);
|
height: 0.33rem;
|
||||||
height: clamp(1rem, 1.8vw, 1.5rem);
|
|
||||||
font-size: clamp(0.7rem, 1.2vw, 1.1rem);
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片hover时箭头动画 */
|
|
||||||
.advantage-card:hover .card-arrow {
|
|
||||||
transform: translateX(3px);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 描述文字:水平+垂直居中,与标题容器对齐,设置最小高度统一占位 */
|
|
||||||
.advantage-card__description {
|
|
||||||
font-size: clamp(10px, 1vw, 18px);
|
|
||||||
line-height: 1.2;
|
|
||||||
width: 80%;
|
|
||||||
color: #666666;
|
|
||||||
/* 强制固定2行显示 */
|
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-line-clamp: 2;
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
/* 非webkit内核浏览器降级方案 */
|
|
||||||
display: block;
|
|
||||||
height: calc(1.2em * 2); /* 行高 × 行数,确保高度刚好容纳2行 */
|
|
||||||
/* 最小高度兜底,适配不同字体大小 */
|
|
||||||
min-height: clamp(24px, 2.4vw, 43.2px); /* 1.2em×2换算,对应字体范围的最小/最大高度 */
|
|
||||||
/* 防止内容溢出 */
|
|
||||||
white-space: normal;
|
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 卡片hover效果 */
|
/* 卡片hover效果 */
|
||||||
.advantage-card:hover {
|
/* .advantage-card:hover {
|
||||||
transform: scale(1.03);
|
transform: scale(1.03);
|
||||||
}
|
} */
|
||||||
|
|
||||||
/* 箭头容器:自适应尺寸 */
|
/* 箭头hover位移 */
|
||||||
.arrow {
|
.advantage-card:hover .card-arrow {
|
||||||
position: relative;
|
transform: translateX(0.03rem);
|
||||||
/* 箭头尺寸跟随card-arrow自适应 */
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 箭头线条基础样式:自适应粗细 */
|
|
||||||
.arrow::before,
|
|
||||||
.arrow::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
background-color: #fff;
|
|
||||||
border-radius: clamp(0.05rem, 0.1vw, 0.1rem);
|
|
||||||
/* 线条粗细自适应 */
|
|
||||||
height: clamp(0.08rem, 0.15vw, 0.12rem);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 右箭头:自适应长度 */
|
|
||||||
.arrow-right::before {
|
|
||||||
width: clamp(0.3rem, 0.7vw, 0.55rem);
|
|
||||||
top: 50%;
|
|
||||||
left: 0;
|
|
||||||
transform: translateY(-50%) rotate(45deg);
|
|
||||||
transform-origin: right center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrow-right::after {
|
|
||||||
width: clamp(0.3rem, 0.7vw, 0.55rem);
|
|
||||||
top: 50%;
|
|
||||||
left: 0;
|
|
||||||
transform: translateY(-50%) rotate(-45deg);
|
|
||||||
transform-origin: right center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 左箭头:自适应长度 */
|
|
||||||
.arrow-left::before {
|
|
||||||
width: clamp(0.3rem, 0.7vw, 0.55rem);
|
|
||||||
top: 50%;
|
|
||||||
right: 0;
|
|
||||||
transform: translateY(-50%) rotate(-45deg);
|
|
||||||
transform-origin: left center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrow-left::after {
|
|
||||||
width: clamp(0.3rem, 0.7vw, 0.55rem);
|
|
||||||
top: 50%;
|
|
||||||
right: 0;
|
|
||||||
transform: translateY(-50%) rotate(45deg);
|
|
||||||
transform-origin: left center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 平板端和移动端统一布局:第一行2个,第二行3个 */
|
|
||||||
@media (max-width: 1024px) {
|
|
||||||
/* 列表容器:flex布局+换行,左对齐确保排列规则,仅保留列间距 */
|
|
||||||
.advantage-section__list {
|
|
||||||
display: flex !important;
|
|
||||||
flex-wrap: wrap !important;
|
|
||||||
justify-content: flex-start !important;
|
|
||||||
gap: clamp(0.3rem, 1.5vw, 0.8rem) !important; /* 列间距 */
|
|
||||||
row-gap: clamp(0.5rem, 2vw, 1rem) !important; /* 行间距 */
|
|
||||||
width: 100% !important;
|
|
||||||
height: auto !important;
|
|
||||||
overflow: visible !important;
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片包裹容器:基础样式 */
|
|
||||||
.advantage-card-wrap {
|
|
||||||
display: block !important;
|
|
||||||
height: auto !important;
|
|
||||||
min-height: 1px !important;
|
|
||||||
margin-bottom: 0 !important; /* 移除额外margin */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 第一行2个卡片:宽度=(100% - 1个间距)/2 */
|
|
||||||
.advantage-card-wrap:nth-child(1),
|
|
||||||
.advantage-card-wrap:nth-child(2) {
|
|
||||||
width: calc((100% - clamp(0.3rem, 1.5vw, 0.8rem)) / 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 * clamp(0.3rem, 1.5vw, 0.8rem)) / 3) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片核心:宽度继承父容器,高度自适应 */
|
|
||||||
.advantage-card {
|
|
||||||
width: 100% !important;
|
|
||||||
min-width: 100% !important;
|
|
||||||
max-width: 100% !important;
|
|
||||||
flex: none !important;
|
|
||||||
height: auto !important;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.advantage-card__img {
|
|
||||||
aspect-ratio: 1 / 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.advantage-card__content {
|
|
||||||
flex-grow: 1;
|
|
||||||
padding: clamp(1.2rem, 3vw, 2rem) 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 平板端字体稍大 */
|
|
||||||
.advantage-card__heading {
|
|
||||||
font-size: clamp(16px, 3vw, 20px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.advantage-card__description {
|
|
||||||
font-size: clamp(10px, 2vw, 14px);
|
|
||||||
min-height: clamp(24px, 4vw, 30px);
|
|
||||||
color:#666666;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-arrow {
|
|
||||||
width: clamp(1.17rem, 2.5vw, 2.2rem);
|
|
||||||
height: clamp(1.17rem, 2.5vw, 2.2rem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 移动端进一步优化间距 */
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
.advantage-section__list {
|
|
||||||
gap: clamp(0.2rem, 1vw, 0.5rem) !important; /* 进一步缩小列间距 */
|
|
||||||
row-gap: clamp(0.3rem, 1.5vw, 0.8rem) !important; /* 进一步缩小行间距 */
|
|
||||||
}
|
|
||||||
|
|
||||||
.advantage-card-wrap:nth-child(1),
|
|
||||||
.advantage-card-wrap:nth-child(2) {
|
|
||||||
width: calc((100% - clamp(0.2rem, 1vw, 0.5rem)) / 2) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.advantage-card-wrap:nth-child(3),
|
|
||||||
.advantage-card-wrap:nth-child(4),
|
|
||||||
.advantage-card-wrap:nth-child(5) {
|
|
||||||
width: calc((100% - 2 * clamp(0.2rem, 1vw, 0.5rem)) / 3) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.advantage-card__description {
|
|
||||||
min-height: clamp(20px, 4.5vw, 26px);
|
|
||||||
color:#666666;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 超小屏优化 */
|
|
||||||
@media (max-width: 374px) {
|
|
||||||
.advantage-card__description {
|
|
||||||
min-height: clamp(18px, 4vw, 24px);
|
|
||||||
color:#666666;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
.prodline-footer-box{
|
.prodline-footer-box{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 3rem 0;
|
/* padding: 3rem 0; */
|
||||||
}
|
}
|
||||||
.prodline-footer-box-img {
|
.prodline-footer-box-img {
|
||||||
width: 93.5%;
|
width: 93.5%;
|
||||||
|
|||||||
@@ -5,16 +5,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 1. 根字体适配:限制最小根字体为14px,从源头避免文字过小 */
|
/* 1. 根字体适配:限制最小根字体为14px,从源头避免文字过小 */
|
||||||
html {
|
/* html {
|
||||||
/* PC端(≥1024px):1rem=16px(原尺寸) */
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
} */
|
||||||
|
|
||||||
/* 平板端(768px~1023px):15px→16px(过渡,最小15px) */
|
/* 平板端(768px~1023px):15px→16px(过渡,最小15px) */
|
||||||
@media (max-width: 1024px) and (min-width: 768px) {
|
@media (max-width: 1024px) and (min-width: 768px) {
|
||||||
html {
|
/* html {
|
||||||
font-size: calc(15px + (16 - 15) * (100vw - 768px) / (1023 - 768));
|
font-size: calc(15px + (16 - 15) * (100vw - 768px) / (1023 - 768));
|
||||||
}
|
} */
|
||||||
html body {
|
html body {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
@@ -25,10 +25,10 @@ html {
|
|||||||
|
|
||||||
/* 移动端(320px~767px):固定14px(不随屏幕缩小而变小,避免文字<12px) */
|
/* 移动端(320px~767px):固定14px(不随屏幕缩小而变小,避免文字<12px) */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
html {
|
/* html {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
}
|
} */
|
||||||
html body {
|
html body {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
@@ -39,9 +39,9 @@ html {
|
|||||||
|
|
||||||
/* 超小屏(≤320px):仍固定14px,彻底杜绝文字过小 */
|
/* 超小屏(≤320px):仍固定14px,彻底杜绝文字过小 */
|
||||||
@media (max-width: 320px) {
|
@media (max-width: 320px) {
|
||||||
html {
|
/* html {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
} */
|
||||||
html body {
|
html body {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
@@ -57,38 +57,24 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: block;
|
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 {
|
.header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.header-img {
|
.header-img {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
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自动调整字体大小 */
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
@@ -1,99 +1,43 @@
|
|||||||
|
/* 设计稿750px → 1rem=100px,所有尺寸按设计稿÷100换算 */
|
||||||
.nav-box {
|
.nav-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
width: 93.5%;
|
width: 93.5%;
|
||||||
/* 平板/PC端限制最大宽度 */
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 3.125rem;
|
border-radius: 3.125rem; /* 设计稿312.5px */
|
||||||
/* 50px→3.125rem */
|
box-shadow: 0 0.125rem 0.9375rem rgba(0, 0, 0, 0.05); /* 设计稿12.5px/93.75px */
|
||||||
box-shadow: 0 0.125rem 0.9375rem rgba(0, 0, 0, 0.05);
|
|
||||||
/* 2px→0.125rem,15px→0.9375rem */
|
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
/* padding: 0.625rem 0; */
|
|
||||||
/* 10px→0.625rem(原内边距不变) */
|
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
padding: 0 clamp(21px, 5.6vw, 42px);
|
padding: 0 0.42rem; /* 设计稿42px(左右内边距取中间值) */
|
||||||
|
/* min-height: fit-content; */
|
||||||
|
/* height:0.86rem; */
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-bottom: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item {
|
.nav-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.625rem;
|
|
||||||
/* 10px→0.625rem */
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
/* 10px→0.625rem,20px→1.25rem */
|
|
||||||
position: relative;
|
|
||||||
z-index: 2;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 3rem;
|
margin-top: -0.5rem;
|
||||||
/* 48px→3rem(适配14px根字体) */
|
|
||||||
max-width: 5rem;
|
|
||||||
/* 80px→5rem */
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0 c;
|
|
||||||
|
align-self: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item img {
|
.nav-item img {
|
||||||
width: 100%;
|
width: 0.94rem; /* 设计稿80px(示例图片尺寸,可按实际调整) */
|
||||||
/* clamp(4rem, 5.6vw, 8rem) 4rem; */
|
height: 0.94rem;
|
||||||
/* height: 4rem; */
|
margin-bottom: 0.15rem; /* 设计稿10px(图片与文字间距) */
|
||||||
max-width: 98px;
|
|
||||||
/* 60px→3.75rem(16px基准),14px根字体下≈52.5px,仍清晰 */
|
|
||||||
object-fit: contain;
|
|
||||||
border-radius: 0.75rem;
|
|
||||||
/* 12px→0.75rem */
|
|
||||||
position: absolute;
|
|
||||||
top: -3.125rem;
|
|
||||||
/* -50px→-3.125rem(14px根字体下≈43.75px,超出效果不变) */
|
|
||||||
transform: translateY(0.625rem);
|
|
||||||
/* 10px→0.625rem */
|
|
||||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.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 {
|
.nav-item p {
|
||||||
|
|
||||||
|
font-size: 0.22rem; /* 设计稿16px(文字大小) */
|
||||||
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
/* PC端:15px→0.9375rem(16px根字体) */
|
|
||||||
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); */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 平板端文字:14px→0.9375rem(15px根字体下=14px) */
|
|
||||||
@media (max-width: 1023px) and (min-width: 768px) {
|
|
||||||
.nav-item p {
|
|
||||||
font-size: clamp(12px, 3vw, 1.3125rem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 移动端文字:强制12px(用px兜底,避免rem计算后过小) */
|
|
||||||
@media (max-width: 767px) {
|
|
||||||
.nav-item p {
|
|
||||||
font-size: 12px;
|
|
||||||
/* 直接用px固定最小尺寸,优先级最高 */
|
|
||||||
font-size: clamp(12px, 0.857rem, 0.9375rem);
|
|
||||||
/* 增强版:最小12px,默认0.857rem(14px根字体下≈12px),最大0.9375rem */
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,38 +1,50 @@
|
|||||||
|
/* 设计稿750px → 1rem=100px,所有尺寸按设计稿÷100换算 */
|
||||||
.product-box {
|
.product-box {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: clamp(1.5rem, 3vw, 3rem) 0;
|
padding-top: 0.93rem;
|
||||||
/* 产品块之间留间距 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-title {
|
.product-title {
|
||||||
width: 93.5%;
|
width: 93.5%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-bottom: clamp(1.5rem, 3vw, 3rem);
|
padding-bottom: 0.83rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-title-h2 {
|
.product-title-h2 {
|
||||||
font-size: clamp(1.5rem, 3vw, 2.25rem);
|
font-size: 0.46rem;
|
||||||
/* padding-top: clamp(1.5rem, 3vw, 3rem); */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-title-p {
|
.product-title-p {
|
||||||
font-size: clamp(0.875rem, 1.5vw, 1.125rem);
|
font-size: 0.24rem;
|
||||||
color: #646464;
|
color: #646464;
|
||||||
margin-top: clamp(0.5rem, 1vw, 0.75rem);
|
margin-top: 0.21rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 容器布局:两个产品通用 */
|
/* 容器布局:改为上下结构(右侧在上,左侧在下) */
|
||||||
.product-container {
|
.product-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: clamp(0.4rem, 1vw, 0.71rem);
|
flex-direction: column-reverse;
|
||||||
|
gap: 0.1rem; /* 上下间距 */
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 93.5%;
|
width: 93.5%;
|
||||||
align-items: flex-start;
|
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 {
|
.product-left {
|
||||||
flex: 1.8;
|
flex: none; /* 取消flex比例,自适应高度 */
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@@ -40,37 +52,18 @@
|
|||||||
.product-img {
|
.product-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
border-radius: 10px;
|
border-radius: 0.1rem;
|
||||||
display: block;
|
display: block;
|
||||||
/* 取消图片底部空隙 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 悬浮图公共样式:两个产品尺寸完全一致(100%宽度) */
|
/* 第二个产品:悬浮图位置调整(适配下方布局) */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* 第二个产品:悬浮图上右超出(仅定位差异) */
|
|
||||||
.product-img-2 {
|
.product-img-2 {
|
||||||
top: -10%;
|
top: auto; /* 取消顶部定位 */
|
||||||
/* 上超出 */
|
bottom: -0.8rem; /* 底部超出 */
|
||||||
transform: none;
|
transform: none;
|
||||||
width: 108%;
|
width: 1.08rem;
|
||||||
/* 取消居中 */
|
position: absolute;
|
||||||
}
|
right: 0;
|
||||||
|
|
||||||
/* 右侧容器:两个产品通用 */
|
|
||||||
.product-right {
|
|
||||||
flex: 3.2;
|
|
||||||
position: relative;
|
|
||||||
border-radius: 10px;
|
|
||||||
overflow: hidden;
|
|
||||||
width: 100%;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
align-self: stretch;
|
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-content {
|
.right-content {
|
||||||
@@ -97,10 +90,9 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.3s ease;
|
transition: opacity 0.3s ease;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: none; /* 默认隐藏 */
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 播放图标默认显示,暂停图标默认隐藏 */
|
|
||||||
.play-icon {
|
.play-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
@@ -108,7 +100,6 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .paused类时切换图标 */
|
|
||||||
.video-play-btn.paused .play-icon {
|
.video-play-btn.paused .play-icon {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -116,163 +107,43 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 视频显示时按钮可见 */
|
|
||||||
.right-video[playing] ~ .video-play-btn,
|
.right-video[playing] ~ .video-play-btn,
|
||||||
.product-right:hover .video-play-btn {
|
.product-right:hover .video-play-btn {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* PC端适配:仅1024px以上应用PC样式 */
|
/* 悬浮图容器:适配下方布局 */
|
||||||
@media (min-width: 1025px) {
|
.product-img-hover {
|
||||||
.product-container {
|
width: auto;
|
||||||
width: 93.5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-left {
|
|
||||||
flex: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-right {
|
|
||||||
flex: 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.product-img-2 {
|
|
||||||
top: -12%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 移动端+平板端适配(1024px以下):统一样式表现 */
|
|
||||||
@media (max-width: 1024px) {
|
|
||||||
.product-container {
|
|
||||||
flex-direction: column-reverse; /* 反转列顺序,右在上左在下 */
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-left, .product-right {
|
|
||||||
flex: none; /* 重置flex比例 */
|
|
||||||
width: 100%; /* 宽度铺满 */
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-right {
|
|
||||||
align-self: auto; /* 重置对齐方式 */
|
|
||||||
aspect-ratio: 16/9;
|
|
||||||
min-height: 194px;
|
|
||||||
}
|
|
||||||
.product-img {
|
|
||||||
/* max-height: 202px;
|
|
||||||
object-fit: contain; */
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
/* 悬浮图容器宽高与图片一致 */
|
|
||||||
.product-img-hover {
|
|
||||||
width: auto; /* 宽度由图片决定 */
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 33;
|
z-index: 33;
|
||||||
}
|
}
|
||||||
.product-img-2 {
|
.right {
|
||||||
top: -8%;
|
|
||||||
width: auto;
|
|
||||||
right: 0;
|
|
||||||
left: auto;
|
|
||||||
}
|
|
||||||
.img1 {
|
|
||||||
|
|
||||||
width:356px;
|
right: -0.3rem;
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width:356px;
|
|
||||||
}
|
|
||||||
.img2 {
|
|
||||||
|
|
||||||
width:356px;
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width:356px;
|
|
||||||
}
|
|
||||||
.img3 {
|
|
||||||
width:356px;
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width:356px;
|
|
||||||
}
|
|
||||||
.img4 {
|
|
||||||
width:356px;
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width:356px;
|
|
||||||
}
|
|
||||||
.img5 {
|
|
||||||
width:356px;
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width:356px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
/* 图片尺寸统一用rem */
|
||||||
/* 超小屏适配(375px以下) */
|
.img1, .img2, .img3, .img4, .img5 {
|
||||||
/* @media (max-width: 768px) and (min-width: 375px) */
|
width: 3.56rem;
|
||||||
@media (min-width: 375px) and (max-width: 767px){
|
max-width: 3.56rem;
|
||||||
.img1 {
|
|
||||||
|
|
||||||
width: clamp(138px, 20vw, 276px);
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width: clamp(138px, 20vw, 276px) !important;
|
|
||||||
}
|
|
||||||
.img2 {
|
|
||||||
|
|
||||||
width: clamp(135px, 20vw, 270px);
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width: clamp(135px, 20vw, 270px) !important;
|
|
||||||
}
|
|
||||||
.img3 {
|
|
||||||
width: clamp(129px, 20vw, 258px);
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width: clamp(129px, 20vw, 258px) !important;
|
|
||||||
}
|
|
||||||
.img4 {
|
|
||||||
width: clamp(125px, 20vw,250px);
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width: clamp(125px, 20vw,250px) !important;
|
|
||||||
}
|
|
||||||
.img5 {
|
|
||||||
width: clamp(129px, 20vw,258px);
|
|
||||||
max-width: clamp(129px, 20vw,258px)!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-right {
|
|
||||||
min-height: 194px;
|
|
||||||
}
|
|
||||||
.product-img-hover {
|
|
||||||
width:auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) and (max-width: 1023px) {
|
|
||||||
.img1 {
|
|
||||||
|
|
||||||
width:100%;
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width:276px;
|
|
||||||
}
|
|
||||||
.img2 {
|
|
||||||
|
|
||||||
width:100%;
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width:270px;
|
|
||||||
}
|
|
||||||
.img3 {
|
|
||||||
width:258px;
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width: 258px;
|
|
||||||
}
|
|
||||||
.img4 {
|
|
||||||
width:250px;
|
|
||||||
/* 或者保持原有width:100%,只设置max-width */
|
|
||||||
max-width: 250px;
|
|
||||||
}
|
|
||||||
.img5 {
|
|
||||||
width: 258px;
|
|
||||||
max-width: 258px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.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;
|
||||||
}
|
}
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
/* 标题:超出一行显示省略号(左对齐) */
|
/* 标题:超出一行显示省略号(左对齐) */
|
||||||
.product-card-title2 {
|
.product-card-title2 {
|
||||||
font-size: clamp(12px, 2vw, 18px);
|
font-size: clamp(16px, 2vw, 19px);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
/* 容器布局:通用基础样式(仅宽度、外边距,不涉及高度) */
|
/* 设计稿750px → 1rem=100px,所有尺寸按设计稿÷100换算 */
|
||||||
|
/* 容器布局:通用基础样式 */
|
||||||
.product-card-box {
|
.product-card-box {
|
||||||
width: 93.5%;
|
width: 93.5%;
|
||||||
margin: clamp(0.7rem, 2vw, 1.5rem) auto 0;
|
margin: 0.12rem auto 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -9,289 +10,115 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: wrap;
|
||||||
overflow: visible !important; /* 改为visible,显示所有内容 */
|
overflow: visible !important;
|
||||||
padding: 0 clamp(0.2rem, 0.6vw, 0.3rem);
|
height: auto !important;
|
||||||
height: auto !important; /* 高度自适应内容 */
|
gap: 0.12rem; /* 间距调整为0.12rem */
|
||||||
|
justify-content: space-between; /* 两端对齐,确保铺满 */
|
||||||
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 卡片包裹容器:确保不独占一行 */
|
/* 卡片包裹容器:强制一行2个并铺满 */
|
||||||
.product-card-wrap {
|
.product-card-wrap {
|
||||||
display: contents; /* 让包裹容器不影响布局 */
|
display: block !important;
|
||||||
width: 100%;
|
width: calc(50% - 0.06rem) !important; /* 50%宽度 - 间距的一半(0.12rem/2=0.06rem) */
|
||||||
|
height: auto !important;
|
||||||
|
margin: 0 !important; /* 移除额外margin */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ######################################################################### */
|
/* 卡片核心:通用样式 */
|
||||||
/* 移动端+平板样式(max-width: 1023px)- 后续修改仅改这里 */
|
.product-card {
|
||||||
/* ######################################################################### */
|
|
||||||
@media (max-width: 1024px) {
|
|
||||||
/* 卡片容器:移动端+平板特有 - 改为wrap换行,一行2个,高度自适应 */
|
|
||||||
.product-card-container {
|
|
||||||
align-items: flex-start; /* 改为flex-start,避免拉伸 */
|
|
||||||
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; /* 高度自适应内容 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片包裹容器:移动端+平板适配 */
|
|
||||||
.product-card-wrap {
|
|
||||||
display: block !important;
|
|
||||||
width: calc(50% - clamp(0.25rem, 0.5vw, 0.5rem)) !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
padding: 0 !important;
|
|
||||||
height: auto !important; /* 高度自适应 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片核心:移动端+平板改为一行2个,高度自适应内容 */
|
|
||||||
.product-card {
|
|
||||||
background: rgb(242, 243, 245);
|
background: rgb(242, 243, 245);
|
||||||
border-radius: clamp(0.375rem, 1vw, 0.5rem);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 100% !important; /* 卡片宽度100%,由包裹容器控制 */
|
width: 100% !important;
|
||||||
flex: none;
|
flex: none;
|
||||||
box-shadow: 0 clamp(0.1rem, 0.2vw, 0.125rem)
|
box-shadow: 0 0.1125rem 0.4rem rgba(0, 0, 0, 0.05);
|
||||||
clamp(0.3rem, 0.8vw, 0.5rem) rgba(0, 0, 0, 0.05);
|
margin: 0 !important;
|
||||||
margin: 0 !important; /* 移除margin,用gap控制间距 */
|
box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.08); /* 包裹容器阴影 */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: auto !important; /* 高度自适应内容 */
|
height: auto !important;
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片hover效果:移动端+平板特有 */
|
|
||||||
.product-card:hover {
|
|
||||||
transform: scale(clamp(1.01, 1.02, 1.03));
|
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.3s ease;
|
||||||
}
|
border-radius: 0.07rem;
|
||||||
|
}
|
||||||
|
|
||||||
/* 图片容器:移动端+平板固定占比 */
|
/* 卡片hover效果:通用 */
|
||||||
.product-card-img {
|
.product-card:hover {
|
||||||
|
transform: scale(1.02);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 图片容器:通用样式 */
|
||||||
|
.product-card-img {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex: 0 0 auto; /* 改为auto,高度自适应 */
|
flex: 0 0 auto;
|
||||||
aspect-ratio: 3 / 2.8; /* 保持图片比例 */
|
aspect-ratio: 3 / 2.8;
|
||||||
margin-bottom: clamp(0.4rem, 0.6vw, 0.5rem);
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: clamp(0.2rem, 0.4vw, 0.25rem);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* 产品图片:移动端+平板特有 */
|
/* 产品图片:通用样式 */
|
||||||
.product-card img {
|
.product-card img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: center;
|
object-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 文字容器:移动端+平板高度自适应 */
|
/* 文字容器:通用样式(居中对齐) */
|
||||||
.product-card-text {
|
.product-card-text {
|
||||||
flex: 1 1 auto; /* 改为flex:1,高度自适应内容 */
|
flex: 1 1 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding-left: clamp(0.8rem, 2vw, 1.5rem);
|
|
||||||
padding-right: clamp(0.8rem, 2vw, 1.5rem);
|
|
||||||
height: auto !important; /* 高度自适应 */
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 标题样式:移动端+平板特有,高度自适应 */
|
height: auto !important;
|
||||||
.product-card-title {
|
align-items: center;
|
||||||
font-size: clamp(15px, 1.5vw, 30px);
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 标题样式:通用 */
|
||||||
|
.product-card-title {
|
||||||
|
font-size: 0.3rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
height: auto !important; /* 移除固定高度 */
|
|
||||||
margin-bottom: clamp(0.2rem, 0.4vw, 0.3rem); /* 添加间距 */
|
|
||||||
line-height: 1.2;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 描述样式:移动端+平板高度自适应 */
|
|
||||||
.product-card-desc {
|
|
||||||
font-size: clamp(11px, 1.5vw,21px);
|
|
||||||
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;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 链接图标容器:移动端+平板高度自适应,添加较小的底部内边距 */
|
|
||||||
.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);
|
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
text-align: center; /* 针对inline元素的居中 */
|
margin-bottom: 0.21rem;
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 链接图标:移动端+平板特有 */
|
|
||||||
.product-card-link img {
|
|
||||||
width: clamp(5.5rem, 5vw,8.5rem);
|
|
||||||
height: auto;
|
|
||||||
object-fit: contain;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 平板端(768px-1023px)补充样式 */
|
|
||||||
@media (min-width: 768px) and (max-width: 1023px) {
|
|
||||||
.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);
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.product-card-desc {
|
|
||||||
font-size: clamp(11px, 1.5vw,21px);
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 平板端底部内边距稍大但仍较小 */
|
|
||||||
.product-card-link {
|
|
||||||
min-width: 90px;
|
|
||||||
padding-bottom: clamp(1rem, 3vw, 1.5rem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ######################################################################### */
|
/* 描述样式:通用(2行截断) */
|
||||||
/* PC端样式(单独配置,min-width: 1024px)- 后续修改仅改这里 */
|
.product-card-desc {
|
||||||
/* ######################################################################### */
|
font-size: 0.24rem;
|
||||||
@media (min-width: 1024px) {
|
|
||||||
/* 卡片容器:PC端特有,高度自适应内容 */
|
|
||||||
.product-card-container {
|
|
||||||
align-items: flex-start; /* 改为flex-start,避免拉伸 */
|
|
||||||
height: auto !important; /* 高度自适应内容 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片包裹容器:PC端适配 */
|
|
||||||
.product-card-wrap {
|
|
||||||
display: contents;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片核心:PC端高度自适应内容 */
|
|
||||||
.product-card {
|
|
||||||
background: rgb(242, 243, 245);
|
|
||||||
border-radius: clamp(0.375rem, 1vw, 0.5rem);
|
|
||||||
cursor: pointer;
|
|
||||||
width: calc(25% - clamp(0.3rem, 0.5vw, 0.36rem));
|
|
||||||
flex: none;
|
|
||||||
box-shadow: 0 clamp(0.1rem, 0.2vw, 0.125rem)
|
|
||||||
clamp(0.3rem, 0.8vw, 0.5rem) rgba(0, 0, 0, 0.05);
|
|
||||||
margin: 0 clamp(0.16rem, 0.24vw, 0.2rem);
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
height: auto !important; /* 高度自适应内容 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 卡片hover效果:PC端特有 */
|
|
||||||
.product-card:hover {
|
|
||||||
transform: scale(clamp(1.01, 1.02, 1.03));
|
|
||||||
transition: transform 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 图片容器:PC端高度自适应 */
|
|
||||||
.product-card-img {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
flex: 0 0 auto; /* 改为auto,高度自适应 */
|
|
||||||
aspect-ratio: 3 / 2.8; /* 保持图片比例 */
|
|
||||||
margin-bottom: clamp(0.4rem, 0.6vw, 0.5rem);
|
|
||||||
overflow: hidden;
|
|
||||||
border-radius: clamp(0.2rem, 0.4vw, 0.25rem);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 产品图片:PC端特有 */
|
|
||||||
.product-card img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: contain;
|
|
||||||
object-position: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 文字容器:PC端高度自适应 */
|
|
||||||
.product-card-text {
|
|
||||||
flex: 1 1 auto; /* 改为flex:1,高度自适应内容 */
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
padding-left: clamp(0.8rem, 2vw, 1.5rem);
|
|
||||||
padding-right: clamp(0.8rem, 2vw, 1.5rem);
|
|
||||||
display: flex; /* 确保flex布局 */
|
|
||||||
height: auto !important; /* 高度自适应 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 标题样式:PC端特有,高度自适应 */
|
|
||||||
.product-card-title {
|
|
||||||
font-size: clamp(15px, 1.5vw, 30px);
|
|
||||||
font-weight: 600;
|
|
||||||
color: #101010;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
height: auto !important; /* 高度自适应 */
|
|
||||||
margin-bottom: clamp(0.2rem, 0.4vw, 0.3rem); /* 添加间距 */
|
|
||||||
line-height: 1.2;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 描述样式:PC端高度自适应 */
|
|
||||||
.product-card-desc {
|
|
||||||
font-size: clamp(11px, 1.5vw,21px);
|
|
||||||
color: #656565;
|
color: #656565;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
height: auto !important; /* 高度自适应 */
|
height: auto !important;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
text-align: center;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* 链接图标容器:PC端高度自适应,添加较小的底部内边距 */
|
/* 链接图标容器:通用样式(居中) */
|
||||||
.product-card-link {
|
.product-card-link {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex; /* 确保flex布局 */
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex: 0 0 auto; /* 改为auto,高度自适应 */
|
justify-content: center;
|
||||||
padding-left: clamp(0.8rem, 2vw, 1.5rem);
|
flex: 0 0 auto;
|
||||||
padding-bottom: clamp(1rem, 3vw, 1.5rem) ; /* 更小的底部内边距 */
|
padding: 0.35rem 0 0.4rem;
|
||||||
height: auto !important; /* 高度自适应 */
|
height: auto !important;
|
||||||
}
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
/* 链接图标:PC端特有 */
|
/* 链接图标:通用样式 */
|
||||||
.product-card-link img {
|
.product-card-link img {
|
||||||
width: clamp(2.5rem, 5vw, 4.5rem);
|
width: 1.54rem;
|
||||||
height: auto;
|
height: auto;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
.auto-swiper-container {
|
.auto-swiper-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
/* 关键:高度 = 视口高度的百分比(可调整,如60vh=屏幕高度60%) */
|
/* 关键:高度 = 视口高度的百分比(可调整,如60vh=屏幕高度60%) */
|
||||||
margin-bottom: 5.7rem;
|
margin-bottom:1.5rem;
|
||||||
/* max-height: 900px; */
|
/* max-height: 900px; */
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Black.ttf
Normal file
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Black.ttf
Normal file
Binary file not shown.
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Bold.ttf
Normal file
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Bold.ttf
Normal file
Binary file not shown.
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Light.ttf
Normal file
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Light.ttf
Normal file
Binary file not shown.
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Medium.ttf
Normal file
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Medium.ttf
Normal file
Binary file not shown.
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Regular.ttf
Normal file
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Regular.ttf
Normal file
Binary file not shown.
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Thin.ttf
Normal file
BIN
public/static/index/mobile/fonts/HarmonyOS_Sans_SC_Thin.ttf
Normal file
Binary file not shown.
Reference in New Issue
Block a user