/* Keep the approved community visual. Only wrapping and content-driven sizing. */
.topbar { justify-content: flex-start; }
.hero-actions { flex-wrap: wrap; }
.event-cover { background: #f1f2f5 url('assets/community-hero-bg.webp') center / cover; padding: 24px; align-content: center; justify-items: start; gap: 14px; color: #262629; }
.event-cover strong { font-size: clamp(30px, 3vw, 46px); line-height: 1.2; }
.event-cover-kind { font-size: 14px; }
.event-cover small { color: var(--muted); font-size: 11px; margin-top: 8px; }
.event-status { color: var(--soft); font-size: 12px; white-space: nowrap; }
.community-news .news-item { padding-bottom: 16px; }
.community-news { height: auto; min-height: 584px; }
.community-news .news-list { height: auto; min-height: 0; }
.community-news .news-more { margin-top: 12px; }
.activity-tags { display: flex; flex-wrap: wrap; gap: 6px; height: auto; }
.activity-tags > span, .activity-tags > span:nth-child(2) { width: auto; height: auto; min-height: 24px; padding: 3px 8px; flex: 0 0 auto; }
.activity-tags > span > span { width: auto; height: auto; white-space: nowrap; position: static; }
.community-news .news-title-text { white-space: normal; }
.community-news .news-meta { flex-wrap: wrap; gap: 6px 12px; }
.activity-banner { justify-content: space-between; gap: 24px; background: #fff; }
.special-event-copy { min-width: 0; }
.special-event-copy > span { font-size: 13px; color: var(--soft); }
.special-event-copy h3 { font-size: 26px; margin: 12px 0; line-height: 1.4; text-wrap: pretty; }
.special-event-copy p { font-size: 14px; color: var(--muted); margin: 0; }
.activity-banner-link { flex-shrink: 0; }
.events-all-list { display: grid; gap: 20px; }
.events-all-list .activity-card { width: 100%; grid-template-columns: minmax(220px, .7fr) minmax(0, 1fr); }
.events-all-list .activity-cover, .events-all-list .activity-card-body { width: 100%; }
.detail-hero .event-cover { width: 100%; height: 100%; min-height: 280px; }
.detail-official { width: auto; max-width: 100%; padding: 14px 24px; }
.event-topics, .event-sources { padding-left: 20px; font-size: 15px; line-height: 2; color: var(--muted); }
.event-sources a { color: var(--interaction-blue); }
.related-events { list-style: none; margin: 0 0 24px; padding: 0; }
.related-events li + li { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.related-events a { display: block; font-size: 14px; line-height: 1.7; }
.related-events span { display: block; font-size: 12px; color: var(--soft); }
@media (max-width: 760px) {
  .topbar { display: flex; height: 64px; min-height: 64px; padding: 12px 16px; }
  .hero { padding-top: 64px; }
  .activity-banner { height: auto; min-height: 176px; padding: 24px; align-items: flex-start; flex-direction: column; }
  .special-event-copy h3 { font-size: 22px; }
  .events-all-list .activity-card { grid-template-columns: minmax(0, 1fr); }
}
.course-strip { height: auto; min-height: var(--course-height); }
.course-grid { height: auto; }
.course-card { min-width: 0; display: flex; }
.course-card-inner { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.course-icon-shell { flex-shrink: 0; }
.course-desc { flex: 1; width: 100%; text-wrap: pretty; overflow-wrap: break-word; }
.course-link { flex-shrink: 0; white-space: nowrap; }
.course-pending, .course-card:hover .course-pending { color: var(--soft); cursor: default; }
.course-title, .activity-card h3, .activity-card-desc { text-wrap: pretty; }
.activity-card, .activity-card-body { min-width: 0; }
.activity-card { height: auto; min-height: 271px; }
.activity-card-body { height: auto; min-height: 207px; }
.activity-card-footer { gap: 16px; flex-wrap: wrap; }
.activity-signup { flex-shrink: 0; white-space: nowrap; }
.activity-section { scroll-margin-top: 88px; }
#activity-title { scroll-margin-top: 88px; }
.preview-note { margin: 0; padding: 20px 24px; color: var(--muted); background: var(--panel); text-align: center; font-size: 13px; line-height: 1.7; }
[aria-disabled="true"] { cursor: default; }
/* Activity content must fit the stage, not the original fixed-width artboard. */
.activity-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); gap: 24px; align-items: stretch; }
.activity-list { grid-auto-rows: 1fr; }
.activity-card, .events-all-list .activity-card { width: 100%; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 22px; padding: 18px; min-height: 0; align-items: center; }
.activity-card-body { width: 100%; height: 100%; min-height: 0; margin: 0; }
.activity-card-footer { margin-top: auto; padding-top: 16px; }
.activity-time { height: auto; flex-wrap: wrap; line-height: 1.6; }
.activity-signup { min-height: 42px; height: auto; width: auto; padding: 11px 24px; display: inline-flex; align-items: center; justify-content: center; }
.activity-signup span { width: auto; height: auto; position: static; }
.event-image-link { display: block; min-width: 0; }
.event-figure { width: 100%; min-width: 0; margin: 0; }
.activity-cover.event-image { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; padding: 0; position: relative; display: block; background: #f2f3f6; }
.event-image img { width: 100%; height: 100%; object-fit: cover; }
.event-image.poster img { object-fit: cover; object-position: center top; }
.event-image.shenzhen img { position: absolute; top: 0; height: auto; width: 100%; }
.event-image.shenzhen { aspect-ratio: 1200 / 385; margin-block: 8%; background: #ffdf00; }
.event-image.overlay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(8,17,35,.65),rgba(8,17,35,.12)); }
.cover-label { position: absolute; inset: 18px; z-index: 1; display: flex; flex-direction: column; justify-content: center; color: white; gap: 12px; }
.cover-label strong { font-size: clamp(20px, 2.3vw, 36px); line-height: 1.25; }
.cover-label span { font-size: 13px; }
.event-figure figcaption { color: #727886; font-size: 11px; line-height: 1.5; padding-top: 8px; }
.community-news { width: 100%; min-width: 0; min-height: 0; padding: 24px; }
.community-news h3 { margin-bottom: 6px; }
.calendar-caption { font-size: 12px; color: var(--soft); margin: 0 0 20px; }
.community-news .news-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.community-news .news-title { align-items: flex-start; }
.community-news .news-status { flex-shrink: 0; }
.community-news .news-item { padding-bottom: 20px; }
.community-news .news-more { margin-top: 20px; align-self: flex-start; }
.activity-heading-copy { flex-wrap: wrap; gap: 8px 16px; }
.observer-banner { width: 100%; height: auto; min-height: 0; margin-top: 24px; padding: 0; display: grid; grid-template-columns: minmax(280px,.85fr) minmax(0,1.15fr); gap: 0; overflow: hidden; background: #fffdf5; }
.observer-art { min-width: 0; min-height: 280px; overflow: hidden; position: relative; align-self: stretch; background: #ffedaf; }
.observer-art img { position: absolute; top: 0; width: 100%; height: auto; display: block; }
.observer-copy { padding: 32px 40px; min-width: 0; }
.observer-eyebrow { color: #74726a; letter-spacing: .1em; font-size: 11px; }
.observer-copy h3 { font-size: 28px; margin: 10px 0 12px; line-height: 1.4; }
.observer-copy p { font-size: 14px; color: #62636a; line-height: 1.9; margin: 8px 0; }
.observer-copy .observer-lead { font-size: 19px; color: #262629; font-weight: 600; }
.observer-pillars { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0; }
.observer-pillars li { padding: 5px 9px; border: 1px solid #eadfbf; border-radius: 5px; font-size: 12px; color: #736849; }
.observer-pending { color: #828078; font-size: 12px; }
.event-agenda { list-style: none; margin: 20px 0 0; padding: 0; }
.event-agenda li { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.agenda-time { font-size: 13px; color: var(--soft); line-height: 1.7; font-variant-numeric: tabular-nums; }
.event-agenda h3 { font-size: 16px; margin: 0; line-height: 1.6; }
.event-agenda p { margin: 4px 0 0; font-size: 13px; }
.event-registration { scroll-margin-top: 88px; }
.registration-panel { display: grid; grid-template-columns: 248px minmax(0,1fr); align-items: center; gap: 28px; background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.registration-code { background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.registration-qr { position: relative; width: 224px; height: 224px; overflow: hidden; background: #fff; }
.registration-qr img { display: block; position: absolute; inset: 0 auto auto 0; width: 100%; height: 100%; max-width: none; }
.registration-copy { min-width: 0; }
.registration-label { font-size: 12px; color: var(--soft); }
.registration-copy h3 { font-size: 20px; line-height: 1.5; margin: 8px 0 12px; }
.registration-copy p { margin: 10px 0; }
.registration-copy .registration-event-name { font-size: 13px; color: #444; }
.registration-original { color: var(--interaction-blue); font-size: 14px; display: inline-block; padding: 6px 0; }
.registration-original:hover { text-decoration: underline; }
.registration-copy .registration-hint { font-size: 12px; color: var(--soft); line-height: 1.7; }
@media (max-width: 1200px) {
 .registration-panel { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .registration-code { justify-self: start; }
}
@media (max-width: 480px) {
 .registration-panel { padding: 16px; }
 .registration-code { padding: 8px; width: 100%; max-width: 242px; justify-self: center; }
 .registration-qr { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (max-width: 1100px) {
  .activity-layout { grid-template-columns: minmax(0, 1fr); }
  .community-news .news-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; }
  .news-item::after { display: none; }
  .observer-copy { padding: 28px; }
}
@media (max-width: 640px) {
  .activity-card, .events-all-list .activity-card { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 14px; }
  .activity-list { grid-auto-rows: auto; }
  .activity-cover.event-cover { width: 100%; }
  .community-news .news-list { display: block; }
  .observer-banner { grid-template-columns: minmax(0,1fr); padding: 0; }
  .observer-art { min-height: 0; aspect-ratio: 1024 / 680; }
  .observer-copy { padding: 24px; }
  .observer-copy h3 { font-size: 25px; }
  .event-agenda li { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .cover-label strong { font-size: 30px; }
}
:focus-visible { outline: 2px solid var(--interaction-blue); outline-offset: 5px; }
html[data-input="pointer"] :focus { outline: none !important; }
html[data-input="keyboard"] :focus-visible { outline: 2px solid #6073f0; outline-offset: 4px; }
.detail-page { background: #f7f8fb; min-height: 100vh; }
.detail-topbar { background: rgba(255,255,255,.94); }
.detail-stage { width: min(1400px, calc(100% - 80px)); margin: auto; padding: 100px 0 72px; }
.detail-breadcrumb { display: flex; gap: 12px; color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.detail-breadcrumb a:hover { color: var(--interaction-blue); }
.detail-hero { padding: 32px; background: white; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.detail-cover { aspect-ratio: 16/10; background: #e2e2e2; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.detail-title { margin: 16px 0 20px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.45; letter-spacing: 0; text-wrap: pretty; }
.detail-summary { font-size: 16px; line-height: 1.9; color: var(--muted); }
.detail-preview-label { color: var(--soft); font-size: 13px; }
.detail-facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 24px 0; font-size: 14px; }
.detail-facts dt { color: var(--soft); margin-bottom: 8px; }
.detail-facts dd { margin: 0; }
.detail-disabled { display: inline-flex; padding: 12px 24px; border-radius: 999px; background: #f1f2f5; color: var(--soft); border: 0; font: inherit; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 24px; align-items: start; }
.detail-content, .detail-aside { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.detail-content section + section { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 28px; }
.detail-content h2, .detail-aside h2 { font-size: 22px; line-height: 1.5; margin: 0 0 16px; }
.detail-content p, .detail-aside p { font-size: 15px; line-height: 1.9; color: var(--muted); }
.detail-placeholder { color: var(--soft) !important; }
.detail-aside .course-link { color: var(--interaction-blue); }
@media (max-width: 980px) {
  .detail-stage { width: calc(100% - 40px); }
  .detail-hero { gap: 24px; }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .course-card { padding: 0; }
  .course-card-inner { max-width: none; }
  .course-desc { flex: initial; }
  .detail-stage { width: calc(100% - 28px); padding-top: 90px; }
  .detail-hero { grid-template-columns: minmax(0,1fr); padding: 20px; }
  .detail-content, .detail-aside { padding: 24px; }
}
