/* 鼎峰液压科技 · 小程序UI样式 */
:root {
  --primary: #11478f;
  --primary-deep: #0c3266;
  --primary-light: #e7eefb;
  --accent: #ff7a18;
  --accent-light: #fff1e6;
  --bg: #f3f5f8;
  --card: #ffffff;
  --border: #e6e9ef;
  --text: #1f2533;
  --text-sub: #6b7280;
  --text-muted: #9aa1ad;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(16,24,40,.05), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 18px 50px rgba(12,50,102,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body {
  background: radial-gradient(1200px 600px at 50% -10%, #1b2a4a, #0a1326 60%, #070c18);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}

/* ===== 手机外壳 ===== */
.stage { display: flex; align-items: center; justify-content: center; }
.phone {
  position: relative;
  width: 380px; height: 800px;
  background: var(--bg);
  border-radius: 46px;
  border: 11px solid #0d1322;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3550;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 150px; height: 26px; background: #0d1322; border-radius: 0 0 18px 18px; z-index: 30;
}
@media (max-width: 440px) {
  .phone { width: 100%; height: 92vh; border-radius: 36px; border-width: 8px; }
  body { padding: 0; }
}

/* ===== 状态栏 ===== */
.statusbar {
  background: var(--primary-deep); color: #fff;
  height: 44px; padding: 0 26px 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; flex-shrink: 0; z-index: 20;
}
.sb-right { display: flex; align-items: center; gap: 6px; }
.sb-signal { letter-spacing: -2px; font-size: 11px; }
.sb-net { font-size: 11px; }
.sb-battery { font-size: 12px; }

/* ===== 导航栏 ===== */
.navbar {
  background: var(--primary-deep); color: #fff;
  height: 44px; padding: 0 12px 0 14px;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; z-index: 20;
}
.navbar-back {
  background: none; border: none; color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; width: 28px; opacity: .9; padding-bottom: 4px;
}
.navbar-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 36px; }
.navbar-capsule {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 20px; padding: 3px 11px;
  position: absolute; right: 16px;
}
.cap-dot { font-size: 8px; color: rgba(255,255,255,.8); }

/* ===== 屏幕 ===== */
.screen { flex: 1; overflow-y: auto; background: var(--bg); -webkit-overflow-scrolling: touch; }
.screen::-webkit-scrollbar { width: 0; }
.page { display: none; padding: 14px 14px 22px; }
.page.active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Banner ===== */
.banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1450a3, #0c3266 75%);
  color: #fff; padding: 22px 20px; margin-bottom: 14px; min-height: 150px;
  box-shadow: var(--shadow);
}
.banner::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,24,.42), transparent 70%);
}
.banner-logo {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.25);
}
.banner-name { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.banner-slogan { font-size: 13px; color: #c7d6f5; margin-top: 6px; }
.banner-stats { display: flex; gap: 0; margin-top: 16px; position: relative; z-index: 2; }
.banner-stat { flex: 1; text-align: center; }
.banner-stat .v { font-size: 19px; font-weight: 800; color: #fff; }
.banner-stat .l { font-size: 11px; color: #aec3ec; }
.banner-stat + .banner-stat { border-left: 1px solid rgba(255,255,255,.18); }

/* ===== 区块 ===== */
.block { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.block-bar { width: 4px; height: 15px; background: var(--accent); border-radius: 2px; }
.block-title { font-size: 15px; font-weight: 700; }
.block-more { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.intro-text { font-size: 13px; color: var(--text-sub); line-height: 1.8; }

/* ===== 宣传片 ===== */
.video-card {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(120deg, #143e7e, #0a1f44); color: #fff;
  aspect-ratio: 16 / 9; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.video-cover-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 10px;
}
.video-play {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,122,24,.92);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 6px 18px rgba(255,122,24,.5);
}
.video-card .vt { font-size: 15px; font-weight: 700; }
.video-card .vd { font-size: 12px; color: #b9c9ef; }

/* ===== 产品 ===== */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prod-card {
  background: var(--card); border-radius: var(--radius-sm); padding: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.prod-ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
}
.prod-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.prod-desc { font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.chip {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: var(--accent-light); color: var(--accent); font-weight: 600;
}

/* ===== 优势 ===== */
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adv-card { background: var(--card); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); }
.adv-ico {
  width: 36px; height: 36px; border-radius: 9px; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 9px;
}
.adv-title { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.adv-desc { font-size: 12px; color: var(--text-sub); line-height: 1.65; }

/* ===== 荣誉 ===== */
.honor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.honor-item {
  background: linear-gradient(135deg, #fff, #f7f9fd); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px; display: flex; align-items: center; gap: 10px;
}
.honor-medal { font-size: 22px; }
.honor-info { flex: 1; }
.honor-title { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.honor-tag { font-size: 10px; color: var(--accent); background: var(--accent-light); padding: 1px 7px; border-radius: 10px; display: inline-block; margin-top: 4px; }

/* ===== 合作企业 ===== */
.partner-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.partner-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  height: 56px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--text-sub); padding: 6px; box-shadow: var(--shadow);
}

/* ===== 联系 ===== */
.contact-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.contact-key { font-size: 12px; color: var(--text-muted); }
.contact-val { font-size: 13.5px; font-weight: 600; color: var(--text); }
.contact-cta {
  margin-top: 14px; display: block; width: 100%; text-align: center;
  background: var(--accent); color: #fff; padding: 13px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
}

/* ===== 底部 tabBar ===== */
.tabbar {
  height: 56px; background: #fff; border-top: 1px solid var(--border);
  display: flex; flex-shrink: 0; padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; color: var(--text-muted); transition: color .15s;
}
.tab-ico { font-size: 20px; line-height: 1; }
.tab-txt { font-size: 11px; }
.tab.active { color: var(--primary); }
.tab.active .tab-ico { transform: translateY(-1px); }

/* ===== 宣传片弹层 ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(8,12,24,.6);
  display: none; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(3px);
}
.modal-mask.show { display: flex; }
.video-modal {
  background: #0c1630; border-radius: 16px; width: 340px; max-width: 90vw; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.video-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; font-weight: 600;
}
.video-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; opacity: .8; }
.video-body { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.video-placeholder { text-align: center; color: #cdd8f0; }
.video-bigplay { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,122,24,.9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 12px; }
.video-placeholder p { font-size: 13px; }
.video-tip { font-size: 11px; color: #7e8db5; margin-top: 6px; }
