
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  background-color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* ❗删掉 padding-bottom: 88px; 这一行，固定导航才需要，现在不需要 */
}

.container {
  width: 100%;
  padding: 0 16px;
}
/* 头部 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.logo {
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
}
.logo-blue {
  color: #1677ff;
}
.logo-orange {
  color: #ff7800;
}
.btn-login {
  background: linear-gradient(135deg, #7362ff, #914aff);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
}
/* banner 带网格背景 */
.banner {
  background-color: #f7f9ff;
  background-image: linear-gradient(#e9ecff 1px, transparent 1px),
    linear-gradient(90deg, #e9ecff 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom:30px;
}
.banner h1 {
  font-size: 32px;
  margin-bottom: 6px;
}
.banner h2 {
  font-size: 26px;
  color: #7b4cff;
  margin-bottom: 14px;
}
.banner-desc {
  font-size: 15px;
  color: #505662;
  line-height: 1.6;
  margin-bottom: 22px;
}
.banner-buttons {
  display: flex;
  gap: 12px;
}
.btn-main {
  flex: 1;
  background: linear-gradient(90deg, #6459f7, #873ef0);
  color: #ffffff;
  border: 0;
  border-radius: 14px;
  padding: 17px 0;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  text-align:center;
}
.btn-other {
  flex: 0 0 112px;
  background: #16c04f;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 14px;
  font-size: 16px;
  text-decoration: none;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
}
/* 通用区块 */
.section {
  margin-bottom: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
}
.more-link {
  font-size: 15px;
  color: #6248e7;
  text-decoration: none;
}
/* 热门产品：手机强制2列，大屏自适应 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width:768px){
  .product-grid{
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  }
}
.product-card {
  background: #fff;
  border: 1px solid #f0f2f8;
  border-radius: 16px;
  padding: 18px 14px;
  text-decoration:none;
  color:#000;
  display:block;
}
.prod-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin-bottom: 8px;
}
.icon-blue {
  background-color: #4081ff;
}
.icon-purple {
  background-color: #8a65ff;
}
.prod-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.prod-tip {
  font-size: 13px;
  color: #747987;
  margin-bottom: 6px;
}
.prod-price {
  font-size: 16px;
  font-weight: 700;
  color: #2367ec;
}
/* 限时活动：手机、电脑都横向一排 */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
}
.act-card-blue {
  background-color: #e8f1ff;
  border: 1px solid #c9ddff;
  border-radius: 16px;
  padding: 18px 14px;
}
.act-card-purple {
  background-color: #f3ecff;
  border: 1px solid #e1d4ff;
  border-radius: 16px;
  padding: 18px 14px;
}
.act-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}
.act-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.act-desc {
  font-size: 13px;
  color: #636874;
  margin-bottom: 12px;
}
.act-btn-blue {
  width: 100%;
  background-color: #3583ff;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration:none;
  text-align:center;
  display:block;
}
.act-btn-purple {
  width: 100%;
  background-color: #914aff;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration:none;
  text-align:center;
  display:block;
}
/* 检测流程 手机横向滑动一排，电脑自动多列 */
.flow-wrap{
  background:#f8faff;
  border-radius:16px;
  padding:24px 14px;
}
.flow-scroll{
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.flow-grid{
  display:flex;
  gap:12px;
  padding-bottom:6px;
}
.flow-item{
  flex:0 0 140px;
  background:#ffffff;
  border-radius:12px;
  padding:16px 10px;
  text-align:center;
  border:1px solid #edf1fc;
  scroll-snap-align:start;
}
.flow-num{
  width:32px;
  height:32px;
  border-radius:50%;
  background:#7b4cff;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 8px;
  font-weight:bold;
}
.flow-title{
  font-size:15px;
  font-weight:600;
  margin-bottom:4px;
}
.flow-desc{
  font-size:12px;
  color:#666;
}
/* 电脑端恢复grid多列 */
@media (min-width:768px){
  .flow-scroll{
    overflow-x:visible;
  }
  .flow-grid{
    display:grid;
    grid-template-columns: repeat(4,1fr);
    gap:14px;
  }
  .flow-item{
    flex:none;
  }
}
/* 核心优势 */
.advantage-wrap {
  background-color: #f3f6ff;
  border-radius: 16px;
  padding: 24px 10px;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 4px;
  text-align: center;
}
.adv-icon {
  font-size: 28px;
  color: #7b4cff;
  margin-bottom: 6px;
}
.adv-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}
.adv-sub {
  font-size: 12px;
  color: #636874;
}



/* 底部导航，全屏固定 */

.bottom-tab {
  /* 删除 position: fixed; left:0; bottom:0; */
  width: 100%;
  background-color: #ffffff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 0 14px;
  margin-top: 50px; /* 和上方内容拉开距离 */
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.07);
}

.tab-item {
  min-width: 0;
  font-size: 11px;
  line-height:1.2;
  color: #747987;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-item.active {
  color: #2367ec;
}

.tab-icon {
  font-size: 22px;
  margin-bottom: 3px;
}
