/* 商城前台样式 */
.shop-header {
  background: linear-gradient(160deg, var(--brown-deep), var(--brown));
  color: #f6ecda;
  padding: 16px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-brand { display: flex; align-items: center; gap: 10px; }
.shop-logo { font-size: 26px; }
.shop-title { font-family: var(--serif); font-size: 17px; letter-spacing: 1px; }
.shop-sub { font-size: 11px; color: var(--gold-soft); margin-top: 1px; }
.shop-my { font-size: 13px; color: #f0e4cd; padding: 6px 12px; border: 1px solid rgba(236,220,184,.35); border-radius: 999px; }

.shop-main { max-width: 560px; margin: 0 auto; padding: 0 14px 120px; }

.shop-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 22px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cat-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  margin-bottom: 6px;
}
.cat-name { font-size: 13px; color: var(--ink); }

.shop-section { margin-bottom: 24px; }
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-deep);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-cover {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--muted);
  background-size: cover;
  background-position: center;
}
.product-info { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.product-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.product-price-row { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.product-price { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--clay); }
.product-price .unit { font-size: 12px; font-weight: normal; }
.product-price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.product-badge { display: inline-block; background: var(--clay); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: auto; }

.shop-footer { text-align: center; padding: 24px 16px 100px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-link { color: var(--muted); text-decoration: none; }

/* 详情页 */
.detail-cover { width: 100%; aspect-ratio: 1; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; font-size: 96px; background-size: cover; background-position: center; }
.detail-body { padding: 16px; }
.detail-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.detail-price { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--clay); margin: 10px 0; }
.detail-desc { color: var(--ink-soft); line-height: 1.7; white-space: pre-wrap; }
.detail-specs { margin-top: 14px; }
.detail-specs .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.detail-bottom { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }

/* 下单/支付 */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.order-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.order-item:last-child { border-bottom: none; }
.order-thumb { width: 60px; height: 60px; border-radius: 10px; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.order-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.order-summary .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.order-summary .total { font-size: 18px; font-weight: 700; color: var(--clay); border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 12px; }

.pay-box { text-align: center; padding: 24px 16px; }
.pay-amount { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--clay); margin: 10px 0; }
.pay-qr { max-width: 240px; width: 100%; margin: 20px auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.pay-tip { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 16px 0; }

.order-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #f5f5f5; color: #757575; }
.status-shipped { background: #e3f2fd; color: #1565c0; }
.status-done { background: #e8f5e9; color: #2e7d32; }

.video-box { background: #000; border-radius: 12px; overflow: hidden; margin: 12px 0; }
.video-box video { width: 100%; display: block; }

/* ============================================================
   首页 Banner / 悬浮 / 底部栏 / 弹窗
   ============================================================ */

/* Banner 区（替代原褐色条） */
.shop-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 750 / 420;
  background: #2c211a;
  overflow: hidden;
}
.shop-banner .banner-default,
.shop-banner .banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-my {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 14px;
  z-index: 2;
  font-size: 12px;
  color: #f6ecda;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(236, 220, 184, 0.45);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.banner-my:active { background: rgba(0, 0, 0, 0.5); }

/* Banner 右下角免费领资料按钮 */
.banner-gift {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  font-size: 12px;
  color: #fff;
  padding: 8px 14px;
  background: linear-gradient(135deg, #d4a857, #92672c);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(146, 103, 44, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: giftPulse 2.4s ease-in-out infinite;
}
.banner-gift:active { transform: scale(0.96); }
@keyframes giftPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(146, 103, 44, 0.5); }
  50% { box-shadow: 0 4px 20px rgba(212, 168, 87, 0.8); }
}

/* 资料领取弹窗（与咨询弹窗区分：金色标题、营销文案） */
.gift-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #92672c;
  margin-bottom: 10px;
  text-align: center;
}
.gift-subtitle {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}
.gift-img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* 悬浮微信按钮 */
.float-wechat {
  position: fixed;
  right: 14px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #09BB07;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(9, 187, 7, 0.42);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.float-wechat:active { transform: scale(0.92); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(9, 187, 7, 0.42); }
  50% { box-shadow: 0 6px 28px rgba(9, 187, 7, 0.62); }
}

/* 底部固定栏 */
.bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 -4px 18px rgba(67, 48, 31, 0.08);
}
/* 三按钮布局：左右 + 中间最醒目 */
.bottom-bar-btn {
  flex: 1;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: #09BB07;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 6px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(9, 187, 7, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bottom-bar-btn:active { transform: scale(0.96); }

/* 中间主按钮：更宽更醒目 */
.bottom-bar-primary {
  flex: 1.5;
  font-size: 14px;
  padding: 12px 6px;
  box-shadow: 0 4px 14px rgba(9, 187, 7, 0.45);
}

/* 右侧教师入口：低调灰色纯文字，无底色无边框（学生不易察觉） */
.bottom-bar-ghost-link {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 4px 10px 8px;
  opacity: 0.55;
  white-space: nowrap;
}
.bottom-bar-ghost-link:active { opacity: 0.9; }

/* ====== SEO 静态内容区 ====== */
.seo-section {
  padding: 18px 16px 8px;
  color: var(--ink-soft);
}
.seo-section h1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.5;
}
.seo-section h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-deep);
  margin: 14px 0 6px;
}
.seo-section p {
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 4px;
}
.seo-section strong { color: var(--brown-deep); font-weight: 600; }

/* 通用遮罩 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 14, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.22s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 微信二维码浮层 */
.wechat-card {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 28px 22px 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  animation: scaleIn 0.24s ease;
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.wechat-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 16px;
}
.wechat-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wechat-qr img { width: 100%; height: 100%; object-fit: contain; }
.wechat-qr-empty {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  padding: 16px;
  text-align: center;
}
.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.wechat-id-label { color: var(--muted); }
.wechat-id-value { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.wechat-copy-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.wechat-copy-btn:active { background: var(--bg-deep); }
.wechat-tip { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* 欢迎弹窗 */
.welcome-card {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 320px;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  animation: scaleIn 0.24s ease;
}
.welcome-img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 180px;
  background: linear-gradient(135deg, #f5ede0, #e8d9c0);
}
.welcome-action {
  padding: 14px 20px 20px;
  text-align: center;
}
.welcome-cta-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #09BB07;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(9, 187, 7, 0.35);
}
.welcome-cta-btn:active { transform: scale(0.97); }
.welcome-default {
  padding: 32px 22px 22px;
  text-align: center;
}
.welcome-emoji { font-size: 48px; margin-bottom: 8px; }
.welcome-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.4;
  margin-bottom: 6px;
}
.welcome-sub { font-size: 13px; color: var(--ink-soft); }
.welcome-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto;
}
.welcome-text {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.welcome-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  background: #09BB07;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(9, 187, 7, 0.4);
}
.welcome-btn:active { transform: scale(0.97); }

