:root {
  --blue: #146fc4;
  --ink: #17212b;
  --muted: #71808d;
  --line: #e6ebef;
  --bg: #f4f7f9;
  --gold: #b7791f;
  --red: #c2413b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}
.topbar {
  height: 58px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, calc((100vw - 720px) / 2));
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.brand span {
  padding-left: 7px;
  font-size: 12px;
  color: #5c7182;
  font-weight: 500;
  border-left: 1px solid var(--line);
}
.brand-logo { display: block; width: 126px; height: 39px; object-fit: contain; }
.avatar {
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 82px;
}
.hero {
  background: var(--blue);
  padding: 25px 22px;
  color: white;
  border-radius: 7px;
}
.hero h1 {
  font-size: 24px;
  margin: 0 0 8px;
}
.hero p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.7;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.stat,
.card,
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.stat {
  padding: 15px 10px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 5px;
}
.stat span,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 10px;
}
.section-head h2 {
  font-size: 17px;
  margin: 0;
}
.text-link {
  color: var(--blue);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.card {
  padding: 16px;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 16px;
  margin: 0 0 9px;
}
.card p {
  line-height: 1.65;
  margin: 5px 0;
  color: #526372;
}
.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 11px;
  background: #eaf4fc;
  color: var(--blue);
  margin-right: 5px;
}
.badge.gold {
  color: var(--gold);
  background: #fff7e8;
}
.badge.gray {
  background: #f2f4f6;
  color: #667683;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 11px;
}
.empty {
  padding: 30px 12px;
  text-align: center;
  color: var(--muted);
}
.form-card {
  padding: 20px;
}
.form-card h1 {
  font-size: 20px;
  margin: 0 0 5px;
}
.form-card > p {
  color: var(--muted);
  margin: 0 0 18px;
}
label {
  display: block;
  font-weight: 700;
  margin: 15px 0 6px;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ccd6dd;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
textarea {
  min-height: 104px;
  resize: vertical;
}
.choice-grid {
  display: grid;
  gap: 8px;
}
.check {
  font-weight: 400;
  margin: 0;
  padding: 10px;
  border: 1px solid #dce3e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
  margin: 0;
}
button,
.button {
  font: inherit;
}
.primary,
.secondary,
.danger {
  border: 0;
  border-radius: 4px;
  padding: 11px 16px;
  cursor: pointer;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.secondary {
  background: #eaf3fa;
  color: var(--blue);
}
.danger {
  background: #fcecea;
  color: var(--red);
}
.primary:disabled {
  background: #9aa8b2;
  cursor: not-allowed;
}
.primary.wide {
  width: 100%;
  margin-top: 21px;
}
.login-wrap {
  max-width: 440px;
  margin: 40px auto;
}
.login-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}
.login-tabs button {
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  color: var(--muted);
}
.login-tabs .active {
  color: var(--blue);
  font-weight: 700;
  border-bottom: 2px solid var(--blue);
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.activity-card {
  padding: 0;
  overflow: hidden;
}
.activity-poster {
  aspect-ratio: 2 / 1;
  background: #e7f1f8;
}
.activity-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poster-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #176fba;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.activity-body {
  padding: 15px 16px;
}
.activity-body h3 {
  margin-top: 10px;
}
.activity-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.remaining {
  color: #38714c;
  font-size: 12px;
}
.remaining.full {
  color: var(--red);
}
.status {
  padding: 12px;
  border-radius: 4px;
  background: #fff8e8;
  color: #966d11;
  margin-bottom: 15px;
}
.status.approved {
  background: #e8f8f0;
  color: #207a4d;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(21, 34, 43, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10;
}
.modal-box {
  background: #fff;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  border-radius: 9px 9px 0 0;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h2 {
  margin: 0;
  font-size: 19px;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: #1c2d39;
  color: white;
  padding: 10px 14px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  height: 62px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  z-index: 5;
}
.bottom-nav a {
  width: min(180px, 25%);
  text-align: center;
  padding-top: 21px;
  text-decoration: none;
  color: #788794;
  font-size: 13px;
}
.bottom-nav a.active {
  color: var(--blue);
  font-weight: 700;
}
.wechat-contact {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.wechat-contact strong {
  color: var(--ink);
}
.wechat-contact img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
}
@media (max-width: 480px) {
  main {
    padding: 14px 12px 78px;
  }
  .hero {
    padding: 21px 18px;
  }
  .hero h1 {
    font-size: 21px;
  }
  .stats {
    gap: 7px;
  }
  .stat {
    padding: 12px 6px;
  }
  .form-card {
    padding: 17px;
  }
  .topbar {
    padding: 0 14px;
  }
}

.card-link,
.activity-click-area {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link { margin: -2px; padding: 2px; }
.card-link h3 { color: var(--ink); }
.activity-actions { padding: 0 16px 16px; }
.badge.official { color: #6b4f00; background: #fff1b8; }

.back-link {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--blue);
  text-decoration: none;
}

.detail-card { padding: 20px; }
.detail-card h1,
.activity-detail h1 { margin: 13px 0 8px; font-size: 22px; }
.detail-company { color: var(--muted); }
.detail-content { margin: 20px 0; line-height: 1.85; white-space: pre-wrap; }

.contact-box {
  padding: 14px;
  background: #f4f8fb;
  border-left: 3px solid var(--blue);
}

.contact-box h3 { margin: 0 0 8px; font-size: 15px; }
.contact-box p { margin: 5px 0; }

.activity-detail { padding: 0; overflow: hidden; }
.activity-detail-poster { aspect-ratio: 2 / 1; background: #e7f1f8; }
.activity-detail-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-inner { padding: 20px; }
