/* 慕缘小栈 · 投票活动 */
.activity-page {
  --act-ink: var(--color-ink);
  --act-accent: var(--color-primary);
  --act-mist: var(--color-primary-tint);
  --act-line: var(--color-line);
  --act-soft: var(--color-primary-soft);
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-page);
  min-height: 70vh;
  padding-bottom: 48px;
}
.activity-body {
  padding-top: 8px;
}
.activity-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px dashed var(--act-line);
  border-radius: var(--radius-lg);
}
.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.activity-card {
  display: block;
  border: 1px solid var(--act-line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.activity-card:hover {
  border-color: var(--act-accent);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}
.activity-card-cover {
  height: 120px;
  background: var(--act-mist) center/cover no-repeat;
}
.activity-card-cover.is-plain {
  background:
    linear-gradient(135deg, #1a3a4a 0%, #2d5a6b 45%, #c45c26 100%);
}
.activity-card-body { padding: 14px 16px 16px; }
.activity-card-body h3 {
  margin: 6px 0 8px;
  font-size: 17px;
  color: var(--act-ink);
  line-height: 1.35;
}
.activity-card-body p {
  margin: 0;
  color: #6a7a86;
  font-size: 13px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.activity-card-meta { font-size: 12px; }
.activity-type,
.activity-phase,
.activity-subtype {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--act-mist);
  color: #3d5666;
  margin-right: 4px;
}
.activity-phase { background: #fff0e8; color: var(--act-accent); }
.activity-card-foot {
  margin-top: 12px;
  font-size: 12px;
  color: #8a9aa6;
}
.activity-card-foot span { margin-right: 12px; }

.activity-detail-cover {
  margin: 12px 0 18px;
  border-radius: 6px;
  overflow: hidden;
}
.activity-detail-cover img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.activity-rules {
  padding: 14px 16px;
  background: var(--act-soft);
  border-left: 3px solid var(--act-accent);
  margin-bottom: 18px;
  color: #445;
  line-height: 1.7;
}
.activity-stat {
  text-align: center;
  padding: 12px 8px;
  background: var(--act-soft);
  border-radius: 4px;
  margin-bottom: 12px;
}
.activity-stat .num {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--act-ink);
}
.activity-stat .label { color: #99a; font-size: 12px; }

/* poll widget */
.activity-poll-widget {
  margin: 20px 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--act-line);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, var(--act-soft) 100%);
}
.poll-head { margin-bottom: 14px; }
.poll-title {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--act-ink);
  display: inline-block;
}
.poll-phase {
  float: right;
  font-size: 12px;
  color: #8a9aa6;
  margin-top: 4px;
}
.poll-option {
  display: block;
  position: relative;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--act-line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
}
.poll-option:hover { border-color: #a8b8c4; }
.poll-option.is-voted { border-color: var(--act-accent); background: #fff8f4; }
.poll-option .poll-input { margin-right: 8px; vertical-align: top; margin-top: 3px; }
.poll-option-main { display: inline-block; width: calc(100% - 28px); vertical-align: top; }
.poll-option-title { font-weight: 500; color: var(--act-ink); margin-bottom: 6px; }
.poll-bar {
  height: 6px;
  background: #e6ecef;
  border-radius: 3px;
  overflow: hidden;
}
.poll-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2d5a6b, var(--act-accent));
  border-radius: 3px;
  transition: width .4s ease;
}
.poll-option-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #8a9aa6;
}
.poll-tip { margin: 10px 0 0; font-size: 13px; }

.activity-board-row {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.activity-board-row .rank {
  display: inline-block;
  width: 36px;
  color: var(--act-accent);
  font-weight: 600;
}
.activity-entries {
  display: grid;
  gap: 12px;
}
.activity-entries.is-photo {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.activity-entry-card {
  border: 1px solid var(--act-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.entry-thumb {
  display: block;
  height: 140px;
  background: var(--act-mist) center/cover no-repeat;
}
.entry-body { padding: 12px; }
.entry-body h5 { margin: 0 0 6px; font-size: 15px; }
.entry-meta { font-size: 12px; margin-bottom: 8px; }
.activity-entry-gallery img {
  max-width: 100%;
  margin-bottom: 10px;
  border-radius: 4px;
}
.activity-entry-content {
  margin-top: 16px;
  line-height: 1.8;
  color: #333;
}

@media (max-width: 767px) {
  .activity-list { grid-template-columns: 1fr; }
  .poll-phase { float: none; display: block; margin-top: 6px; }
  .activity-filter .form-control { width: 100%; }
  .activity-filter .btn { width: 100%; }
}
