/* ============================================================
   杭州脱单单身派 H5 · 全局样式
   v3 液态玻璃（Apple Liquid Glass 语言）：
   通透毛玻璃层 / 悬浮控件 / 连续大圆角 / 规格高光 / 分层阴影
   ============================================================ */
:root {
  /* 品牌色 */
  --color-primary: #ff4d6a;
  --color-primary-deep: #f0395a;
  --color-primary-light: #ffe8ed;
  --color-primary-grad: linear-gradient(135deg, #ff8098 0%, #ff4d6a 55%, #f5395c 100%);

  /* 性别色 */
  --color-boy: #4e8ff0;
  --color-boy-light: #eaf2fe;
  --color-boy-grad: linear-gradient(135deg, #7ab2ff 0%, #4e8ff0 100%);
  --color-girl: #ff6fa5;
  --color-girl-light: #ffedf5;
  --color-girl-grad: linear-gradient(135deg, #ff9dc0 0%, #ff6fa5 100%);
  --color-activity: #ff8a3d;
  --color-activity-light: #fff3e8;
  --color-activity-grad: linear-gradient(135deg, #ffb067 0%, #ff8a3d 100%);

  --color-success: #2ba24c;

  /* 文字 */
  --color-text: #2b2b30;
  --color-text-secondary: #86868f;
  --color-text-light: #b8b8c0;

  /* 背景 */
  --color-bg: #f6f7f9;
  --color-card: #fff;
  --color-line: #f1f1f3;

  /* 圆角（连续曲线，外大内小） */
  --radius-sm: 12px;
  --radius-base: 20px;
  --radius-lg: 28px;

  --spacing-base: 12px;

  /* 液态玻璃材质 */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(22px) saturate(180%);
  --hairline: rgba(0, 0, 0, 0.055);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.55);

  /* 阴影：分层（贴合 + 扩散） */
  --shadow-card: 0 1px 1px rgba(24, 26, 42, 0.03), 0 10px 26px rgba(24, 26, 42, 0.055);
  --shadow-hover: 0 2px 6px rgba(24, 26, 42, 0.06), 0 16px 34px rgba(24, 26, 42, 0.1);
  --shadow-float: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 20px rgba(255, 77, 106, 0.32);
  --shadow-nav: 0 1px 0 rgba(24, 26, 42, 0.03), 0 6px 18px rgba(24, 26, 42, 0.04);
  --shadow-glass: 0 8px 32px rgba(24, 26, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* 动效曲线：iOS 的弹簧感近似（快出慢收） */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* 表单内强调行的浅粉底（深色模式下自动换暗调） */
  --row-tint: rgba(255, 250, 251, 0.9);
}

/* 数字统一等宽，滚动时不跳动 */
.hero-stats b,
.price-num,
.act-progress .num b,
.profile-card .no {
  font-variant-numeric: tabular-nums;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  /* 禁止横屏时字号被自动放大 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: 0.1px;
  /* 悬浮玻璃底栏，留出更宽的呼吸区 */
  padding-bottom: calc(92px + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* 柔和的品牌光晕底：顶部提亮 + 右下角淡淡粉调 */
  background-color: var(--color-bg);
  background-image: radial-gradient(
      120% 55% at 50% 0%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0) 62%
    ),
    radial-gradient(85% 42% at 100% 100%, rgba(255, 226, 233, 0.75) 0%, rgba(255, 226, 233, 0) 62%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

/* ---------- 布局容器 ---------- */
.page {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
}

.pad {
  padding: 12px;
}

/* ---------- 顶部导航（浅色玻璃，iOS 大标题风） ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 12px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--color-text);
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
}

.navbar .back {
  /* 点击热区 ≥44（HIG 最小可点尺寸） */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 24px;
  line-height: 1;
  /* iOS：返回/操作用主题色点缀 */
  color: var(--color-primary);
  transition: opacity 0.16s ease;
}

.navbar .back:active,
.navbar .right:active {
  opacity: 0.4;
}

.navbar .title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.navbar .right {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
  transition: opacity 0.16s ease;
}

.navbar.plain {
  background: var(--glass-bg-strong);
  color: var(--color-text);
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
}

/* ---------- 卡片（液态玻璃） ---------- */
.card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card), var(--specular);
  overflow: hidden;
}

.section {
  margin: 12px;
  padding: 16px 14px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card), var(--specular);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: var(--color-primary-grad);
  box-shadow: 0 1px 4px rgba(255, 77, 106, 0.35);
}

/* ---------- 首页头部（浅色玻璃，色彩留给图标与数据） ---------- */
.hero {
  position: relative;
  padding: 26px 16px 24px;
  color: var(--color-text);
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  /* 极轻的品牌色呼吸感：只在角落晕开，不铺满 */
  background:
    radial-gradient(80% 90% at 88% -20%, rgba(255, 77, 106, 0.13) 0%, rgba(255, 77, 106, 0) 60%),
    radial-gradient(60% 80% at -8% -10%, rgba(255, 138, 61, 0.08) 0%, rgba(255, 138, 61, 0) 55%);
}

/* 装饰光斑 */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 190px;
  height: 190px;
  top: -110px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 77, 106, 0.1) 0%, rgba(255, 77, 106, 0) 70%);
}

.hero::after {
  width: 150px;
  height: 150px;
  bottom: -100px;
  left: -50px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.08) 0%, rgba(255, 138, 61, 0) 70%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1d1d1f;
}

.hero p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
  letter-spacing: 2px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 16px;
  padding: 8px 6px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card), var(--specular);
  font-size: 11px;
  color: var(--color-text-secondary);
}

.hero-stats > div {
  padding: 0 18px;
  line-height: 1.35;
}

.hero-stats > div + div {
  border-left: 1px solid var(--hairline);
}

.hero-stats b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

/* 数字用各自的主题色，与下方入口图标呼应 */
.hero-stats > div:nth-child(1) b {
  color: var(--color-boy);
}

.hero-stats > div:nth-child(2) b {
  color: var(--color-girl);
}

.hero-stats > div:nth-child(3) b {
  color: var(--color-activity);
}

/* ---------- 三大入口 ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px;
}

.entry {
  padding: 15px 6px 13px;
  text-align: center;
  border-radius: var(--radius-base);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card), var(--specular);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.entry:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-hover);
}

.entry .glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  /* 连续曲线：接近圆角的方形（squircle 观感） */
  border-radius: 15px;
  font-size: 23px;
  line-height: 1;
  color: #fff;
  box-shadow: 0 5px 14px rgba(24, 26, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.entry .name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.3px;
}

.entry .sub {
  margin-top: 1px;
  font-size: 11px;
  color: var(--color-text-light);
}

.entry.boy .glyph {
  background: var(--color-boy-grad);
  box-shadow: 0 4px 12px rgba(78, 143, 240, 0.35);
}

.entry.girl .glyph {
  background: var(--color-girl-grad);
  box-shadow: 0 4px 12px rgba(255, 111, 165, 0.35);
}

.entry.act .glyph {
  background: var(--color-activity-grad);
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.35);
}

/* ---------- 资料卡片 ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--specular);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: cardIn 0.42s var(--ease-out) both;
}

.profile-card:active {
  transform: scale(0.975);
  box-shadow: var(--shadow-hover);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.profile-card .photo {
  position: relative;
  width: 100%;
  padding-top: 120%;
  background: #f2f3f5 center/cover no-repeat;
  overflow: hidden;
}

/* 底部渐隐，保证徽章与角标在任何照片上都清晰 */
.profile-card .photo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.42) 100%);
  z-index: 1;
  pointer-events: none;
}

.profile-card .photo .no {
  position: absolute;
  left: 7px;
  top: 7px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.3px;
}

.profile-card .photo .gender {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.profile-card .photo .gender.male {
  background: var(--color-boy-grad);
}

.profile-card .photo .gender.female {
  background: var(--color-girl-grad);
}

.profile-card .body {
  padding: 9px 11px 11px;
}

.profile-card .nick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card .meta {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}

.tag {
  padding: 1.5px 7px;
  border-radius: 9px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 500;
}

.tag.grey {
  background: #f2f3f5;
  color: var(--color-text-secondary);
}

/* 认证徽章（浅绿底，白底区域用） */
.pc-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.vb {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 1.5px 6px;
  border-radius: 6px;
  background: #f2faf5;
  color: #2ba24c;
  border: 0.5px solid #c5e8d2;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.vb i {
  font-style: normal;
}

/* 徽章叠加在照片底部：毛玻璃白底 */
.profile-card .photo .pc-badges {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 7px;
  justify-content: center;
  padding: 0 6px;
}

.profile-card .photo .vb {
  background: rgba(255, 255, 255, 0.92);
  color: #444;
  border: none;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.16);
}

.profile-card .photo .vb i {
  color: #2ba24c;
  font-weight: 700;
}

/* ---------- 筛选栏 ---------- */
.filters {
  position: sticky;
  top: 46px;
  z-index: 90;
  padding: 9px 12px 10px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 4px 14px rgba(24, 26, 42, 0.035);
}

.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 5px 14px;
  border-radius: 16px;
  background: rgba(120, 120, 132, 0.08);
  color: var(--color-text-secondary);
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.chip.on {
  background: var(--color-primary-grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 77, 106, 0.32), var(--specular);
}

.chip:active {
  transform: scale(0.95);
}

/* ---------- 详情页 ---------- */
.swiper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f2f3f5 center/cover no-repeat;
  overflow: hidden;
}

/* 照片底部渐隐 */
.swiper .mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* 照片左下角认证徽章 */
.swiper .photo-badges {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.swiper .photo-badges .vb {
  background: rgba(255, 255, 255, 0.93);
  color: #3c3c44;
  border: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  padding: 2.5px 8px;
  border-radius: 7px;
}

.swiper .photo-badges .vb i {
  color: var(--color-success);
  font-weight: 700;
}

.swiper .dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.swiper .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.swiper .dot.on {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 12px;
}

.info-item {
  display: flex;
  font-size: 13px;
  min-width: 0;
}

.info-item .k {
  flex: none;
  width: 70px;
  color: var(--color-text-light);
}

.info-item .v {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.qa-item:last-child {
  border-bottom: none;
}

.qa-item .q {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.qa-item .a {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.7;
  color: #4a4a52;
}

.foot-actions {
  display: flex;
  gap: 10px;
  margin: 16px 12px 8px;
}

.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 23px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.6px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-primary-grad);
  color: #fff;
  box-shadow: var(--shadow-float);
}

.btn-outline {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--color-primary);
  border: 1px solid rgba(255, 77, 106, 0.32);
  box-shadow: 0 2px 10px rgba(255, 77, 106, 0.1), var(--specular);
}

.btn:disabled {
  opacity: 0.5;
}

.btn-grey {
  background: rgba(120, 120, 132, 0.08);
  color: var(--color-text-secondary);
  box-shadow: none;
}

/* ---------- 表单 ---------- */
.form-item {
  display: flex;
  align-items: flex-start;
  padding: 13px 14px;
  border-bottom: 1px solid var(--hairline);
  /* 连续的一整块半透明面板，透出底色 */
  background: var(--glass-bg-strong);
}

.form-item .label {
  flex: none;
  width: 92px;
  font-size: 14px;
  color: var(--color-text);
  padding-top: 2px;
  font-weight: 500;
}

.form-item .label.req::before {
  content: '*';
  color: var(--color-primary);
  margin-right: 2px;
}

.form-item .field {
  flex: 1;
}

.form-item input,
.form-item textarea,
.form-item select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
}

/* 单选/复选不拉满整行，并使用品牌色 */
.form-item input[type='radio'],
.form-item input[type='checkbox'] {
  width: auto;
  flex: none;
  margin: 0;
  accent-color: var(--color-primary);
}

.form-item textarea {
  min-height: 70px;
  line-height: 1.6;
  resize: vertical;
}

.form-item input::placeholder,
.form-item textarea::placeholder {
  color: var(--color-text-light);
}

/* 单选/复选的选项行 */
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 2px;
}

.option-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.option-row input[type='radio'] {
  width: 17px;
  height: 17px;
}

.hint {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--row-tint);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hairline);
  line-height: 1.65;
}

/* ---------- 活动卡片 ---------- */
.act-card {
  display: flex;
  gap: 11px;
  margin: 0 12px 12px;
  padding: 11px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card), var(--specular);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: cardIn 0.42s var(--ease-out) both;
}

.act-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-hover);
}

.act-card .cover {
  position: relative;
  flex: none;
  align-self: stretch;
  width: 106px;
  min-height: 92px;
  border-radius: 10px;
  background: #f2f3f5 center/cover no-repeat;
  overflow: hidden;
}

/* 封面左下角日期角标 */
.act-card .cover .date {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 3px 7px 4px;
  border-radius: 0 10px 0 10px;
  background: rgba(255, 77, 106, 0.92);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #fff;
  line-height: 1.1;
}

.act-card .cover .date b {
  font-size: 15px;
  font-weight: 700;
}

.act-card .cover .date span {
  font-size: 9px;
  opacity: 0.92;
  letter-spacing: 0.5px;
}

.act-card .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.act-card .t {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.act-card .m {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-card .m .ico {
  margin-right: 3px;
  opacity: 0.85;
}

.act-card .price {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.act-card .price-num {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.2px;
}

.act-card .price .quota {
  flex: none;
  font-size: 11px;
  color: var(--color-text-light);
}

/* 名额胶囊（列表与详情通用） */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.pill.male {
  background: var(--color-boy-light);
  color: var(--color-boy);
}

.pill.female {
  background: var(--color-girl-light);
  color: var(--color-girl);
}

.pill.orange {
  background: var(--color-activity-light);
  color: var(--color-activity);
}

.pill.grey {
  background: #f4f5f7;
  color: var(--color-text-secondary);
}

/* ---------- 活动详情 ---------- */
.act-hero {
  position: relative;
  width: 100%;
  padding-top: 54%;
  background: #f2f3f5 center/cover no-repeat;
  overflow: hidden;
}

.act-hero .mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.24) 0%,
    rgba(0, 0, 0, 0.02) 34%,
    rgba(0, 0, 0, 0.46) 100%
  );
  pointer-events: none;
}

.act-hero .status {
  position: absolute;
  left: 13px;
  top: 13px;
  padding: 3px 11px;
  border-radius: 11px;
  background: rgba(255, 91, 141, 0.95);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.act-hero .status.full {
  background: rgba(122, 122, 130, 0.92);
  box-shadow: none;
}

.act-hero .price-tag {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 4px 12px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
}

.act-hero .price-tag b {
  font-size: 16px;
  font-weight: 700;
  color: #ffd66b;
  margin-right: 1px;
}

.act-h-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.act-h-meta {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--color-line);
}

.act-h-meta .m {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: #4a4a52;
  line-height: 1.9;
}

.act-h-meta .m .ico {
  flex: none;
  opacity: 0.8;
}

/* 报名进度条 */
.act-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.act-progress .bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #f0f1f4;
  overflow: hidden;
}

.act-progress .bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--color-primary-grad);
  transition: width 0.5s ease;
}

.act-progress .num {
  flex: none;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.act-progress .num b {
  font-size: 15px;
  color: var(--color-primary);
}

/* ---------- 通用 ---------- */
.empty {
  padding: 70px 20px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 13px;
}

.empty .ico {
  font-size: 38px;
  margin-bottom: 10px;
}

.loading {
  padding: 44px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 13px;
}

/* 悬浮玻璃胶囊底栏 */
.tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 100;
  max-width: 616px;
  margin: 0 auto;
  display: flex;
  height: 58px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-glass);
}

.tabbar a {
  flex: 1;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--color-text-light);
  transition: color 0.16s ease;
}

.tabbar a .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 19px;
  line-height: 1;
}

.tabbar a .ico svg {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.16s ease;
}

/* 男生/女生图标品牌色（选中时回归主题红） */
.tabbar a:nth-child(2):not(.on) .ico {
  color: #4a90d9;
}
.tabbar a:nth-child(3):not(.on) .ico {
  color: #ff5b8d;
}

.tabbar a.on {
  color: var(--color-primary);
  font-weight: 700;
}

.tabbar a.on .ico {
  color: var(--color-primary);
  transform: scale(1.06);
}

/* 选中态：胶囊高亮底（Apple tab 的选中态） */
.tabbar a.on::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  background: rgba(255, 77, 106, 0.1);
  box-shadow: inset 0 0 0 0.5px rgba(255, 77, 106, 0.14);
}

/* 提示：底部玻璃胶囊，浮在悬浮底栏之上，不挡内容 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--safe-bottom));
  z-index: 999;
  transform: translate(-50%, 10px);
  max-width: 78%;
  padding: 11px 18px;
  border-radius: 22px;
  background: rgba(28, 28, 32, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.muted {
  color: var(--color-text-secondary);
}

.small {
  font-size: 12px;
}

.center {
  text-align: center;
}

/* ---------- 按压反馈（HIG：每个可点元素都要有即时反馈） ---------- */
a.cell:active,
button.cell:active,
a.section:active {
  background: rgba(120, 120, 132, 0.08);
}

.tabbar a:active {
  opacity: 0.55;
}

.chip:active,
.pill:active {
  opacity: 0.7;
}

/* ---------- 骨架屏（占位形状优于转圈） ---------- */
.sk {
  background: linear-gradient(
    90deg,
    rgba(120, 120, 132, 0.09) 25%,
    rgba(120, 120, 132, 0.17) 37%,
    rgba(120, 120, 132, 0.09) 63%
  );
  background-size: 400% 100%;
  animation: skShimmer 1.5s ease-in-out infinite;
}

@keyframes skShimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 资料卡骨架 */
.sk-card {
  border-radius: var(--radius-base);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sk-card .sk-photo {
  padding-top: 120%;
}

.sk-card .sk-body {
  padding: 10px 11px 12px;
}

.sk-line {
  height: 12px;
  border-radius: 6px;
}

.sk-line + .sk-line {
  margin-top: 8px;
}

.sk-line.short {
  width: 58%;
}

/* 活动卡骨架 */
.sk-act {
  display: flex;
  gap: 11px;
  margin: 0 12px 12px;
  padding: 11px;
  border-radius: var(--radius-base);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.sk-act .sk-cover {
  flex: none;
  width: 106px;
  height: 92px;
  border-radius: 12px;
}

.sk-act .sk-info {
  flex: 1;
  padding-top: 4px;
}

/* ---------- 减弱动态效果（系统「减弱动态效果」开启时） ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 深色模式（跟随系统） ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #f2f2f5;
    --color-text-secondary: #a0a0aa;
    --color-text-light: #7b7b85;
    --color-bg: #101012;
    --color-card: #1c1c20;
    --color-line: #2a2a30;
    --hairline: rgba(255, 255, 255, 0.08);

    --glass-bg: rgba(38, 38, 44, 0.6);
    --glass-bg-strong: rgba(44, 44, 50, 0.76);
    --glass-border: rgba(255, 255, 255, 0.09);
    --specular: inset 0 1px 0 rgba(255, 255, 255, 0.07);

    --shadow-card: 0 1px 1px rgba(0, 0, 0, 0.3), 0 10px 26px rgba(0, 0, 0, 0.36);
    --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.34), 0 16px 34px rgba(0, 0, 0, 0.44);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);

    --row-tint: rgba(255, 77, 106, 0.06);
  }

  body {
    background-image: radial-gradient(
        120% 55% at 50% 0%,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0) 62%
      ),
      radial-gradient(85% 42% at 100% 100%, rgba(255, 77, 106, 0.16) 0%, rgba(255, 77, 106, 0) 62%);
  }

  .hero h1 {
    color: #f5f5f7;
  }

  /* 写死的浅底：统一压暗（选择器带 body/.page 前缀，压过各页内联 <style>） */
  .profile-card {
    background: var(--glass-bg-strong);
  }

  .profile-card .photo,
  .swiper,
  .act-card .cover,
  .act-hero,
  body .photo-box,
  body .banner {
    background-color: #23232a;
  }

  .tag {
    background: rgba(255, 77, 106, 0.16);
    color: #ff8098;
  }

  .act-progress .bar {
    background: rgba(255, 255, 255, 0.1);
  }

  .tag.grey,
  .pill.grey {
    background: rgba(255, 255, 255, 0.08);
  }

  .vb {
    background: rgba(43, 162, 76, 0.16);
    border-color: rgba(43, 162, 76, 0.3);
    color: #6ed099;
  }

  .profile-card .photo .vb,
  .swiper .photo-badges .vb {
    background: rgba(28, 28, 32, 0.72);
    color: #e6e6ea;
  }

  .qa-item .a {
    color: var(--color-text-secondary);
  }

  /* 收费页（内联样式用 body/.page 前缀压过） */
  body .top-hint {
    background: rgba(255, 248, 234, 0.08);
    color: #e3c98c;
    border-color: rgba(224, 200, 150, 0.3);
  }

  .page .tier .cond {
    background: rgba(255, 250, 240, 0.06);
    color: #e0c48c;
  }

  .page .tier .body,
  .page .rule {
    color: var(--color-text-secondary);
  }

  .page .gift {
    background: rgba(43, 162, 76, 0.12);
    color: #7dd6a4;
    box-shadow: none;
  }

  .page .rule.warn {
    background: rgba(255, 77, 106, 0.1);
    border-color: rgba(255, 77, 106, 0.28);
  }

  /* 投稿页灵魂拷问输入框 */
  .page .q-item textarea,
  .page .q-item input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
    color: var(--color-text);
  }

  .page .q-item textarea:focus,
  .page .q-item input:focus {
    background: rgba(255, 255, 255, 0.09);
    color: var(--color-text);
  }

  /* 状态标签（我的 / 认证页） */
  body .st0 {
    background: rgba(255, 193, 7, 0.16);
    color: #ffd666;
  }

  body .st1 {
    background: rgba(43, 162, 76, 0.16);
    color: #6ed099;
  }

  body .st2 {
    background: rgba(255, 77, 106, 0.16);
    color: #ff8098;
  }

  body .st3 {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
  }

  /* 活动报名：资料同步提示条 */
  body .sync-bar.ok {
    background: rgba(43, 162, 76, 0.14);
    color: #7dd6a4;
  }

  body .sync-bar.tip {
    background: rgba(255, 138, 61, 0.14);
    color: #ffb26b;
  }
}

/* ---------- ICP 备案页脚（全站统一） ---------- */
.icp {
  padding: 20px 0 4px;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-tertiary, #9aa0a8);
}
.icp a {
  color: inherit;
  text-decoration: none;
}
.icp a:active {
  color: var(--color-primary);
}
