/* 线上活动页（gokite.community/online）：沿用首页的夜色底、字体、顶栏和页脚（community.css 先加载），
   这里只写这一页自己的版块：标题、进行中的活动卡片、已结束的活动列表。 */

.on-head { padding: 36px 0 48px; max-width: 980px; }
.on-head h1 { margin: 0; font-size: clamp(44px, 5.2vw, 78px); letter-spacing: -0.055em; }
.on-head h1.whole { letter-spacing: -0.02em; }
.on-head .subtitle { margin: 18px 0 0; max-width: 40em; font-size: 16px; }

.on-sec { border-top: 1px solid var(--rule); padding: 22px 0 64px; }
.on-sec > h2 { margin: 0 0 24px; font: 400 12px var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.on-none { margin: 0; font-size: 15px; color: var(--muted); }

/* 进行中的活动：一张卡片，左边是活动本身，右边是怎么参加 */
.camp {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 64px;
  padding: 40px 44px 44px; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px;
}
.camp + .camp { margin-top: 24px; }
.camp-main, .camp-side { min-width: 0; }
.camp-side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.camp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.camp-lock { display: flex; align-items: center; gap: 18px; }
.camp-lock img { display: block; width: auto; height: 32px; }
.camp-lock img[alt="Bitrefill"] { height: 21px; }
.camp-lock .x { font-size: 22px; line-height: 1; color: var(--muted); }
.camp-status {
  display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 14px;
  font: 12px var(--mono); white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px;
}
.camp-status.upcoming .status-dot { background: var(--accent); }
.camp-status.ended .status-dot { background: var(--muted); }
.camp-title { margin: 32px 0 0; font-size: clamp(32px, 3.1vw, 46px); font-weight: 450; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
/* 活动名链到它的详情页 /online/<id> */
.camp-title a, .past-title a { transition: color 0.15s ease; }
.camp-title a:hover, .past-title a:hover { color: var(--accent-soft); }
.camp-when { margin: 12px 0 0; font: 13px/1.6 var(--mono); color: var(--muted); }
.camp-blurb { margin: 18px 0 0; max-width: 34em; font-size: 17px; line-height: 1.55; }
.camp-facts { margin: 30px 0 0; }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.fact dt { font-size: 32px; font-weight: 450; letter-spacing: -0.03em; color: var(--accent-soft); white-space: nowrap; }
.fact dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.camp-how h4 { margin: 0; font: 400 12px var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.camp-how ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.camp-how li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.5; }
.camp-how li::before { content: counter(step, decimal-leading-zero); padding-top: 3px; font: 12px var(--mono); color: var(--accent-soft); }
.camp-note { margin: 22px 0 0; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: var(--muted); background: var(--surface-2); border-radius: 12px; }
.camp-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* 按钮：主按钮浅底深字，次按钮描边 */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 500 15px/1 var(--font); border: 1px solid var(--rule); border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn .arrow { flex: none; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[target="_blank"]:hover .arrow { transform: translate(2px, -2px); }
.btn.pri { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.btn.pri:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--rule-hover); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* 已结束的活动：一行一个 */
.past { margin: 0; padding: 0; list-style: none; }
.past-item {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) auto; align-items: start; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.past-item:first-child { padding-top: 4px; }
.past-title { margin: 0; font-size: 24px; font-weight: 450; letter-spacing: -0.02em; }
.past-when { margin: 6px 0 0; font: 12px var(--mono); color: var(--muted); }
.past-blurb { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.past-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

@media (max-width: 1000px) {
  .camp { grid-template-columns: minmax(0, 1fr); row-gap: 36px; padding: 32px 30px 34px; }
  .past-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .past-links { justify-content: flex-start; }
}
@media (max-width: 650px) {
  .on-head { padding: 18px 0 32px; }
  .on-head h1 { font-size: 44px; max-width: none; letter-spacing: -0.045em; }
  .on-head h1.whole { font-size: 36px; }
  .on-head .subtitle { font-size: 15px; }
  .camp { padding: 24px 20px 26px; border-radius: 18px; }
  .camp-lock { gap: 14px; }
  .camp-lock img { height: 26px; }
  .camp-lock img[alt="Bitrefill"] { height: 17px; }
  .camp-title { margin-top: 26px; }
  .camp-blurb { font-size: 16px; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fact dt { font-size: 30px; }
  .camp-cta .btn { width: 100%; justify-content: space-between; }
  .past-title { font-size: 22px; }
}
