/* 花花会员社 H5 - 粉色系风格（沿用小程序） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  background: #fff5f8;
  color: #333;
  min-height: 100vh;
}
.hidden { display: none !important; }

/* ===== 顶部导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(135deg, #ff9ecb, #e85a8a);
  color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(232, 90, 138, .3);
}
.navbar .title { font-size: 17px; font-weight: 600; }
.navbar .back { font-size: 20px; cursor: pointer; padding: 4px 8px; }
.navbar .right { font-size: 14px; cursor: pointer; }

/* ===== 底部Tab ===== */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: #fff; display: flex;
  border-top: 1px solid #f0e0e8;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tab {
  flex: 1; padding: 8px 0 6px; text-align: center;
  font-size: 11px; color: #999; cursor: pointer;
}
.tabbar .tab.active { color: #e85a8a; }
.tabbar .tab .icon { font-size: 20px; display: block; margin-bottom: 2px; }

/* ===== 页面容器 ===== */
.page { padding: 56px 0 64px; min-height: 100vh; }
.page.no-tab { padding-bottom: 20px; }

/* ===== 卡片 ===== */
.card {
  background: #fff; border-radius: 14px; padding: 16px;
  margin: 12px 14px; box-shadow: 0 2px 10px rgba(232, 90, 138, .08);
}

/* ===== 按钮 ===== */
.btn {
  display: block; width: calc(100% - 28px); margin: 14px auto;
  padding: 14px; border: none; border-radius: 24px;
  background: linear-gradient(135deg, #ff9ecb, #e85a8a);
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 90, 138, .35);
}
.btn:active { transform: scale(.97); }
.btn.secondary { background: #fff; color: #e85a8a; border: 1px solid #e85a8a; box-shadow: none; }

/* ===== 表单 ===== */
.field { margin: 12px 14px; }
.field label { display: block; font-size: 13px; color: #888; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid #f0e0e8;
  border-radius: 10px; font-size: 15px; background: #fff;
}
.field input:focus { outline: none; border-color: #e85a8a; }

/* ===== 首页卡片入口 ===== */
.home-banner {
  width: 100%; height: 150px; object-fit: cover; display: block;
}
.home-card {
  margin: 10px 14px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 3px 12px rgba(232, 90, 138, .12); cursor: pointer;
}
.home-card img { width: 100%; display: block; }
.home-card:active { transform: scale(.98); }

/* ===== 列表项 ===== */
.list-item {
  background: #fff; margin: 8px 14px; border-radius: 12px;
  padding: 14px; display: flex; justify-content: space-between;
  align-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.list-item .name { font-size: 15px; font-weight: 500; }
.list-item .desc { font-size: 12px; color: #999; margin-top: 4px; }
.list-item .status { font-size: 13px; color: #e85a8a; }

/* ===== 积分余额 ===== */
.points-hero {
  background: linear-gradient(135deg, #ff9ecb, #e85a8a);
  color: #fff; text-align: center; padding: 32px 16px;
}
.points-hero .num { font-size: 42px; font-weight: 700; }
.points-hero .label { font-size: 13px; opacity: .9; margin-top: 4px; }

/* ===== 优惠券/奖品 ===== */
.prize-item { display: flex; justify-content: space-between; align-items: center; }
.prize-item .tag {
  background: #fff0f5; color: #e85a8a; padding: 2px 8px;
  border-radius: 10px; font-size: 11px;
}

/* ===== 提示 ===== */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78); color: #fff; padding: 12px 22px;
  border-radius: 10px; font-size: 14px; z-index: 999; max-width: 80%;
}
.toast.success { background: rgba(7, 193, 96, .9); }
.toast.error { background: rgba(255, 77, 79, .9); }

/* ===== 登录页 ===== */
.login-wrap { padding-top: 80px; text-align: center; }
.login-logo {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, #ff9ecb, #e85a8a);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff; box-shadow: 0 6px 20px rgba(232,90,138,.4);
}
.login-title { font-size: 22px; font-weight: 700; color: #e85a8a; }
.login-sub { font-size: 13px; color: #c98ba4; margin: 6px 0 30px; }

/* ===== 头像 ===== */
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: #f5dce6; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #e85a8a; overflow: hidden; margin: 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
