/* ========================================
   帮无忧官网 - 响应式样式
   品牌红: #FF2442  辅助橙: #FF7E29
   ======================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 微信遮罩 ---------- */
.wechat-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  padding-top: 20px;
  padding-right: 30px;
}

.wechat-mask-content {
  color: #fff;
  text-align: center;
  font-size: 18px;
  line-height: 2;
}

.wechat-arrow {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 24px solid #fff;
  margin: 0 0 16px auto;
  margin-right: 10px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.navbar-inner {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-right: 10px;
}

.navbar-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}

.navbar-menu {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.navbar-menu li {
  margin-left: 32px;
}

.nav-link {
  font-size: 15px;
  color: #555;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #FF2442;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF2442;
  transition: width 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

/* 汉堡菜单 */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar-toggle.active span:nth-child(1) {
  -webkit-transform: rotate(45deg) translate(5px, 5px);
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  -webkit-transform: rotate(-45deg) translate(5px, -5px);
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  min-height: 600px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.hero-inner {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-text {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  max-width: 560px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 36px;
}

.hero-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.hero-visual {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 60px;
}

.hero-phone-mockup {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #fff5f6 0%, #fff0e6 100%);
  border-radius: 40px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(255, 36, 66, 0.1);
}

.hero-app-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero-bg-decor {
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 36, 66, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- 按钮样式 ---------- */
.btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #FF2442 0%, #FF7E29 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 36, 66, 0.3);
}

.btn-primary:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 36, 66, 0.4);
}

.btn-primary:active {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.btn-disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  -webkit-transform: none;
  transform: none;
  box-shadow: none;
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* ---------- 二维码容器 ---------- */
.qrcode-wrapper {
  text-align: center;
}

.qrcode-box {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.qrcode-tip {
  margin-top: 10px;
  font-size: 13px;
  color: #999;
}

/* ---------- 功能亮点 ---------- */
.features {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  font-size: 16px;
  color: #888;
  margin-bottom: 48px;
}

.features-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -16px;
}

.feature-card {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 300px;
  flex: 1 1 300px;
  margin: 0 16px 32px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.feature-card:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-img-wrapper {
  width: 100%;
  height: 180px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 12px;
  background: #fafafa;
}

.feature-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  text-align: center;
}

.feature-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* ---------- 下载区 ---------- */
.download {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff5f6 0%, #fff0e6 100%);
}

.download-inner {
  text-align: center;
}

.download-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(255, 36, 66, 0.12);
}

.download-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.download-desc {
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
}

.download-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 32px 0;
  background: #1a1a2e;
  color: #aaa;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin-right: 8px;
}

.footer-info {
  margin-bottom: 12px;
}

.footer-company {
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-icp a {
  font-size: 13px;
  color: #888;
  transition: color 0.2s;
}

.footer-icp a:hover {
  color: #FF2442;
}

.footer-copyright {
  font-size: 12px;
  color: #666;
}

/* ========================================
   响应式
   ======================================== */

/* 平板 */
@media (max-width: 1023px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-actions {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  .hero-visual {
    margin-left: 0;
    margin-top: 40px;
  }

  .hero-phone-mockup {
    width: 220px;
    height: 220px;
  }

  .hero-app-icon {
    width: 110px;
    height: 110px;
  }

  .features-grid {
    margin: 0 -12px;
  }

  .feature-card {
    -webkit-flex: 1 1 240px;
    flex: 1 1 240px;
    margin: 0 12px 24px;
  }
}

/* 手机 */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  /* 导航 */
  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px 0;
  }

  .navbar-menu.open {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }

  .navbar-menu li {
    margin-left: 0;
    text-align: center;
    padding: 12px 0;
  }

  .nav-link {
    font-size: 16px;
  }

  /* Hero */
  .hero {
    padding: 88px 0 48px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-visual {
    margin-top: 32px;
  }

  .hero-phone-mockup {
    width: 180px;
    height: 180px;
    border-radius: 32px;
  }

  .hero-app-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
  }

  /* 功能亮点 */
  .features {
    padding: 56px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-desc {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .features-grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    margin: 0;
  }

  .feature-card {
    margin: 0 0 20px;
    padding: 24px 20px;
  }

  .feature-img-wrapper {
    height: 150px;
  }

  .feature-title {
    font-size: 18px;
  }

  /* 下载区 */
  .download {
    padding: 56px 0;
  }

  .download-title {
    font-size: 22px;
  }

  .download-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 15px;
  }
}
