/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: #fbfbfd;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
}

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

/* ===== Hero ===== */
.hero {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-title {
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1d1d1f 0%, #4a4a4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 20px;
  color: #86868b;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.visitor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #86868b;
}
.visitor-num {
  font-size: 22px;
  font-weight: 600;
  color: #1d1d1f;
  min-width: 2ch;
  text-align: center;
  letter-spacing: -0.02em;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34c759;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ===== 通用标题 ===== */
.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: #1d1d1f;
}

/* ===== 产品矩阵 ===== */
.products-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 120px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  display: block;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04), 0 24px 56px rgba(0,0,0,0.10);
}
.product-visual {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.product-icon {
  font-size: 56px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
  letter-spacing: -0.04em;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
}
.product-card:hover .product-icon {
  opacity: 0;
  transform: scale(0.85);
}
.qr-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.product-card:hover .qr-overlay {
  opacity: 1;
  transform: translateY(0);
}
.qr-box {
  width: 160px; height: 160px;
  background: #f5f5f7;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1a6;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.qr-box img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}
.qr-hint {
  font-size: 11px;
  color: #86868b;
  letter-spacing: 0.02em;
}
.product-body {
  padding: 18px 20px 22px;
}
.product-body h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 10px 0 4px;
  color: #1d1d1f;
}
.product-body p {
  font-size: 13px;
  color: #86868b;
  line-height: 1.5;
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.tag-wechat { background: #07c160; }
.tag-douyin { background: #000; }

/* ===== 底部 ===== */
.footer {
  border-top: 1px solid #e8e8ed;
  padding: 36px 24px;
  text-align: center;
}
.footer-line {
  font-size: 12px;
  color: #86868b;
  line-height: 1.9;
}
.footer-line a {
  color: #86868b;
  transition: color 0.3s ease;
}
.footer-line a:hover { color: #1d1d1f; }
.beian-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* ===== 文章页 ===== */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.article-header {
  margin-bottom: 48px;
  text-align: center;
}
.article-header h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 16px 0 16px;
  color: #1d1d1f;
}
.article-meta {
  font-size: 13px;
  color: #a1a1a6;
}
.article-content {
  font-size: 17px;
  line-height: 1.9;
  color: #1d1d1f;
}
.article-content p {
  margin-bottom: 24px;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: #1d1d1f;
}
.article-content ul {
  margin: 0 0 24px 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  margin: 56px 0 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 8px 20px rgba(0,0,0,0.04);
}
.article-cta .qr-box {
  width: 110px; height: 110px;
  background: #f5f5f7;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1a6;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}
.article-cta .qr-box img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}
.cta-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d1d1f;
}
.cta-text p {
  font-size: 14px;
  color: #86868b;
}
.article-back {
  text-align: center;
  margin-top: 40px;
}
.article-back a {
  font-size: 14px;
  color: #0071e3;
  font-weight: 500;
}
.article-back a:hover { opacity: 0.7; }

/* ===== 返回按钮 ===== */
.back-btn {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.back-btn svg { flex-shrink: 0; }

/* ===== 响应式：平板 ===== */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 56px; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 640px) {
  /* 首页 */
  .product-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 16px; margin-bottom: 24px; }
  .products-section { padding-left: 20px; padding-right: 20px; padding-bottom: 80px; }
  .hero {
    min-height: auto;
    padding: 48px 20px 36px;
  }
  .visitor { font-size: 13px; }
  .visitor-num { font-size: 20px; }

  /* 文章页 */
  .article-page {
    padding: 80px 20px 60px;
  }
  .article-header {
    margin-bottom: 32px;
  }
  .article-header h1 {
    font-size: 26px;
    line-height: 1.35;
    margin: 14px 0 14px;
  }
  .article-meta {
    font-size: 12px;
  }
  .article-content {
    font-size: 16px;
    line-height: 1.85;
  }
  .article-content p {
    margin-bottom: 20px;
  }
  .article-content h2 {
    font-size: 20px;
    margin: 32px 0 14px;
  }
  .article-content ul {
    margin: 0 0 20px 20px;
  }
  .article-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    margin: 40px 0 24px;
    gap: 16px;
  }
  .article-cta .qr-box {
    width: 120px;
    height: 120px;
  }
  .article-back {
    margin-top: 32px;
  }

  /* 返回按钮：手机上只留箭头 */
  .back-btn {
    top: 12px;
    left: 12px;
    padding: 8px;
    border-radius: 50%;
  }
  .back-btn span {
    display: none;
  }

  /* 底部 */
  .footer {
    padding: 28px 20px;
  }
  .footer-line {
    font-size: 11px;
  }
}