/* ========================================================================
   苗水堂 H5 — 全量样式表
   移动端优先 · 主题色 #2d8c5a(绿) / #c9a25d(金)
   1rpx = 0.1333vw（小程序基准 750rpx = 100vw），此处统一使用 px 适配
   ======================================================================== */

:root {
  --primary: #2d8c5a;
  --primary-light: #e8f5ed;
  --primary-dark: #1a6b3f;
  --accent: #c9a25d;          /* 金色 */
  --accent-light: #fbf3e4;
  --accent-dark: #a9843f;
  --danger: #e74c3c;
  --warning: #e8a838;
  --success: #2ba471;
  --text: #1a1a2e;
  --text-secondary: #666;
  --text-hint: #999;
  --bg: #f5f6fa;
  --bg-card: #ffffff;
  --border: #e8ecf1;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 6px 24px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --nav-h: 48px;
  --tab-h: 54px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #e9ebf0;
  line-height: 1.6;
}

body { overflow: hidden; }

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; margin: 0; padding: 0; }

/* ============ App 容器（移动端居中） ============ */
#app {
  position: relative;
  width: 100%;
  max-width: 750px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0,0,0,0.08);
}

/* ============ 顶部标题栏 ============ */
.nav-bar {
  flex: 0 0 var(--nav-h);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--nav-h) + env(safe-area-inset-top));
}
.nav-back {
  width: 36px; height: 36px;
  font-size: 26px; line-height: 1;
  color: var(--text);
  display: none;
  align-items: center; justify-content: center;
}
.nav-back.show { display: flex; }
.nav-title {
  flex: 1; text-align: center;
  font-size: 17px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-cart {
  position: relative;
  width: 36px; height: 36px;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.cart-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center;
  border-radius: 8px;
}

/* ============ 页面容器 ============ */
.page-container {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  background: var(--bg);
}
.page-container.no-tab { padding-bottom: calc(env(safe-area-inset-bottom) + 8px); }
.page-container::-webkit-scrollbar { width: 0; }

/* ============ 底部 Tab 栏 ============ */
.tab-bar {
  flex: 0 0 var(--tab-h);
  height: var(--tab-h);
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 20;
}
.tab-bar.hidden { display: none; }
.tab-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-hint);
  font-size: 11px;
  gap: 2px;
  transition: color .2s;
}
.tab-icon { font-size: 22px; line-height: 1; filter: grayscale(0.4); }
.tab-item.active { color: var(--primary); }
.tab-item.active .tab-icon { filter: none; transform: translateY(-1px); }

/* ============ 通用工具类 ============ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--text-hint); }
.hidden { display: none !important; }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }

/* ============ 卡片 ============ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card.flush { margin: 0; border-radius: 0; }
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.section-title {
  font-size: 15px; font-weight: 600;
  padding: 16px 16px 8px;
  display: flex; align-items: center; gap: 6px;
}
.section-title .more { margin-left: auto; font-size: 12px; color: var(--text-hint); font-weight: 400; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  border-radius: 22px;
  font-size: 14px; font-weight: 500;
  transition: all .2s; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:active { background: var(--accent-dark); }
.btn-ghost { background: var(--primary-light); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 16px; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 24px; }
.btn-block { width: 100%; }
.btn-disabled, .btn:disabled { opacity: .5; pointer-events: none; }

/* ============ 菜单列表 ============ */
.menu-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin: 12px;
  overflow: hidden;
}
.menu-item {
  display: flex; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f7f8fa; }
.menu-item__icon { width: 24px; text-align: center; margin-right: 12px; font-size: 18px; }
.menu-item__text { flex: 1; font-size: 14px; }
.menu-item__arrow { color: var(--text-hint); font-size: 14px; }
.menu-badge {
  background: var(--danger); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 10px; margin-right: 8px;
}
.menu-item.danger .menu-item__text { color: var(--danger); }

/* ============ 标签 / 徽章 ============ */
.tag {
  display: inline-block; padding: 2px 8px;
  border-radius: 6px; font-size: 11px; line-height: 1.6;
}
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-accent { background: var(--accent-light); color: var(--accent-dark); }
.tag-danger { background: #fde8e8; color: var(--danger); }
.tag-success { background: #e8f5ed; color: var(--success); }
.tag-warning { background: #fdf3e3; color: var(--warning); }
.badge-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--danger); color: #fff; font-size: 11px; border-radius: 9px;
}

/* ============ 数值卡片 ============ */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center; flex: 1;
  box-shadow: var(--shadow);
}
.stat-card__value { font-size: 18px; font-weight: 700; color: var(--text); }
.stat-card__label { font-size: 11px; color: var(--text-hint); margin-top: 4px; }

/* ============ 空状态 ============ */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; color: var(--text-hint); text-align: center;
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.empty-state__text { font-size: 14px; }
.empty-state .btn { margin-top: 16px; }

/* ============ 分割线 ============ */
.divider { height: 1px; background: var(--border); margin: 12px 0; }

/* ============ 头像 ============ */
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; background: var(--primary-light); object-fit: cover;
}
.avatar-lg { width: 64px; height: 64px; }

/* ============ 搜索栏 ============ */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 12px; padding: 9px 14px;
  background: #fff; border-radius: 22px;
  color: var(--text-hint); font-size: 13px;
  box-shadow: var(--shadow);
}
.search-bar .search-icon { font-size: 15px; }

/* ============ Banner 轮播 ============ */
.banner-swiper {
  position: relative; margin: 12px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.banner-slide {
  display: none; width: 100%; height: 150px;
  background-size: cover; background-position: center;
  align-items: center; justify-content: center; color: #fff;
}
.banner-slide.active { display: flex; }
.banner-slide .banner-text { text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.banner-slide .banner-title { font-size: 20px; font-weight: 700; }
.banner-slide .banner-sub { font-size: 13px; opacity: .9; margin-top: 4px; }
.banner-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.banner-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: all .3s; }
.banner-dot.active { width: 16px; background: #fff; }

/* ============ 金刚区导航 ============ */
.nav-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px 4px; padding: 16px 8px; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nav-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.nav-label { font-size: 11px; color: var(--text-secondary); }

/* ============ 公告 ============ */
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px 12px; padding: 8px 12px;
  background: var(--accent-light); color: var(--accent-dark);
  border-radius: var(--radius-sm); font-size: 12px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ============ 商品网格 ============ */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s;
}
.product-card:active { transform: scale(.98); }
.product-img-wrap { width: 100%; aspect-ratio: 1/1; background: #f2f3f5; }
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 8px 10px 12px; }
.product-name {
  font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.product-price { color: var(--danger); font-weight: 700; font-size: 15px; }
.product-price-orig { color: var(--text-hint); font-size: 11px; text-decoration: line-through; }

/* ============ 活动专区 ============ */
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.activity-card {
  border-radius: var(--radius); padding: 16px; color: #fff;
  display: flex; flex-direction: column; gap: 4px; min-height: 88px;
}
.activity-card .act-title { font-size: 15px; font-weight: 600; }
.activity-card .act-sub { font-size: 11px; opacity: .9; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; background: #fff; color: var(--text);
  outline: none; transition: border-color .2s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); }
.textarea { resize: vertical; min-height: 80px; }
.input-group { display: flex; align-items: center; gap: 10px; }
.input-code-group .input { flex: 1; }

/* ============ 模态框 ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal-body {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 340px; max-height: 80vh; overflow-y: auto;
  padding: 22px 20px; animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; top: 40%;
  transform: translate(-50%,-50%) scale(.9);
  background: rgba(0,0,0,.8); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-size: 14px;
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 70%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ============ Loading ============ */
.loading-mask {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(255,255,255,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.loading-spin {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--primary-light); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
.loading-text { font-size: 13px; color: var(--text-secondary); margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-msg { text-align: center; color: var(--text-hint); padding: 40px 0; font-size: 14px; }

/* ============ 个人中心 ============ */
.profile-header {
  position: relative; padding: 28px 20px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.profile-bg { position: absolute; inset: 0; opacity: .15; }
.profile-info { position: relative; display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); object-fit: cover; background: #fff; }
.profile-name { font-size: 18px; font-weight: 600; }
.profile-level {
  display: inline-block; margin-top: 6px; padding: 2px 10px;
  background: var(--accent); color: #fff; font-size: 11px; border-radius: 10px;
}
.profile-login-btn { text-align: center; width: 100%; }
.profile-avatar-placeholder { font-size: 56px; }
.profile-login-text { font-size: 18px; font-weight: 600; margin-top: 8px; }
.profile-login-sub { font-size: 12px; opacity: .85; margin-top: 4px; }

.profile-assets { display: flex; gap: 10px; padding: 0 12px; margin-top: -16px; position: relative; }
.asset-card {
  flex: 1; background: #fff; border-radius: var(--radius);
  padding: 14px 6px; text-align: center; box-shadow: var(--shadow);
}
.asset-val { font-size: 18px; font-weight: 700; color: var(--primary); }
.asset-label { font-size: 11px; color: var(--text-hint); margin-top: 4px; }

/* ============ 订单 ============ */
.order-tabs { display: flex; gap: 6px; padding: 12px; overflow-x: auto; }
.order-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 16px;
  background: #fff; font-size: 13px; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.order-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.order-card { background: #fff; border-radius: var(--radius); margin: 12px; padding: 14px; box-shadow: var(--shadow); }
.order-card-hd { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.order-no { color: var(--text-hint); }
.order-status { font-weight: 600; }
.order-mini-item { display: flex; gap: 10px; padding: 10px 0; align-items: center; }
.order-mini-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f2f3f5; }
.order-mini-info { flex: 1; font-size: 13px; }
.order-card-ft { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; font-size: 12px; color: var(--text-hint); }
.order-amount { color: var(--text); font-weight: 600; }
.order-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 0 12px 12px; }

/* ============ 订单详情 ============ */
.od-status { font-size: 18px; font-weight: 700; padding: 16px; text-align: center; }
.pickup-code { font-size: 30px; font-weight: 800; letter-spacing: 4px; text-align: center; color: var(--primary); }
.pickup-code-label, .pickup-tip { text-align: center; color: var(--text-hint); font-size: 12px; }
.od-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.od-title { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.od-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.od-goods-item { display: flex; gap: 10px; padding: 8px 0; align-items: center; }
.od-goods-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #f2f3f5; }
.od-goods-info { flex: 1; font-size: 13px; }
.od-goods-price { color: var(--text-hint); font-size: 12px; }
.od-goods-subtotal { font-weight: 600; }
.od-amount .od-price { color: var(--danger); font-weight: 700; }

/* ============ 购物车 ============ */
.cart-list { padding: 12px; }
.cart-item { display: flex; gap: 12px; background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); align-items: center; }
.cart-item-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #f2f3f5; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; }
.cart-item-price { color: var(--danger); font-weight: 600; margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); font-size: 18px; color: var(--text); display: flex; align-items: center; justify-content: center; }
.qty-num { min-width: 20px; text-align: center; }
.cart-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); gap: 12px; }
.cart-total-price { color: var(--danger); font-weight: 700; font-size: 16px; }

/* ============ 确认订单 ============ */
.address-select { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.addr-icon { font-size: 20px; }
.addr-info { flex: 1; }
.addr-name { font-size: 14px; }
.addr-detail { font-size: 12px; color: var(--text-hint); }
.addr-arrow { color: var(--text-hint); }
.delivery-select { display: flex; gap: 10px; padding: 0 12px; }
.delivery-option { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 13px; }
.delivery-option.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.checkout-item { display: flex; gap: 10px; padding: 12px; background: #fff; align-items: center; }
.checkout-item-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #f2f3f5; }
.checkout-item-info { flex: 1; font-size: 13px; }
.checkout-item-subtotal { font-weight: 600; }
.checkout-summary { padding: 12px 16px; background: #fff; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--text-secondary); }
.summary-total { font-weight: 600; color: var(--text); }
.summary-total .total-price { color: var(--danger); font-weight: 700; font-size: 16px; }
.checkout-bottom { padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); }

/* ============ 商品详情 ============ */
.prod-gallery { position: relative; }
.prod-gallery-img { display: none; width: 100%; height: 320px; object-fit: cover; }
.prod-gallery-img.active { display: block; }
.gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); }
.gallery-dot.active { width: 16px; background: #fff; }
.prod-info-section { padding: 16px; background: #fff; }
.prod-price-big { color: var(--danger); font-size: 24px; font-weight: 800; }
.prod-name { font-size: 18px; margin: 8px 0; }
.prod-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.spec-section { padding: 12px 16px; background: #fff; margin-top: 8px; }
.spec-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.spec-options { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-opt { padding: 6px 14px; border: 1px solid var(--border); border-radius: 16px; font-size: 13px; }
.spec-opt.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.prod-bottom-bar { position: sticky; bottom: 0; display: flex; gap: 12px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); }

/* ============ 列表通用 ============ */
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: none; }
.list-item__main { flex: 1; }
.list-item__title { font-size: 14px; }
.list-item__sub { font-size: 12px; color: var(--text-hint); margin-top: 3px; }
.list-item__value { font-size: 14px; font-weight: 600; }
.list-item__value.income { color: var(--success); }
.list-item__value.expense { color: var(--danger); }

/* ============ 推广/团队 ============ */
.hero-card {
  margin: 12px; padding: 20px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  color: #fff; box-shadow: var(--shadow-lg);
}
.hero-card .hero-label { font-size: 13px; opacity: .9; }
.hero-card .hero-value { font-size: 28px; font-weight: 800; margin-top: 4px; }
.hero-card .hero-row { display: flex; gap: 16px; margin-top: 16px; }
.hero-stat { flex: 1; }
.hero-stat__v { font-size: 16px; font-weight: 700; }
.hero-stat__l { font-size: 11px; opacity: .85; margin-top: 2px; }

/* ============ 福利/学习卡片 ============ */
.wf-card { background: #fff; border-radius: var(--radius); margin: 12px; padding: 14px; box-shadow: var(--shadow); }
.wf-cover { width: 100%; height: 140px; border-radius: var(--radius-sm); object-fit: cover; background: #f2f3f5; }
.wf-title { font-size: 15px; font-weight: 600; margin: 10px 0 6px; }
.wf-meta { font-size: 12px; color: var(--text-hint); display: flex; gap: 12px; }

/* ============ 康养 ============ */
.checkin-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; padding: 0 12px; }
.checkin-day { aspect-ratio: 1; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-hint); border: 1px solid var(--border); }
.checkin-day.done { background: var(--primary); color: #fff; border-color: var(--primary); }
.checkin-day.today { border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }

/* ============ 支付 ============ */
.payment-amount { text-align: center; padding: 28px 16px; background: #fff; }
.payment-label { font-size: 13px; color: var(--text-hint); }
.payment-price { font-size: 32px; font-weight: 800; color: var(--danger); margin: 8px 0; }
.payment-order-no { font-size: 12px; color: var(--text-hint); }
.payment-methods { background: #fff; margin-top: 12px; }
.pay-method-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
.pay-method-item:active { background: #f7f8fa; }

/* ============ 动画 ============ */
.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ============ 登录弹窗 ============ */
.login-modal { text-align: center; }
.login-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.login-sub { font-size: 12px; color: var(--text-hint); margin-bottom: 20px; }
.login-close { position: absolute; top: 14px; right: 16px; font-size: 18px; color: var(--text-hint); }
.input-group { margin-bottom: 14px; }
.login-agreement { font-size: 11px; color: var(--text-hint); margin-top: 14px; }
.login-agreement a { color: var(--primary); }

/* ============ 微信一键登录 ============ */
.btn-wechat {
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.28);
}
.btn-wechat:active { background: #06ad56; transform: scale(0.98); }
.btn-wechat .wx-logo { width: 22px; height: 22px; flex: 0 0 auto; }
.login-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: var(--text-hint);
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-divider span { padding: 0 12px; white-space: nowrap; }
