/* components.css — 由 components/*/*.wxss 合并转换 */

/* ===== components/activity-card/activity-card.wxss ===== */
.ac {
  padding: 0;
  overflow: hidden;
}
.ac:active { opacity: 0.9; }

/* 官方活动金色细边 */
.ac-official {
  border-color: rgba(217, 154, 43, 0.6);
  box-shadow: 0 0 10px rgba(217, 154, 43, 0.15);
}

/* 封面 16:9 */
.ac-cover {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.ac-compact .ac-cover { padding-bottom: 40%; }

/* 轨道线纹理叠加层 */
.ac-cover-orbit {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -25deg,
    transparent 0px,
    transparent 13px,
    rgba(244, 242, 234, 0.05) 13px,
    rgba(244, 242, 234, 0.05) 15px
  );
}

/* 日期角标（登机牌式） */
.ac-date {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 48px;
  padding: 5px 8px 6px;
  border-radius: 8px;
  background: rgba(11, 13, 16, 0.72);
  border: 0.5px solid rgba(244, 242, 234, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ac-date-day {
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1.1;
}
.ac-date-month {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* 类型胶囊 */
.ac-type {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 3px 10px;
  border-radius: 499.5px;
  font-size: 11px;
  color: var(--text-primary);
  background: rgba(11, 13, 16, 0.6);
  border: 0.5px solid rgba(244, 242, 234, 0.2);
}

/* 满员角标 */
.ac-full {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 499.5px;
  font-size: 11px;
  color: var(--brand-gold);
  background: rgba(217, 154, 43, 0.2);
  border: 0.5px solid rgba(217, 154, 43, 0.5);
}

.ac-body { padding: 12px 14px 14px; }

.ac-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ac-compact .ac-title { -webkit-line-clamp: 1; }

.ac-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ac-meta-item {
  font-size: 12px;
  color: var(--text-secondary);
}

.ac-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ac-progress {
  flex: 1;
  display: flex;
  align-items: center;
  margin-right: 12px;
}
.ac-progress-track {
  flex: 1;
  max-width: 140px;
  height: 5px;
  border-radius: 2.5px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.ac-progress-fill {
  height: 100%;
  border-radius: 2.5px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-gold));
}
.ac-progress-full {
  background: linear-gradient(90deg, var(--brand-gold), var(--danger));
}
.ac-progress-text {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.ac-fee {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}
.ac-fee-paid { color: var(--brand-orange); }

/* ===== components/badge-number/badge-number.wxss ===== */
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-card);
  border: 1px solid var(--divider);
  background: var(--bg-card);
  padding: 10px 14px;
}
.badge-normal .badge-num { font-size: 18px; }
.badge-large { padding: 18px 24px; border-radius: var(--radius-vip); }
.badge-large .badge-num { font-size: 32px; }

.badge-num {
  color: var(--text-primary);
}

.badge-status {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}
.badge-large .badge-status { font-size: 12px; }

/* available：橙色描边 */
.badge-available {
  border-color: var(--brand-orange);
  background: rgba(228, 90, 27, 0.08);
}
.badge-available .badge-status { color: var(--brand-orange); }

/* locked：锁定中，橙色虚化 + 虚线 */
.badge-locked {
  border-color: rgba(228, 90, 27, 0.5);
  border-style: dashed;
}
.badge-locked .badge-num { color: var(--text-secondary); }
.badge-locked .badge-status { color: var(--brand-orange); }

/* occupied：灰 */
.badge-occupied {
  border-color: var(--divider);
  background: var(--bg-elevated);
}
.badge-occupied .badge-num { color: var(--text-tertiary); }
.badge-occupied .badge-status { color: var(--text-tertiary); }

/* rare：金色描边 */
.badge-rare {
  border-color: var(--brand-gold);
  background: rgba(217, 154, 43, 0.08);
  box-shadow: 0 0 12px rgba(217, 154, 43, 0.25);
}
.badge-rare .badge-num { color: var(--brand-gold); }
.badge-rare .badge-status { color: var(--brand-gold); }

/* mine：蓝底 */
.badge-mine {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, var(--brand-blue), rgba(44, 113, 232, 0.55));
}
.badge-mine .badge-num { color: var(--text-primary); }
.badge-mine .badge-status { color: rgba(244, 242, 234, 0.85); }

/* ===== components/compliance-tip/compliance-tip.wxss ===== */
.tip {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  background: rgba(228, 90, 27, 0.08);
  border: 0.5px solid rgba(228, 90, 27, 0.3);
  overflow: hidden;
}
.tip-bar {
  width: 4px;
  flex: none;
  background: var(--brand-orange);
}
.tip-text {
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== components/empty-state/empty-state.wxss ===== */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
}
.empty-halo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(44, 113, 232, 0.18) 0%, rgba(44, 113, 232, 0.06) 55%, transparent 75%);
  border: 0.5px dashed var(--divider);
}
.empty-icon {
  font-size: 48px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(228, 90, 27, 0.55);
}
.empty-title {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}
.empty-desc {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.6;
}
.empty-btn {
  margin-top: 20px;
  height: 40px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold));
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}
.empty-btn:active { opacity: 0.85; }

/* ===== components/member-card-view/member-card-view.wxss ===== */
/* member-card-view — 宇航员胸牌风电子会员卡 */
.mc-wrap {
  perspective: 600px;
}
.mc {
  position: relative;
  width: 100%;
  height: 230px;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}
.mc-flipped { transform: rotateY(180deg); }

.mc-face {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-vip);
  background: linear-gradient(150deg, var(--bg-elevated) 0%, var(--bg-card) 55%, var(--bg-deep) 100%);
  border: 0.5px solid var(--divider);
  overflow: hidden;
  padding: 14px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.mc-back {
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
}

/* 轨道线纹理 */
.mc-orbit {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(
      -30deg,
      transparent 0px,
      transparent 17px,
      rgba(244, 242, 234, 0.04) 17px,
      rgba(244, 242, 234, 0.04) 19px
    );
}

/* 橙 / 蓝光晕 */
.mc-glow-orange {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 90, 27, 0.4) 0%, rgba(228, 90, 27, 0.1) 55%, transparent 75%);
}
.mc-glow-blue {
  position: absolute;
  bottom: -70px;
  left: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 113, 232, 0.35) 0%, rgba(44, 113, 232, 0.08) 55%, transparent 75%);
}

.mc-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mc-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-secondary);
}
/* 胸牌芯片 */
/* 胸牌芯片：仿真 IC 卡芯片（金属触点刻线），一眼可辨 */
.mc-chip {
  width: 36px;
  height: 26px;
  border-radius: 5px;
  background:
    /* 中央横触点刻线 */
    linear-gradient(0deg, transparent 44%, rgba(96, 64, 8, 0.55) 44%, rgba(96, 64, 8, 0.55) 56%, transparent 56%),
    /* 两条竖触点刻线 */
    linear-gradient(90deg, transparent 30%, rgba(96, 64, 8, 0.55) 30%, rgba(96, 64, 8, 0.55) 37%, transparent 37%),
    linear-gradient(90deg, transparent 63%, rgba(96, 64, 8, 0.55) 63%, rgba(96, 64, 8, 0.55) 70%, transparent 70%),
    /* 金属底色 */
    linear-gradient(135deg, #F0C878 0%, var(--brand-gold) 45%, rgba(217, 154, 43, 0.75) 100%);
  border: 0.5px solid rgba(244, 242, 234, 0.3);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    inset 0 -1px 2px rgba(96, 64, 8, 0.35);
}

.mc-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.mc-astro {
  position: relative;
  width: 80px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mc-astro-halo {
  font-size: 44px;
  line-height: 1;
  text-shadow:
    0 0 15px rgba(228, 90, 27, 0.7),
    0 0 30px rgba(44, 113, 232, 0.5);
}
.mc-avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
  margin-top: -8px;
  border: 1.5px solid var(--bg-card);
}
.mc-info { flex: 1; min-width: 0; }
.mc-nickname {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mc-verified { color: var(--brand-blue); font-size: 14px; }
.mc-number {
  margin-top: 5px;
  font-size: 20px;
  color: var(--text-tertiary);
}
.mc-number-on {
  color: var(--brand-gold);
  text-shadow: 0 0 10px rgba(217, 154, 43, 0.4);
}
.mc-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mc-tag {
  font-size: 10px;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 499.5px;
  background: rgba(244, 242, 234, 0.06);
  border: 0.5px solid var(--divider);
}

.mc-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* 服务端生成的标准二维码；前端不再构造可被误认作凭证的点阵。 */
.mc-qr {
  width: 60px;
  height: 60px;
  padding: 5px;
  border-radius: 6px;
  background: var(--light-bg);
  box-sizing: border-box;
}
.mc-qr-large {
  position: relative;
  width: 108px;
  height: 108px;
  padding: 6px;
  flex: none;
}
.mc-qr-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: contain;
}
.mc-card-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(244, 242, 234, 0.2);
  background: rgba(244, 242, 234, 0.06);
  color: var(--brand-gold);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: inset 0 0 18px rgba(217, 154, 43, 0.08);
}

.mc-bottom-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.mc-id {
  font-size: 12px;
  color: var(--text-tertiary);
}
.mc-flip-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--brand-blue);
}

.mc-back-title {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mc-back-sub {
  position: relative;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  margin-bottom: 7px;
  text-align: center;
}
.mc-pass-placeholder {
  position: relative;
  width: 108px;
  height: 108px;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 8px;
  background: rgba(244, 242, 234, 0.08);
  border: 1px solid rgba(244, 242, 234, 0.14);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
}
.mc-pass-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(244, 242, 234, 0.2);
  border-top-color: var(--brand-blue);
  animation: mc-pass-spin 0.8s linear infinite;
}
.mc-pass-status {
  position: relative;
  margin-top: 6px;
  min-height: 14px;
  color: var(--text-secondary);
  font-size: 10px;
}
.mc-pass-actions {
  position: relative;
  width: 100%;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.mc-pass-refresh {
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.mc-pass-refresh:disabled { opacity: 0.45; cursor: default; }
.mc-pass-actions .mc-flip-hint { margin-top: 0; }
@keyframes mc-pass-spin { to { transform: rotate(360deg); } }
.member-checkin-panel {
  padding: 16px;
  text-align: center;
}
.member-checkin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.member-checkin-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 650;
}
.member-checkin-badge {
  flex: none;
  padding: 2px 8px;
  border: 1px solid rgba(44, 113, 232, 0.35);
  border-radius: 999px;
  color: var(--brand-blue);
  font-size: 10px;
}
.member-checkin-desc,
.member-checkin-foot {
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
}
.member-checkin-desc { margin-top: 7px; }
.member-checkin-body {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.member-checkin-panel .mc-pass-status {
  margin-top: 9px;
  font-size: 11px;
}
.member-checkin-generate {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--brand-blue), #2763c8);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.member-checkin-generate:disabled { opacity: 0.48; cursor: default; }
.member-checkin-foot { margin-top: 10px; }
.mc-back-num {
  position: relative;
  margin-top: 12px;
  font-size: 18px;
  color: var(--brand-gold);
}

/* ===== components/post-card/post-card.wxss ===== */
.pc:active { opacity: 0.92; }

.pc-head {
  display: flex;
  align-items: center;
}
.pc-avatar {
  width: 40px;
  height: 40px;
  font-size: 17px;
  margin-right: 10px;
}
.pc-author { flex: 1; min-width: 0; }
.pc-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.pc-verified {
  font-size: 10px;
  color: var(--brand-blue);
}
.pc-author-num { font-size: 9px; padding: 1px 6px; }
.pc-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.pc-qa-tag { flex: none; }

.pc-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.pc-content {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* 图片占位 */
.pc-images {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}
.pc-image {
  position: relative;
  flex: 1;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}
.pc-images-1 .pc-image { height: 160px; }
.pc-image-orbit {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -25deg,
    transparent 0px,
    transparent 11px,
    rgba(244, 242, 234, 0.05) 11px,
    rgba(244, 242, 234, 0.05) 13px
  );
}

.pc-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pc-topic { flex: none; }
.pc-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.pc-action {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
}
.pc-action-icon {
  margin-right: 4px;
  font-size: 13px;
}
.pc-action-on { color: var(--brand-orange); }
.pc-action-fav { color: var(--brand-gold); }

/* ===== components/section-header/section-header.wxss ===== */
.sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px;
}
.sec-left {
  display: flex;
  align-items: center;
}
.sec-bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-orange), var(--brand-gold));
  margin-right: 8px;
}
.sec-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.sec-more {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
}
.sec-more:active { color: var(--brand-orange); }
.sec-arrow {
  margin-left: 2px;
  font-size: 14px;
}

/* ===== components/skeleton/skeleton.wxss ===== */
.sk { padding: 12px var(--space-page); }

.sk-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 0.5px solid var(--divider);
  padding: 14px;
  margin-bottom: var(--space-card);
}
.sk-row {
  display: flex;
  align-items: center;
}
.sk-col { flex: 1; }

.sk-block {
  background: var(--bg-elevated);
  border-radius: 6px;
  animation: sk-breath 1.2s ease-in-out infinite;
}
.sk-cover { height: 160px; margin-bottom: 12px; }
.sk-banner { height: 90px; margin-bottom: var(--space-card); }
.sk-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 12px;
  flex: none;
}
.sk-line { height: 14px; margin-bottom: 8px; }
.sk-line:last-child { margin-bottom: 0; }
.w70 { width: 70%; }
.w60 { width: 60%; }
.w45 { width: 45%; }
.w40 { width: 40%; }

@keyframes sk-breath {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ===== 真实图片接入（assets/img） ===== */
/* 活动封面图上的轻遮罩：保证日期角标 / 类型标签可读 */
.ac-cover-shade {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.12) 0%, transparent 45%, rgba(11, 13, 16, 0.38) 100%);
}

/* 全局科技雷达空状态样式（替代 cartoon 宇航员） */
.empty-tech-radar {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.empty-tech-svg {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 6px 16px rgba(228, 90, 27, 0.2));
  animation: tech-radar-spin 20s linear infinite;
}

@keyframes tech-radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.empty-tech-wrap .empty-halo {
  background: radial-gradient(circle, rgba(228, 90, 27, 0.08) 0%, rgba(44, 113, 232, 0.04) 50%, transparent 70%);
  border: 0.5px solid rgba(228, 90, 27, 0.2);
}
