/* ============================================================
   活动模块样式(PC)
   规范: docs/07-活动模块-PC端UI重构设计方案
   依赖: common.css(全站 token)
   ============================================================ */

/* ---------- 容器与栅格 ----------
   与全站一致: 模块主体不设限宽容器(全站 .container=1240px 仅用于 header 内部),
   面包屑/筛选/网格均全宽铺开, 与二手/圈子等模块对齐 */
.act-container { max-width: none; margin: 0; padding: 0; }
@media (max-width: 767px)  { .act-container { padding: 0 16px; } }
.act-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
@media (max-width: 1023px) { .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .act-grid { grid-template-columns: 1fr; } }

/* ---------- Hero 横幅 ---------- */
.act-hero {
  border-radius: 12px;
  padding: 28px 32px;
  margin: 20px 0 4px;
  background: linear-gradient(135deg, #E85D04 0%, #C94C02 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.act-hero h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.act-hero p { font-size: 14px; opacity: .92; margin: 0; }
.act-hero .act-hero-btn {
  flex-shrink: 0;
  background: #fff; color: #E85D04;
  font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 8px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.act-hero .act-hero-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* ---------- 筛选条 ---------- */
.act-filter {
  background: #fff; border-radius: 12px;
  padding: 14px 20px; margin: 16px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.act-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act-filter-row + .act-filter-row { margin-top: 10px; }
.act-filter-label { font-size: 13px; color: #646A73; flex-shrink: 0; width: 44px; }
.act-filter-options { display: flex; gap: 8px; flex-wrap: wrap; }
.act-filter-options a {
  font-size: 13px; color: #646A73; text-decoration: none;
  padding: 5px 14px; border-radius: 999px; background: #F7F8FA;
  transition: all .15s;
}
.act-filter-options a:hover { color: #E85D04; background: #FFF4ED; }
.act-filter-options a.active { color: #fff; background: #E85D04; font-weight: 500; }

/* ---------- 活动卡片 ---------- */
.act-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: block; color: inherit; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.act-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.act-card-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #F0F0F0;
  display: flex; align-items: center; justify-content: center;
}
.act-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.act-card:hover .act-card-cover img { transform: scale(1.03); }
.act-card-cover .act-emoji { font-size: 40px; }
.act-card-cover .act-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 6px; color: #fff;
}
.act-badge.ongoing  { background: #0CA678; }
.act-badge.upcoming { background: #F59E0B; }
.act-badge.ended    { background: #8A9099; }
.act-card-cover .act-fee {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
}
.act-fee.free { background: #E6F7F0; color: #0CA678; }
.act-fee.paid { background: #FFF4ED; color: #E85D04; }
.act-card-body { padding: 14px 16px 16px; }
.act-card-title {
  font-size: 16px; font-weight: 600; color: #1F2329; line-height: 1.4;
  margin: 0 0 10px; min-height: 44px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.act-card-countdown {
  font-size: 13px; color: #E85D04; font-weight: 600;
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.act-card-countdown.ended { color: #8A9099; font-weight: 400; }
.act-card-progress { margin-bottom: 10px; }
.act-progress-track { height: 6px; border-radius: 3px; background: #EEF0F2; overflow: hidden; }
.act-progress-bar { height: 100%; border-radius: 3px; background: #E85D04; transition: width .3s; }
.act-progress-bar.warn  { background: #F59E0B; }
.act-progress-bar.danger{ background: #EF4444; }
.act-progress-text {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #8A9099; margin-top: 4px;
}
.act-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #8A9099; border-top: 1px dashed #EEF0F2; padding-top: 10px;
}
.act-card-meta .loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }

/* ---------- 详情页 ---------- */
.act-detail { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; margin: 20px 0 40px; align-items: start; }
@media (max-width: 1023px) { .act-detail { grid-template-columns: 1fr; } }

.act-detail-main { min-width: 0; }
.act-detail-cover {
  position: relative; border-radius: 12px; overflow: hidden; background: #F0F0F0;
  aspect-ratio: 16 / 9; max-height: 420px; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.act-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.act-detail-cover .act-emoji { font-size: 64px; }
.act-detail-cover .act-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 8px; color: #fff;
}

.act-detail-head { background: #fff; border-radius: 12px; padding: 24px; margin-top: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.act-detail-head h1 { font-size: 24px; font-weight: 700; color: #1F2329; margin: 0 0 12px; line-height: 1.4; }
.act-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.act-detail-meta {
  background: #F7F8FA; border-radius: 8px; padding: 14px 18px;
  font-size: 14px; color: #646A73; line-height: 1.9;
}
.act-detail-meta b { color: #1F2329; font-weight: 600; }

.act-countdown {
  background: #FFF4ED; border-left: 3px solid #E85D04;
  border-radius: 0 8px 8px 0; padding: 12px 18px; margin-top: 16px;
  font-size: 14px; color: #E85D04; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.act-countdown.ended { background: #F0F0F0; border-left-color: #8A9099; color: #8A9099; font-weight: 400; }

.act-panel { background: #fff; border-radius: 12px; padding: 24px; margin-top: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.act-panel h3 { font-size: 18px; font-weight: 600; color: #1F2329; margin: 0 0 16px; }
.act-content { font-size: 15px; line-height: 1.9; color: #646A73; word-break: break-word; }
.act-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.act-img-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }

/* 报名者头像墙 */
.act-signer-wall { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.act-signer-wall .avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: #F0F0F0; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.act-signer-wall .more { font-size: 12px; color: #8A9099; }

/* ---------- 侧栏报名卡 ---------- */
.act-aside { position: sticky; top: 88px; }
@media (max-width: 1023px) { .act-aside { position: static; } }
.act-sign-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.act-sign-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: #1F2329; }
.act-sign-status {
  border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.7; margin-bottom: 14px;
}
.act-sign-status.open    { background: #E6F7F0; color: #0CA678; }
.act-sign-status.closed  { background: #F0F0F0; color: #8A9099; }
.act-sign-status.warn    { background: #FFF8E1; color: #B45309; }
.act-sign-status.signed  { background: #E6F7F0; color: #0CA678; }
.act-sign-status.organizer { background: #EFF6FF; color: #1D4ED8; }
.act-sign-progress { margin-bottom: 16px; }
.act-sign-progress .act-progress-text { margin-top: 6px; }
.act-btn {
  display: block; width: 100%; height: 44px; border: none; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
  transition: opacity .15s, transform .1s;
}
.act-btn:disabled { opacity: .45; cursor: not-allowed; }
.act-btn-primary { background: #E85D04; color: #fff; }
.act-btn-primary:hover:not(:disabled) { background: #C94C02; }
.act-btn-ghost  { background: #fff; color: #E85D04; border: 1px solid #E85D04; margin-top: 10px; }
.act-btn-ghost:hover:not(:disabled) { background: #FFF4ED; }
.act-btn-danger { background: #fff; color: #EF4444; border: 1px solid #EF4444; margin-top: 10px; }
.act-btn-danger:hover:not(:disabled) { background: #FEF2F2; }

/* 核销码卡 */
.act-code-card {
  border: 1px dashed #E85D04; background: #FFF4ED; border-radius: 10px;
  padding: 14px; text-align: center; margin: 14px 0;
}
.act-code-card .code { font-size: 26px; font-weight: 700; letter-spacing: 6px; color: #E85D04; font-variant-numeric: tabular-nums; }
.act-code-card .tip { font-size: 12px; color: #8A9099; margin-top: 6px; }

.act-aside-info { background: #fff; border-radius: 12px; padding: 16px 20px; margin-top: 14px; font-size: 13px; color: #646A73; line-height: 2; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.act-aside-info b { color: #1F2329; font-weight: 600; }

/* 评论(沿用全站样式微调) */
.act-comment-form textarea {
  width: 100%; min-height: 80px; padding: 12px; border: 1px solid #EEF0F2;
  border-radius: 8px; font-size: 14px; background: #F7F8FA; resize: vertical; box-sizing: border-box;
}
.act-comment-form textarea:focus { outline: none; border-color: #E85D04; }

/* ---------- 我的报名 / 我发布的活动 ---------- */
.act-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.act-tabs a {
  font-size: 13px; color: #646A73; text-decoration: none;
  padding: 6px 16px; border-radius: 999px; background: #F7F8FA; transition: all .15s;
}
.act-tabs a:hover { color: #E85D04; background: #FFF4ED; }
.act-tabs a.active { color: #fff; background: #E85D04; font-weight: 500; }

.act-list-item {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px dashed #EEF0F2;
}
.act-list-item:last-child { border-bottom: none; }
.act-list-cover {
  width: 120px; height: 68px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #C9A227, #A07D1C);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.act-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.act-list-cover .act-emoji { font-size: 24px; }
.act-list-body { flex: 1; min-width: 0; }
.act-list-title { font-size: 14px; font-weight: 600; color: #1F2329; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-list-title:hover { color: #E85D04; }
.act-list-meta { font-size: 12px; color: #8A9099; margin-top: 4px; }
.act-list-actions { flex-shrink: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.act-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 6px; font-weight: 500;
  display: inline-block; margin: 2px 4px 2px 0;
}
.act-tag.status-0 { background: #FFF8E1; color: #B45309; }   /* 待审核 */
.act-tag.status-1 { background: #E6F7F0; color: #0CA678; }   /* 已发布 */
.act-tag.status-2 { background: #FEF2F2; color: #EF4444; }   /* 已驳回 */
.act-tag.status-3 { background: #F0F0F0; color: #8A9099; }   /* 已下架 */
.act-tag.record-0 { background: #FFF4ED; color: #E85D04; }   /* 已报名 */
.act-tag.record-1 { background: #E6F7F0; color: #0CA678; }   /* 已核销 */
.act-tag.record-2 { background: #F0F0F0; color: #8A9099; }   /* 已取消 */
.act-tag.time-upcoming { background: #FFF8E1; color: #B45309; }
.act-tag.time-ongoing  { background: #E6F7F0; color: #0CA678; }
.act-tag.time-ended    { background: #F0F0F0; color: #8A9099; }
.act-mini-btn {
  background: #fff; border: 1px solid #EEF0F2; color: #646A73;
  padding: 5px 14px; border-radius: 6px; font-size: 12px; cursor: pointer; text-decoration: none; display: inline-block;
  transition: all .15s;
}
.act-mini-btn:hover { border-color: #E85D04; color: #E85D04; }
.act-mini-btn.danger:hover { border-color: #EF4444; color: #EF4444; }

/* 我发布的活动: 报名数据条 */
.act-stat-row { display: flex; gap: 18px; font-size: 12px; color: #646A73; margin-top: 6px; flex-wrap: wrap; }
.act-stat-row b { color: #1F2329; }

/* 组织者管理区 */
.act-manage { margin-top: 16px; }
.act-manage input[type=text] {
  height: 40px; padding: 0 12px; border: 1px solid #EEF0F2; border-radius: 8px;
  font-size: 14px; width: 220px; box-sizing: border-box;
}
.act-manage input[type=text]:focus { outline: none; border-color: #E85D04; }
.act-manage .btn-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.act-signer-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.act-signer-table th, .act-signer-table td { padding: 8px 10px; border-bottom: 1px solid #EEF0F2; text-align: left; }
.act-signer-table th { color: #8A9099; font-weight: 500; background: #F7F8FA; }

/* 公告输入 */
.act-announce textarea {
  width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid #EEF0F2;
  border-radius: 8px; font-size: 13px; box-sizing: border-box; resize: vertical;
}

/* 报名弹层 */
.act-dialog-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999;
  display: none; align-items: center; justify-content: center;
}
.act-dialog-mask.show { display: flex; }
.act-dialog {
  background: #fff; border-radius: 12px; width: 420px; max-width: 92vw; padding: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.act-dialog h3 { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: #1F2329; }
.act-dialog .field { margin-bottom: 14px; }
.act-dialog .field label { display: block; font-size: 13px; color: #646A73; margin-bottom: 6px; }
.act-dialog .field input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid #EEF0F2;
  border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.act-dialog .field input:focus { outline: none; border-color: #E85D04; }
.act-dialog .dialog-actions { display: flex; gap: 10px; margin-top: 8px; }

/* 空状态 */
.act-empty { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: #8A9099; }
.act-empty .ico { font-size: 40px; margin-bottom: 8px; }
