/* ============================================================
   大熊物联科技 — buy.css  在线购买专属样式
   ============================================================ */

/* =================================================================
   购买入口平台卡片
   ================================================================= */
.buy-page { padding: 64px 0 88px; }

/* 平台卡片 — 横版布局 */
.platform-grid { display: flex; flex-direction: column; gap: 24px; margin-bottom: 64px; }
.platform-card {
  display: flex; flex-direction: row;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* 左侧彩色面板 */
.platform-left {
  width: 230px; min-width: 230px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px 24px; text-align: center; color: #fff;
}
.platform-taobao  .platform-left { background: linear-gradient(150deg, #ff6000, #ffae42); }
.platform-alibaba .platform-left { background: linear-gradient(150deg, #d97a00, #f5ae00); }

.platform-logo {
  width: 80px; height: 80px; border-radius: 20px; margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.platform-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.platform-left h2  { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.platform-left .sub { font-size: 0.8rem; color: rgba(255,255,255,0.85); line-height: 1.5; }
.platform-left .qr-section { margin-top: 22px; }
.platform-left .qr-wrap {
  width: 96px; height: 96px; background: #fff;
  border-radius: 10px; border: none; margin: 0 auto 6px;
  overflow: hidden;
}
.platform-left .qr-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.platform-left .qr-label { font-size: 0.72rem; color: rgba(255,255,255,0.82); }

/* 右侧内容面板 */
.platform-right {
  flex: 1; padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.platform-right p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.8; margin-bottom: 20px; }
.platform-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 28px; }
.platform-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-mid);
}
.platform-feat i { color: #43a047; font-size: 0.85rem; flex-shrink: 0; }

/* 平台按钮颜色 */
.btn-taobao  { background: #ff6900; color: #fff; border-color: #ff6900; }
.btn-taobao:hover  { background: #e05e00; border-color: #e05e00; color: #fff; }
.btn-jd      { background: #e53935; color: #fff; border-color: #e53935; }
.btn-jd:hover      { background: #c62828; border-color: #c62828; color: #fff; }
.btn-alibaba { background: #f39c12; color: #fff; border-color: #f39c12; }
.btn-alibaba:hover { background: #d68910; border-color: #d68910; color: #fff; }

/* 二维码（通用备用，已由 platform-left 覆盖） */
.qr-section { text-align: center; }
.qr-wrap {
  width: 100px; height: 100px; background: var(--bg-light); border: 1px dashed var(--border);
  border-radius: 10px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--border);
}
.qr-label { font-size: 0.78rem; color: var(--text-gray); }

/* =================================================================
   热销产品快选
   ================================================================= */
.hot-products { margin-bottom: 64px; }
.hot-products-title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  padding-bottom: 14px; border-bottom: 2px solid var(--primary-light);
}
.hot-products-title .icon {
  width: 42px; height: 42px; background: var(--accent); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
}
.hot-products-title h2 { font-size: 1.2rem; font-weight: 700; }
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hot-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s;
}
.hot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.hot-card-img { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-light); }
.hot-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hot-card:hover .hot-card-img img { transform: scale(1.06); }
.hot-card-body { padding: 14px 16px 18px; }
.hot-card-body .model { font-size: 0.78rem; color: var(--text-gray); font-family: monospace; margin-bottom: 4px; }
.hot-card-body h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.hot-card-body .hot-price { color: var(--accent); font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.hot-card-btns { display: flex; gap: 8px; }
.hot-card-btns .btn { flex: 1; font-size: 0.8rem; padding: 7px 10px; justify-content: center; }

/* =================================================================
   购买流程
   ================================================================= */
.buy-flow { margin-bottom: 64px; }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow-steps::before {
  content: ''; position: absolute;
  top: 30px; left: calc(10% + 16px); right: calc(10% + 16px);
  height: 2px; background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
  z-index: 0;
}
.flow-step { text-align: center; position: relative; z-index: 1; }
.flow-num {
  width: 60px; height: 60px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(26,111,196,0.35);
  position: relative;
}
.flow-step h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.flow-step p  { font-size: 0.82rem; color: var(--text-gray); line-height: 1.65; }

/* =================================================================
   FAQ 购买问题
   ================================================================= */
.buy-faq { background: var(--bg-light); border-radius: var(--radius-lg); padding: 40px; }
.buy-faq h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }
.buy-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.buy-faq-item { background: #fff; border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--border); }
.buy-faq-item h4 { font-size: 0.93rem; font-weight: 600; margin-bottom: 8px; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.buy-faq-item h4 i { font-size: 0.85rem; }
.buy-faq-item p  { font-size: 0.87rem; color: var(--text-gray); line-height: 1.75; }

/* =================================================================
   响应式
   ================================================================= */
@media (max-width: 1024px) {
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps::before { display: none; }
  .flow-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 768px) {
  .platform-card { flex-direction: column; }
  .platform-left { width: 100%; min-width: unset; padding: 28px 24px; }
  .platform-features { grid-template-columns: 1fr; }
  .hot-grid      { grid-template-columns: repeat(2, 1fr); }
  .flow-steps    { grid-template-columns: 1fr 1fr; }
  .buy-faq-grid  { grid-template-columns: 1fr; }
  .buy-faq       { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hot-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
}
