:root {
  --activity-coral: #f25564;
  --activity-orange: #ff8a38;
  --activity-ink: #2c2928;
  --activity-muted: #7f7a76;
  --activity-line: #f1e9e4;
  --activity-paper: #fffefd;
}

.activity-detail-shell {
  padding: 10px 0 4px;
}

.activity-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 10px;
  color: #958e87;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .12em;
}

.activity-detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #655f5a;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  transition: color .2s ease, transform .2s ease;
}

.activity-detail-nav a:hover {
  color: var(--activity-coral);
  transform: translateX(-2px);
}

.activity-detail-nav a:first-child svg {
  transform: rotate(180deg);
}

.activity-detail-nav svg {
  width: 15px;
  height: 15px;
}

.activity-detail-header {
  margin-bottom: 24px;
}

.activity-title-block {
  position: relative;
  min-width: 0;
  padding: 28px 30px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 254, 252, .98), rgba(255, 247, 240, .96)),
    radial-gradient(circle at 92% 16%, rgba(255, 138, 56, .15), transparent 30%);
  box-shadow: 0 4px 15px rgba(91, 63, 43, .09);
}

.activity-title-block::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -64px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: rgba(242, 85, 100, .09);
}

.activity-detail-kicker {
  margin: 0 0 8px;
  color: var(--activity-coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}

.activity-title-block h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--activity-ink);
  max-width: 680px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.activity-detail-summary {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 12px 0 0;
  color: #6f6661;
  font-size: 16px;
  line-height: 1.75;
}

.activity-detail-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
  margin-top: 20px;
}

.activity-detail-meta span {
  min-width: 0;
  padding: 12px 13px;
  border-radius: 12px;
  background: #fff;
  color: #2f2b29;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(95, 63, 42, .06);
}

.activity-detail-meta b {
  display: block;
  margin-bottom: 4px;
  color: #918984;
  font-size: 12px;
  font-weight: 750;
}

.activity-detail-meta a {
  color: var(--activity-coral);
  transition: color .2s ease;
}

.activity-detail-meta a:hover {
  color: #d94152;
}

.activity-detail-layout {
  display: block;
}

.activity-article {
  min-width: 0;
}

.activity-detail-section {
  border-radius: 16px;
  background: var(--activity-paper);
  box-shadow: 0 4px 15px rgba(91, 63, 43, .09);
}

.activity-detail-section {
  padding: 24px;
}

.activity-detail-section-head {
  margin-bottom: 14px;
}

.activity-detail-section-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--activity-coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}

.activity-detail-section-head h2 {
  margin: 0;
  color: var(--activity-ink);
  font-size: 22px;
  line-height: 1.25;
}

.activity-rich-content {
  color: #383331;
  font-size: 16px;
  line-height: 1.85;
}

.activity-rich-content > *:first-child {
  margin-top: 0;
}

.activity-rich-content > *:last-child {
  margin-bottom: 0;
}

.activity-rich-content p,
.activity-rich-content article,
.activity-rich-content div {
  max-width: 100%;
}

.activity-rich-content p {
  margin: 0 0 14px;
}

.activity-rich-content img {
  width: auto;
  max-width: 100%;
  height: auto !important;
  margin: 12px auto;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(91, 63, 43, .11);
}

.activity-rich-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

.activity-rich-content td,
.activity-rich-content th {
  padding: 10px;
  border: 1px solid var(--activity-line);
}

.related-activity-section {
  margin-top: 18px;
}

.related-activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-activity-list a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: #fff8f4;
  transition: transform .2s ease, box-shadow .2s ease;
}

.related-activity-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(91, 63, 43, .09);
}

.related-activity-list img {
  width: 86px;
  height: 66px;
  border-radius: 10px;
  background: #fff1e9;
  object-fit: cover;
}

.related-activity-list span {
  display: -webkit-box;
  overflow: hidden;
  color: #393432;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.activity-detail-empty {
  padding: 32px 18px;
  border-radius: 14px;
  background: #fff8f4;
  color: #857970;
  text-align: center;
}

.activity-detail-empty strong {
  display: block;
  color: var(--activity-ink);
  font-size: 19px;
}

.activity-detail-empty p {
  margin: 8px 0 0;
  font-size: 15px;
}

@media (max-width: 860px) {
  .activity-title-block {
    padding: 20px;
  }

  .activity-title-block h1 {
    font-size: 28px;
  }

  .activity-detail-summary {
    font-size: 16px;
  }

  .activity-detail-meta {
    grid-template-columns: 1fr;
  }

  .related-activity-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .activity-detail-nav {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .activity-detail-nav > span {
    display: none;
  }

  .activity-title-block {
    padding: 18px 16px;
  }

  .activity-title-block h1 {
    font-size: 25px;
  }

  .activity-detail-section {
    padding: 16px;
  }

  .activity-rich-content {
    font-size: 16px;
    line-height: 1.78;
  }
}
