/* ===== Base ===== */
@font-face {
  font-family: 'Alimama ShuHeiTi';
  src: url('../fonts/AlimamaShuHeiTi-Bold.woff2') format('woff2'),
       url('../fonts/AlimamaShuHeiTi-Bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  overflow-x: hidden;
  background: #fff;
}

/* ===== 固定悬浮导航栏 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Alimama ShuHeiTi', 'PingFang SC', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  transition: color 0.3s;
}

.brand { white-space: nowrap; }

.nav { display: flex; gap: 48px; }

/* 汉堡按钮:桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.site-header.on-hero .nav-toggle span { background: #fff; }

.nav-link {
  position: relative;
  font-size: 20px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active { font-weight: 600; color: #179aff; }

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: #179aff;
}

/* 首页(深色大图)上: 导航透明+白字 */
.site-header.on-hero {
  background: transparent;
  box-shadow: none;
}
.site-header.on-hero .brand,
.site-header.on-hero .nav-link { color: #fff; }
.site-header.on-hero .nav-link:hover,
.site-header.on-hero .nav-link.active { color: #fff; }
.site-header.on-hero .nav-link.active::after { background: #fff; }

/* ===== 首页 (纯照片背景 + 真实文案层, 随窗口自适应) ===== */
.hero-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('../picture/home-hero-bg.png?v=18') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 右侧照片较空处偏暗一点, 保证白字可读 */
.hero-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 100px 24px 40px;
  max-width: 1100px;
}

.hero-title {
  font-family: 'Alimama ShuHeiTi', 'PingFang SC', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: clamp(16px, 2.4vw, 32px);
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
  margin-bottom: clamp(28px, 4vw, 56px);
}

.hero-btns {
  display: flex;
  gap: clamp(12px, 1.6vw, 24px);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1.1vw, 16px) clamp(24px, 2.8vw, 40px);
  border: 2px solid #fff;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}

.hero-btn img { width: 1.2em; height: 1.2em; object-fit: contain; }

.hero-btn:hover {
  background: #fff;
  color: #179aff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.hero-btn:hover img { filter: brightness(0) saturate(100%) invert(52%) sepia(90%) saturate(2000%) hue-rotate(185deg); }

/* ===== 功能/场景屏 (裁去实体导航后 1440x720 = 2:1) ===== */
.design-screen {
  width: 100%;
  aspect-ratio: 1440 / 720;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* 移动端文字内容(桌面默认隐藏) */
.mobile-content {
  display: none;
}

/* ===== 联系我们 (手写, 亮蓝底) ===== */
.contact-screen {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background: linear-gradient(120deg, #179aff 0%, #4aa3ff 55%, #2e8fff 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-watermark {
  position: absolute;
  right: -2%;
  bottom: -6%;
  font-family: 'Alibaba PuHuiTi', 'PingFang SC', sans-serif;
  font-size: 220px;
  font-weight: 700;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.contact-body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 120px 60px 40px;
}

.contact-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-info {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 56px;
  opacity: 0.95;
}

.qrcodes {
  display: flex;
  gap: 60px;
}

.qr-item { text-align: center; }

.qr-img {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.qr-img img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.qr-img { cursor: zoom-in; transition: transform 0.2s; }
.qr-img:hover { transform: translateY(-4px); }

/* ===== 二维码放大灯箱 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 420px);
  max-height: 75vh;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-tip {
  margin-top: 18px;
  color: #fff;
  font-size: 15px;
  opacity: 0.9;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.35); }

.qr-item p {
  margin-top: 14px;
  font-size: 15px;
  opacity: 0.95;
}

.contact-footer {
  position: relative;
  z-index: 1;
  padding: 24px 60px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  line-height: 2;
  opacity: 0.9;
}

.contact-footer a {
  color: #fff;
  text-decoration: none;
}

.contact-footer a:hover { text-decoration: underline; }

.footer-icons {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 6px;
}

.footer-icons a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-icons img { width: 16px; height: 16px; object-fit: contain; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  /* Header: 汉堡菜单 */
  .header-inner { padding: 0 20px; }
  .brand { font-size: 18px; }
  .nav-toggle { display: flex; }

  /* 内联nav -> 下拉面板 */
  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 320px; }
  .nav-link {
    color: #333 !important;
    font-size: 17px;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-link.active::after { display: none; }
  .nav-link.active { color: #179aff !important; }

  /* 汉堡变X */
  .nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .nav-toggle.open span { background: #333; }

  /* Hero */
  .hero-inner { padding: 80px 20px 30px; }

  /* 功能屏:移动端一屏一页(满高),隐藏PC整图,改用渐变底+大文案+APP手机图 */
  .design-screen {
    background-image: none !important;
    aspect-ratio: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 24px 36px;
    position: relative;
    overflow-x: hidden;
  }
  /* 漂浮装饰小球(呼应PC设计的俏皮色块) */
  .design-screen::before,
  .design-screen::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.55;
  }
  .design-screen::before {
    width: 130px; height: 130px;
    top: 12%; left: -30px;
    background: rgba(255, 255, 255, 0.6);
  }
  .design-screen::after {
    width: 90px; height: 90px;
    bottom: 14%; right: -20px;
    background: rgba(255, 255, 255, 0.5);
  }
  .mobile-content { position: relative; z-index: 1; }

  .mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 480px;
  }
  .mc-text h2 {
    font-family: 'Alimama ShuHeiTi', 'PingFang SC', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.35;
    color: #2b2b2b;
    margin-bottom: 12px;
  }
  .mc-text p {
    font-size: clamp(15px, 4.2vw, 19px);
    font-weight: 400;
    color: #555;
    margin-bottom: clamp(20px, 5vw, 32px);
  }
  .mc-phone {
    width: auto;
    height: clamp(320px, 50vh, 540px);
    max-width: 78vw;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    background: #fff;
  }
  .mc-phone img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }

  /* 各屏渐变底色(呼应设计图) */
  .feat-1 {
    background-image:
      radial-gradient(circle at 82% 12%, #7fd8ff 0%, rgba(127,216,255,0) 42%),
      radial-gradient(circle at 12% 88%, #a6ecff 0%, rgba(166,236,255,0) 46%),
      linear-gradient(160deg, #ade8ff 0%, #d4f2ff 50%, #b9e6ff 100%) !important;
  }
  .feat-2 {
    background-image:
      radial-gradient(circle at 82% 12%, #ffb0c4 0%, rgba(255,176,196,0) 42%),
      radial-gradient(circle at 12% 88%, #ffd0dd 0%, rgba(255,208,221,0) 46%),
      linear-gradient(160deg, #ffc6d2 0%, #ffe0e7 50%, #ffcdd9 100%) !important;
  }
  .feat-3 {
    background-image:
      radial-gradient(circle at 82% 12%, #8fe89a 0%, rgba(143,232,154,0) 42%),
      radial-gradient(circle at 12% 88%, #c2f4c8 0%, rgba(194,244,200,0) 46%),
      linear-gradient(160deg, #b8f0bd 0%, #d9f7dc 50%, #c3f0c8 100%) !important;
  }
  .feat-4 {
    background-image:
      radial-gradient(circle at 82% 12%, #f2e77a 0%, rgba(242,231,122,0) 42%),
      radial-gradient(circle at 12% 88%, #fff4b0 0%, rgba(255,244,176,0) 46%),
      linear-gradient(160deg, #fbf09e 0%, #fff8d0 50%, #fdf1a6 100%) !important;
  }

  /* 场景事例屏:标题+竖排卡片(信息与PC一致:标签+@用户故事) */
  .scenes-sec {
    background-image: linear-gradient(160deg, #ffe9c2 0%, #fff4db 100%) !important;
    min-height: auto;
    display: block;
    padding: 96px 20px 48px;
  }
  .scenes-sec .mobile-content { max-width: 560px; margin: 0 auto; display: block; }
  .scenes-sec > .mobile-content > h2 {
    font-family: 'Alimama ShuHeiTi', 'PingFang SC', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 8vw, 38px);
    color: #2b2b2b;
    text-align: center;
    margin-bottom: 28px;
  }
  .scene-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .sc-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    text-align: left;
  }
  .sc-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
  }
  .sc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .sc-tags .tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
  }
  .tag-purple { background: #efeaff; color: #7b5cf5; }
  .tag-green  { background: #e3f8ee; color: #1fae74; }
  .tag-blue   { background: #e6f2ff; color: #2e8fff; }
  .tag-red    { background: #ffeaea; color: #f0555a; }
  .tag-orange { background: #fff0e0; color: #f0902a; }
  .tag-brown  { background: #f2e9e2; color: #a9764e; }
  .sc-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #444;
  }

  /* Contact */
  .contact-body { padding: 100px 20px 32px; }
  .contact-title { font-size: 28px; }
  .contact-info { font-size: 15px; }
  .qrcodes { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .qr-img { width: 92px; height: 92px; padding: 7px; }
  .qr-item p { font-size: 13px; }
  .contact-watermark { font-size: 100px; right: -10%; }
  .contact-footer { padding: 20px; font-size: 12px; }
  .footer-icons { flex-direction: column; gap: 8px; align-items: flex-start; }
}
