/* 瀑喷科技官网 - 严格对齐原站实测参数
   原站基准：全宽 80px 边距 / slogan 811x493 @(80,100) / 卡片 285 宽 @(915,100) 间距 24
   卡片遮罩：linear-gradient(35deg, rgb(6,0,151) 0%, rgb(130,4,255) 73%, rgb(193,15,255) 100%) + dim 100
*/
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  /* 原站页面背景真身：35° 蓝紫渐变（实测自整页 cover 容器） */
  background: linear-gradient(35deg, rgb(6, 0, 151) 0%, rgb(130, 4, 255) 73%, rgb(193, 15, 255) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* 仅首页：自适应全屏，不出现滚动条（其他页面正常滚动） */
body.home {
  height: 100vh;
  overflow: hidden;
}

/* ---------- 顶部导航（固定高度，不缩放） ---------- */
.navbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 2.2vh 80px 0;
  flex-wrap: wrap;
}

.brand { flex: 0 0 auto; }
.brand img { width: 249px; height: auto; display: block; }

.menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  flex-wrap: wrap;
}

.menu a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.menu a:hover, .menu a.active { color: #ffc53d; }

/* ---------- 主视觉：占满剩余高度，全宽 80px 边距 ---------- */
.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between; /* slogan 贴左、卡片贴右，中间弹性填充，宽屏不留右侧空白 */
  gap: 24px;
  padding: 1vh 80px 0;
  width: 100%;
}

/* slogan：主视觉（按用户要求略缩小） */
.hero-left {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.slogan {
  height: 80%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* 卡片列：等宽 285，竖排 */
.hero-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- 产品卡片：285x125，原站渐变遮罩 ---------- */
.product-card {
  position: relative;
  display: block;
  width: 285px;
  height: 125px;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: rgba(40, 12, 80, 0.6);
  text-decoration: none;
  transition: transform 0.2s;
}

.product-card:hover { transform: translateY(-2px); }

/* 原站同款卡片遮罩：has-background-dim = 黑色 50%，文字清晰且图片可见 */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.product-card .card-text {
  position: relative;
  z-index: 2;
  padding: 17px;
  height: 100%;
  display: flex;
  align-items: center;
}

.product-card .card-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.product-card .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  vertical-align: 3px;
  margin-right: 7px;
}

.product-card .pname { color: #ffc53d; font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 1.2vh 16px 1.6vh;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer a:hover { color: #ffc53d; }
.footer p { line-height: 1.7; }

/* ---------- 中等宽度：按比例收缩 ---------- */
@media (max-width: 1320px) {
  .navbar { padding: 2.2vh 40px 0; }
  .hero { padding: 1vh 40px 0; gap: 20px; }
  .product-card { width: 24vw; max-width: 285px; aspect-ratio: 285 / 125; height: auto; }
}

/* ---------- 大屏（≥1700）：整体等比放大，保持饱满 ---------- */
@media (min-width: 1700px) {
  .hero { padding-left: 6vw; padding-right: 6vw; }
  .hero-right { flex: 0 0 340px; }
  .product-card { width: 340px; height: 149px; }
  .product-card .card-text { padding: 20px; }
  .product-card .card-text p { font-size: 15px; }
  .product-list { gap: 27px; }
  .menu { gap: 42px; }
  .menu a { font-size: 16px; }
  .brand img { width: 280px; }
}

/* ---------- 矮屏（笔记本）：压缩纵向留白，保证不下拉 ---------- */
@media (max-height: 780px) {
  .navbar { padding-top: 1.4vh; }
  .brand img { width: 210px; }
  .footer { padding: 0.8vh 16px 1vh; font-size: 12px; }
  .product-list { gap: 14px; }
  .product-card { height: 108px; }
}

/* ---------- 移动端：允许纵向滚动，单列堆叠 ---------- */
@media (max-width: 860px) {
  body.home { height: auto; min-height: 100vh; overflow: auto; }
  .navbar { padding: 14px 18px 0; }
  .brand img { width: 180px; }
  .menu { gap: 16px; justify-content: center; margin-top: 10px; }
  .menu a { font-size: 14px; }

  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 18px 32px;
    gap: 24px;
  }

  .hero-left { flex: 1 1 auto; max-width: 100%; }
  .slogan { height: auto; width: 100%; }
  .product-card { width: 100%; max-width: none; height: auto; aspect-ratio: 285 / 125; }
}
