/* ==========================================================================
   UI设计（ui.html）页面专用样式
   内容结构还原自 http://www.maijiechina.com/ui/
   ========================================================================== */

/* ============ 顶部 banner ============ */
.ui-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
  padding: 120px 16px 90px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: #0b1226 center/cover no-repeat;
}
.ui-hero::before {
  content: "";
  position: absolute;
  inset: 0;
}
.ui-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--w); margin: 0 auto; }
.ui-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.ui-hero__desc {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: clamp(15px, 1.6vw, 20px);
  color: rgba(255, 255, 255, .92);
}

/* ============ 通用标题 ============ */
.ui-title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  text-align: center;
  color: #333;
}
.ui-subtitle {
  display: block;
  margin: 24px auto 0;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: #999;
}

/* ============ 第二屏：用户体验咨询 ============ */
.ui-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 70px;
  margin-top: 60px;
}
.ui-cards li {
  width: 420px;
  max-width: 100%;
  text-align: center;
  color: #333;
}
.ui-cards__pic {
  overflow: hidden;
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(16, 32, 74, .07));
}
.ui-cards__pic img { width: 100%; height: auto; }
.ui-cards li p {
  margin: 20px 0 19px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.ui-cards li span {
  display: block;
  width: 350px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 25px;
  color: #999;
}

/* ============ 第三屏：以人为中心的交互设计 ============ */
.ui-interact { background: #fff; }
.ui-interact__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 83px;
}
.ui-interact__pic {
  flex: 0 0 auto;
  width: 666px;
  max-width: 100%;
  height: auto;
}
.ui-steps {
  flex: 0 0 auto;
  width: 690px;
  max-width: 100%;
  height: auto;
  padding: 0 0 40px;
  background: #f7f7fa;
  border-radius: 40px;
}
.ui-steps li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 80%;
  margin: 0 auto 40px;
}
.ui-steps li img { flex: 0 0 auto; margin-right: 20px; }
.ui-steps__head { margin-bottom: 0; }
.ui-steps__head p {
  width: 470px;
  max-width: 100%;
  margin: 60px 0 30px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  color: #333;
}
.ui-steps__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  color: #333;
}
.ui-steps__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  color: #999;
}

/* ============ 响应式 ============ */
@media (max-width: 1240px) {
  .ui-cards { gap: 36px; }
  .ui-cards li { width: 33.333%; }
  .ui-interact__box { gap: 28px; }
  .ui-interact__pic { width: 46%; }
  .ui-steps { width: 50%; }
  .ui-steps li { width: 86%; }
}

@media (max-width: 1000px) {
  .ui-hero { min-height: 380px; padding: 96px 16px 64px; }
  .ui-cards { flex-wrap: wrap; gap: 32px; }
  .ui-cards li { width: 100%; }
  .ui-cards li span { width: 100%; }
  .ui-interact__box { flex-direction: column; align-items: stretch; margin-top: 48px; }
  .ui-interact__pic { width: 100%; order: 2; }
  .ui-steps { width: 100%; order: 1; padding-bottom: 24px; border-radius: 24px; }
  .ui-steps__head p { margin: 40px 0 24px; }
}

@media (max-width: 640px) {
  .ui-hero { min-height: 300px; padding: 80px 16px 48px; }
  .ui-subtitle { font-size: 16px; }
  .ui-steps li { width: 90%; margin-bottom: 28px; }
  .ui-steps li img { width: 40px; margin-right: 14px; }
  .ui-steps__title { margin-bottom: 8px; font-size: 16px; }
}

/* ============ 顶部吸顶修复 ============
 * mystyle.css 里 html, body { height: 100% } 会让 body 只有一屏高，
 * 而 sticky 头部的“约束框”就是 body 的盒模型，滚动超过一屏后头部就跟着滚走。
 * 这里改回自适应，头部即可全程吸顶。
 * 另外 styles.css 遗留的 header { height: 100px } 会给组件头部多撑出 12px 空白，
 * 这里按头部自身高度（88px + 1px 下边框）自适应。 */
html,
body {
  height: auto;
  min-height: 100%;
}

.gw-header.header {
  height: auto;
}
