/* ============================================================
   PREMIOR3D — 建筑可视化企业官网
   自主设计样式系统 | 主色 #0988D6 | 白底为主
   ============================================================ */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background-color: rgba(9, 136, 214, 0.18);
  color: #111;
}

/* ---------- 导航栏 ---------- */
#navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
}

/* ---------- 按钮 ---------- */
.btn-primary {
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(9, 136, 214, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(9, 136, 214, 0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

/* ---------- 服务卡片 ---------- */
.service-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  transform: translateY(-4px);
}

/* ---------- 项目卡片 ---------- */
.project-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.project-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ---------- 流程步骤 ---------- */
.process-step:hover .process-line {
  background: #0988D6;
}

/* ---------- 数字滚动 ---------- */
.stat-number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Section 间距 ---------- */
@media (max-width: 1024px) {
  .py-24 { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .py-24 { padding-top: 60px; padding-bottom: 60px; }
}

/* ---------- 滚动渐入 ---------- */
.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-up    { transform: translateY(28px); }
.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translate(0);
}
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---------- Hero 底部浮动 ---------- */
@keyframes floatDown {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50%      { transform: translate(-50%, 10px); opacity: 1; }
}
.animate-float {
  animation: floatDown 2.6s ease-in-out infinite;
}

/* ---------- 移动端汉堡 ---------- */
#menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 24px;
}

/* ---------- 浮动联系按钮 ---------- */
.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  color: #777;
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  cursor: pointer;
  text-decoration: none;
}
.floating-btn:hover {
  background: #0988D6;
  border-color: #0988D6;
  color: #fff;
  box-shadow: 0 6px 24px rgba(9, 136, 214, 0.35);
  transform: translateX(-2px);
}
.floating-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(0, -50%);
  white-space: nowrap;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 7px 22px 7px 16px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.3s ease;
}
.wechat-btn .wechat-qr {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.wechat-btn:hover .wechat-qr,
.wechat-qr:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.wechat-btn .wechat-qr.qr-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- 图片懒加载 ---------- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(9, 136, 214, 0.35); }
