/* ============================================================
   车间报工宝 - 一页式落地页样式
   Workshop Reporting Mini Program - Landing Page Styles
   主色: #10B981 (绿色)  背书色: #2563EB (深蓝)  卖点色: #F59E0B (琥珀)
   ============================================================ */

/* ===== CSS 变量 / Variables ===== */
:root {
  --bg-green: #10B981;
  --bg-green-dark: #059669;
  --bg-green-light: #D1FAE5;
  --bg-green-bg: #ECFDF5;
  --bg-blue: #2563EB;
  --bg-blue-dark: #1D4ED8;
  --bg-amber: #F59E0B;
  --bg-amber-light: #FEF3C7;
  --bg-gray-50: #F9FAFB;
  --bg-gray-100: #F3F4F6;
  --bg-gray-200: #E5E7EB;
  --bg-gray-300: #D1D5DB;
  --bg-gray-500: #6B7280;
  --bg-gray-700: #374151;
  --bg-gray-800: #1F2937;
  --bg-gray-900: #111827;
  --bg-white: #FFFFFF;
  --bg-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --bg-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --bg-shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --bg-radius: 12px;
  --bg-radius-lg: 16px;
}

/* ===== 全局重置 / Global Reset ===== */
.baogong-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--bg-gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.baogong-page *,
.baogong-page *::before,
.baogong-page *::after {
  box-sizing: border-box;
}

/* ===== 容器 / Container ===== */
.bg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 按钮 / Buttons ===== */
.bg-btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.bg-btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.bg-btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.bg-btn-block {
  display: block;
  width: 100%;
}

.bg-btn-green {
  background: var(--bg-green);
  color: #fff;
  border-color: var(--bg-green);
}

.bg-btn-green:hover {
  background: var(--bg-green-dark);
  border-color: var(--bg-green-dark);
  color: #fff;
  text-decoration: none;
}

.bg-btn-outline-green {
  background: transparent;
  color: var(--bg-green);
  border-color: var(--bg-green);
}

.bg-btn-outline-green:hover {
  background: var(--bg-green);
  color: #fff;
  text-decoration: none;
}

.bg-btn-white {
  background: #fff;
  color: var(--bg-green);
  border-color: #fff;
}

.bg-btn-white:hover {
  background: var(--bg-gray-100);
  color: var(--bg-green-dark);
  text-decoration: none;
}

.bg-btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.bg-btn-outline-white:hover {
  background: #fff;
  color: var(--bg-green);
  text-decoration: none;
}

/* ===== 顶栏 / Top Bar ===== */
.bg-header {
  background: #fff;
  border-bottom: 1px solid var(--bg-gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.bg-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.bg-logo {
  height: 52px;
  width: auto;
}

.bg-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-green-dark);
  white-space: nowrap;
}

/* ===== Hero 主视觉 / Hero ===== */
.bg-hero {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 50%, #F0FDF4 100%);
  padding: 50px 0 60px;
}

.bg-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.bg-badge-green {
  background: var(--bg-green-light);
  color: var(--bg-green-dark);
}

.bg-hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--bg-gray-900);
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.bg-hero-subtitle {
  font-size: 20px;
  color: var(--bg-gray-700);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.bg-hero-features {
  margin-bottom: 24px;
}

.bg-hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--bg-gray-700);
  margin-bottom: 10px;
}

.bg-hero-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--bg-green);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.bg-hero-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.bg-price-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--bg-amber);
  line-height: 1;
}

.bg-price-symbol {
  font-size: 24px;
  font-weight: 600;
}

.bg-price-unit {
  font-size: 16px;
  color: var(--bg-gray-500);
}

.bg-hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bg-hero-cta-note {
  font-size: 14px;
  color: var(--bg-gray-500);
}

.bg-phone {
  width: 240px;
  height: 440px;
  background: #1F2937;
  border-radius: 38px;
  padding: 12px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.bg-phone-notch {
  width: 100px;
  height: 24px;
  background: #1F2937;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.bg-phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #10B981 0%, #059669 40%, #047857 100%);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-phone-content {
  text-align: center;
  color: #fff;
}

.bg-phone-icon {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bg-phone-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 2px;
}

.bg-phone-btn {
  display: inline-block;
  background: #fff;
  color: var(--bg-green);
  padding: 8px 24px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== 通用区块 / Common Section ===== */
.bg-section {
  padding: 72px 0;
}

.bg-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.bg-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--bg-gray-900);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.bg-section-desc {
  font-size: 18px;
  color: var(--bg-gray-500);
  margin: 0;
  line-height: 1.6;
}

/* ===== 卡片网格 / Card Grid ===== */
.bg-card-grid {
  display: grid;
  gap: 24px;
}

.bg-card-4 {
  grid-template-columns: repeat(4, 1fr);
}

.bg-card-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== 痛点卡片 / Pain Cards ===== */
.bg-pain {
  background: var(--bg-white);
}

.bg-pain-card {
  background: #fff;
  border: 1px solid var(--bg-gray-200);
  border-radius: var(--bg-radius);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bg-pain-card:hover {
  box-shadow: var(--bg-shadow-lg);
  transform: translateY(-2px);
}

.bg-pain-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.bg-pain-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-gray-900);
  margin: 0 0 10px 0;
}

.bg-pain-desc {
  font-size: 14px;
  color: var(--bg-gray-500);
  margin: 0;
  line-height: 1.6;
}

/* ===== 方案功能卡片 / Solution Cards ===== */
.bg-solution {
  background: var(--bg-gray-50);
}

.bg-func-card {
  background: #fff;
  border: 1px solid var(--bg-gray-200);
  border-radius: var(--bg-radius);
  padding: 28px 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bg-func-card:hover {
  box-shadow: var(--bg-shadow-lg);
  transform: translateY(-2px);
}

.bg-func-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.bg-icon-green {
  background: var(--bg-green-bg);
  color: var(--bg-green);
}

.bg-func-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-gray-900);
  margin: 0 0 10px 0;
}

.bg-func-desc {
  font-size: 14px;
  color: var(--bg-gray-500);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.bg-func-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bg-func-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--bg-gray-700);
  margin-bottom: 8px;
  line-height: 1.5;
}

.bg-func-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--bg-green-light);
  border-radius: 2px;
}

.bg-func-list li:last-child {
  margin-bottom: 0;
}

/* ===== 差异化卡片 / Differentiation Cards ===== */
.bg-diff {
  background: var(--bg-white);
}

.bg-diff-card {
  background: #fff;
  border: 2px solid var(--bg-gray-200);
  border-radius: var(--bg-radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bg-diff-card:hover {
  border-color: var(--bg-green);
  box-shadow: var(--bg-shadow-lg);
}

.bg-diff-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.bg-num-amber {
  background: var(--bg-amber-light);
  color: var(--bg-amber);
}

.bg-diff-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bg-gray-900);
  margin: 0 0 10px 0;
}

.bg-diff-desc {
  font-size: 14px;
  color: var(--bg-gray-500);
  margin: 0;
  line-height: 1.6;
}

/* ===== 信任区 / Trust Section ===== */
.bg-trust {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #fff;
}

.bg-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bg-trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.bg-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bg-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.bg-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

.bg-trust-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #fff;
}

.bg-trust-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 20px 0;
  line-height: 1.7;
}

.bg-trust-link {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.bg-trust-link:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

/* ===== 定价 / Pricing ===== */
.bg-pricing {
  background: var(--bg-gray-50);
}

.bg-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.bg-price-card {
  background: #fff;
  border: 2px solid var(--bg-gray-200);
  border-radius: var(--bg-radius-lg);
  padding: 24px 18px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bg-price-card:hover {
  box-shadow: var(--bg-shadow-lg);
}

.bg-price-popular {
  border-color: var(--bg-green);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}

.bg-price-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 10px;
}

.bg-price-header {
  margin-bottom: 10px;
}

.bg-price-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-gray-700);
}

.bg-price-body {
  margin-bottom: 14px;
}

.bg-price-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--bg-gray-900);
  line-height: 1;
}

.bg-price-num .bg-price-symbol {
  font-size: 16px;
}

.bg-price-per {
  display: block;
  font-size: 12px;
  color: var(--bg-gray-500);
  margin-top: 2px;
}

.bg-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  text-align: left;
  flex-grow: 1;
}

.bg-price-features li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  color: var(--bg-gray-700);
  margin-bottom: 7px;
  line-height: 1.4;
}

.bg-price-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bg-green);
  font-weight: 700;
}

/* ===== FAQ / FAQ ===== */
.bg-faq {
  background: var(--bg-white);
}

.bg-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.bg-faq-item {
  border: 1px solid var(--bg-gray-200);
  border-radius: var(--bg-radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.bg-faq-item[open] {
  border-color: var(--bg-green);
}

.bg-faq-q {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  background: #fff;
  transition: background 0.2s;
}

.bg-faq-q:hover {
  background: var(--bg-gray-50);
}

.bg-faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--bg-green);
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.bg-faq-item[open] .bg-faq-q::after {
  content: '\2212';
}

.bg-faq-q::-webkit-details-marker {
  display: none;
}

.bg-faq-a {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--bg-gray-700);
  margin: 0;
  line-height: 1.7;
}

/* ===== 收尾CTA / Closing CTA ===== */
.bg-cta {
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #34D399 100%);
  padding: 36px 0 44px;
}

.bg-cta-card {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.bg-cta-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.bg-cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.bg-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.bg-cta-qr {
  margin-top: 0;
}

.bg-cta-qr img {
  display: block;
  margin: 0 auto 12px auto;
}

.bg-cta-phone {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #FBBF24 !important;
  text-decoration: none;
  margin-top: 6px;
  transition: opacity 0.2s;
}

.bg-cta-phone:hover {
  opacity: 0.8;
  color: #FFF !important;
  text-decoration: none;
}

.bg-cta-note {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ===== 底部 / Footer ===== */
.bg-footer {
  background: var(--bg-gray-900);
  padding: 24px 0;
}

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

.bg-footer-text {
  font-size: 13px;
  color: var(--bg-gray-500);
  margin: 0;
}

.bg-footer-link {
  color: var(--bg-blue);
  text-decoration: none;
  font-weight: 600;
}

.bg-footer-link:hover {
  color: #60A5FA;
  text-decoration: underline;
}

/* ============================================================
   响应式 / Responsive (Mobile-First)
   ============================================================ */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
  .bg-card-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .bg-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bg-hero-feature {
    justify-content: center;
  }

  .bg-hero-price {
    justify-content: center;
  }

  .bg-hero-cta {
    justify-content: center;
  }

  .bg-trust-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .bg-trust-stats {
    max-width: 400px;
    margin: 0 auto;
  }

  .bg-phone {
    width: 200px;
    height: 370px;
    border-radius: 30px;
    padding: 10px;
  }

  .bg-phone-screen {
    border-radius: 22px;
  }

  .bg-phone-icon {
    font-size: 48px;
  }

  .bg-phone-label {
    font-size: 14px;
  }

  .bg-phone-btn {
    padding: 7px 20px;
    font-size: 12px;
  }
}

/* Mobile: <= 640px */
@media (max-width: 640px) {
  .bg-hero {
    padding: 40px 0 50px;
  }

  .bg-hero-title {
    font-size: 32px;
  }

  .bg-hero-subtitle {
    font-size: 16px;
  }

  .bg-price-amount {
    font-size: 32px;
  }

  .bg-section {
    padding: 48px 0;
  }

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

  .bg-section-desc {
    font-size: 15px;
  }

  .bg-section-header {
    margin-bottom: 32px;
  }

  .bg-card-4,
  .bg-card-3 {
    grid-template-columns: 1fr;
  }

  .bg-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .bg-cta-title {
    font-size: 24px;
  }

  .bg-cta-desc {
    font-size: 15px;
  }

  .bg-cta-btns {
    flex-direction: column;
  }

  .bg-cta-btns .bg-btn {
    width: 100%;
  }

  .bg-trust-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .bg-stat-num {
    font-size: 28px;
  }

  .bg-faq-q {
    font-size: 14px;
    padding: 14px 18px;
  }

  .bg-faq-a {
    font-size: 13px;
    padding: 0 18px 16px;
  }

  .bg-phone {
    width: 180px;
    height: 330px;
    border-radius: 26px;
    padding: 8px;
  }

  .bg-phone-screen {
    border-radius: 18px;
  }

  .bg-phone-notch {
    width: 70px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }

  .bg-phone-icon {
    font-size: 40px;
  }

}

/* Extra small: <= 400px */
@media (max-width: 400px) {
  .bg-hero-title {
    font-size: 26px;
  }

  .bg-hero-subtitle {
    font-size: 14px;
  }

  .bg-hero-feature {
    font-size: 13px;
  }

  .bg-price-amount {
    font-size: 28px;
  }

  .bg-section-title {
    font-size: 20px;
  }

  .bg-pain-title,
  .bg-func-title,
  .bg-diff-title {
    font-size: 16px;
  }

  .bg-cta-title {
    font-size: 20px;
  }

  .bg-phone {
    width: 160px;
    height: 290px;
    border-radius: 22px;
  }

  .bg-phone-screen {
    border-radius: 16px;
  }

  .bg-phone-icon {
    font-size: 36px;
  }
}
