/* BHCC微信小程序 v3.0 - 公共样式 */

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

:root {
  --primary: #8B4513;
  --primary-light: #A0522D;
  --primary-dark: #654321;
  --green: #52c41a;
  --purple: #722ed1;
  --red: #ff4d4f;
  --blue: #1890ff;
  --orange: #faad14;
  --text: #333;
  --text2: #666;
  --text3: #999;
  --bg: #f5f5f5;
  --border: #eee;
  --card: #fff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
}

/* 手机容器 */
.phone { max-width: 414px; margin: 0 auto; min-height: 100vh; }

/* 导航栏 */
.nav { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 15px; background: var(--primary); color: #fff; }
.nav .title { font-size: 17px; font-weight: 600; }
.nav a { color: #fff; text-decoration: none; font-size: 14px; }

/* TabBar */
.tab { position: fixed; bottom: 0; left: 0; right: 0; max-width: 414px; margin: 0 auto; display: flex; height: 50px; background: #fff; border-top: 1px solid var(--border); z-index: 100; }
.tab a { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 10px; color: var(--text3); text-decoration: none; }
.tab a.active { color: var(--primary); }
.tab a .icon { font-size: 24px; margin-bottom: 2px; }

/* 内容区 */
.content { padding-bottom: 60px; }

/* 卡片 */
.card { background: var(--card); border-radius: 8px; margin: 10px 12px; padding: 15px; }

/* 按钮 */
.btn { display: block; width: 100%; height: 44px; line-height: 44px; text-align: center; border: none; border-radius: 22px; font-size: 16px; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-green { background: var(--green); color: #fff; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.tag-green { background: #f6ffed; color: var(--green); }
.tag-orange { background: #fff7e6; color: var(--orange); }
.tag-red { background: #fff2f0; color: var(--red); }
.tag-blue { background: #e6f7ff; color: var(--blue); }
.tag-purple { background: #f9f0ff; color: var(--purple); }

/* 网格 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 15px; background: #fff; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 15px; background: #fff; }

/* 产品卡片 */
.product-card { display: flex; background: #fff; border-radius: 8px; margin: 0 12px 12px; padding: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); text-decoration: none; color: inherit; }
.product-img { width: 100px; height: 100px; border-radius: 6px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-right: 12px; }
.product-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-name { font-size: 15px; font-weight: 500; }
.product-sku { font-size: 12px; color: var(--text3); }
.product-price { font-size: 16px; color: var(--primary); font-weight: 600; }
.price-old { font-size: 12px; color: var(--text3); text-decoration: line-through; margin-left: 6px; }

/* 列表项 */
.list-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #f5f5f5; text-decoration: none; color: inherit; background: #fff; }
.list-item:last-child { border-bottom: none; }
.list-icon { font-size: 20px; margin-right: 12px; }
.list-text { flex: 1; font-size: 15px; }
.list-arrow { color: #ccc; }
.list-badge { background: var(--red); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 10px; margin-right: 8px; }

/* 分割线 */
.divider { height: 10px; background: var(--bg); }

/* 标题 */
.section-title { padding: 15px; font-size: 15px; font-weight: 600; border-bottom: 1px solid #f5f5f5; }
