/* ============================================
   BuBuSquishy Wholesale — Horizon theme fusion
   字体: Proza Libre (衬线) | 主色: #108474 青绿
   ============================================ */

:root {
  --brand: #108474;
  --brand-dark: #0d6b5f;
  --brand-light: #e6f4f1;
  --ink: #1d1d1f;
  --ink-soft: #555;
  --ink-muted: #888;
  --bg: #faf8f5;
  --card: #ffffff;
  --line: #e8e4de;
  --accent-pink: #e88394;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(16, 132, 116, 0.08);
  --shadow-hover: 0 12px 40px rgba(16, 132, 116, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Proza Libre", "Georgia", serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }

/* ---------- 顶栏 ---------- */
.site-header {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.brand-tag { font-size: 0.75rem; color: var(--ink-muted); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important; padding: 10px 22px;
  border-radius: 999px; font-weight: 600;
}

/* ---------- 首页 Hero ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px; text-align: center; }
.hero h1 {
  font-size: 2.8rem; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15;
  color: var(--ink);
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p { font-size: 1.15rem; color: var(--ink-soft); margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .hero-note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 10px; }

/* ---------- 模式选择卡片 ---------- */
.modes-grid {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px 60px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.mode-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.mode-cover {
  height: 210px; display: flex; align-items: center; justify-content: center;
  position: relative; color: #fff;
}
.mode-cover.mixed { background: linear-gradient(135deg, #108474, #0d6b5f); }
.mode-cover.single { background: linear-gradient(135deg, #2c3e50, #1a2b3a); }
.mode-cover .mode-icon { font-size: 3.4rem; font-weight: 700; opacity: .95; letter-spacing: -1px; }
.mode-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.25); color: #fff;
  padding: 6px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.mode-body { padding: 28px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.mode-body h2 { font-size: 1.45rem; font-weight: 700; margin-bottom: 8px; }
.mode-body .mode-desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.mode-features { list-style: none; margin: 16px 0 22px; }
.mode-features li {
  font-size: .86rem; color: var(--ink-soft); padding: 4px 0 4px 26px; position: relative;
}
.mode-features li::before {
  content: '✓'; position: absolute; left: 2px; top: 4px;
  color: var(--brand); font-weight: 700;
}
.mode-card.single .mode-features li::before { color: #2c3e50; }
.mode-cta {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: #fff !important; text-align: center;
  transition: opacity .2s;
}
.mode-card.mixed .mode-cta { background: var(--brand); }
.mode-card.single .mode-cta { background: #2c3e50; }
.mode-card:hover .mode-cta { opacity: .88; }

/* ---------- 首页说明 ---------- */
.how-it-works {
  max-width: 1200px; margin: 0 auto; padding: 10px 24px 70px;
  text-align: center;
}
.how-it-works h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { padding: 24px; }
.step-num {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: .85rem; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); text-align: center;
  padding: 32px 24px; font-size: .82rem; color: var(--ink-muted);
}
.site-footer a { color: var(--brand); }

/* ---------- 报价页通用 ---------- */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.back-home {
  display: inline-block; font-size: .88rem; font-weight: 500;
  color: var(--ink-soft); margin-bottom: 20px; transition: color .2s;
}
.back-home:hover { color: var(--brand); }
.page-head { text-align: center; padding: 20px 0 30px; }
.page-head h1 { font-size: 2.2rem; font-weight: 700; }
.page-head h1 em { color: var(--brand); font-style: normal; }
.page-head p { color: var(--ink-soft); font-size: 1rem; margin-top: 10px; }
.page-head .tier-hint {
  display: inline-block; margin-top: 16px; padding: 8px 20px;
  background: var(--brand-light); color: var(--brand-dark);
  border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* 工具条：搜索 + 汇总 */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.search-box {
  flex: 1; min-width: 240px; position: relative;
}
.search-box input {
  width: 100%; padding: 13px 18px 13px 44px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: .9rem; background: var(--card);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.search-box::before {
  content: '🔍'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: .95rem; opacity: .6;
}
.cart-pill {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow);
}
.cart-stat { text-align: center; }
.cart-stat-label { font-size: .68rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .4px; }
.cart-stat-value { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.cart-divider { width: 1px; height: 34px; background: var(--line); }

/* 产品网格 */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.product-card.below-moq { border-color: #e8a035; }
.product-card .p-image-wrap {
  position: relative; width: 100%; aspect-ratio: 1;
  background: #f6f4ef; display: flex; align-items: center; justify-content: center;
}
.product-card .p-image-wrap .p-img { width: 100%; height: 100%; object-fit: cover; }
.product-card .p-image-wrap.no-img::after { content: 'No Image'; color: #cfc9c0; font-size: .85rem; }
.p-no {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55);
  color: #fff; padding: 3px 10px; border-radius: 6px; font-size: .72rem;
}
.p-name {
  padding: 14px 16px 6px; font-size: .88rem; font-weight: 500; line-height: 1.45;
  min-height: 46px;
}

/* 价格行 */
.p-prices { display: flex; gap: 6px; padding: 8px 16px 4px; border-top: 1px solid #f0eee9; }
.price { flex: 1; text-align: center; }
.price-qty { font-size: .66rem; color: var(--ink-muted); }
.price-amt { font-size: .88rem; font-weight: 600; color: var(--ink); }
.price-amt .cur { font-size: .7rem; color: var(--ink-muted); font-weight: 400; }

/* 数量输入 */
.p-qty { padding: 8px 16px 16px; }
.p-qty input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: .9rem; text-align: center;
  outline: none; transition: border-color .2s;
}
.p-qty input:focus { border-color: var(--brand); }
.p-qty input.moq-warn { border-color: #e8a035; background: #fff8ef; }

/* 结账抽屉 */
.checkout-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: none; align-items: flex-end; justify-content: center; z-index: 100;
}
.checkout-overlay.open { display: flex; }
.checkout-panel {
  background: var(--card); width: 100%; max-width: 720px;
  border-radius: 20px 20px 0 0; padding: 28px 28px 24px;
  max-height: 88vh; overflow-y: auto;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.checkout-panel h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; }
.checkout-panel h3 em { color: var(--brand); font-style: normal; }
.order-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.order-table th { padding: 10px 8px; text-align: left; border-bottom: 2px solid var(--line); color: var(--ink-soft); font-size: .8rem; }
.order-table td { padding: 10px 8px; border-bottom: 1px solid #f0eee9; vertical-align: top; }
.order-total { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; }
.order-total .lbl { font-size: .95rem; color: var(--ink-soft); }
.order-total .amt { font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.order-total .amt.empty { color: #bbb; }
.tier-banner {
  background: var(--brand-light); border-radius: 10px; padding: 12px 16px;
  margin: 4px 0 16px; font-size: .88rem; color: var(--brand-dark); font-weight: 600;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: .92rem; outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.btn {
  padding: 13px 30px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 600; transition: all .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 成功提示 */
.success-wrap { text-align: center; padding: 30px 20px; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
}
.success-wrap h4 { font-size: 1.2rem; margin-bottom: 8px; }
.success-wrap p { font-size: .9rem; color: var(--ink-soft); }

/* 响应式 */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 600px) {
  .modes-grid, .steps { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 1.7rem; }
  .nav-links { display: none; }
  .site-header { padding-top: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .cart-pill { justify-content: center; }
}
