:root {
  --page: #f4f7fb;
  --ink: #102033;
  --muted: #627089;
  --line: rgba(16, 32, 51, 0.12);
  --card: rgba(255, 255, 255, 0.93);
  --accent: #18afe3;
  --accent-strong: #0c82ad;
  --orange: #ff9d00;
  --yellow: #ffd640;
  --shadow: 0 22px 55px rgba(16, 32, 51, 0.16);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(244,247,251,0.98) 34rem),
    url("./assets/mecamp-background.jpeg") center top / auto 34rem no-repeat,
    var(--page);
}
body:has(.preview-modal[open]) { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, p, a, button, span, strong, small { overflow-wrap: anywhere; }

.site-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24,175,227,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,175,227,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent 0, black 18rem, transparent 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 16px));
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 0 max(36px, env(safe-area-inset-bottom));
}

.hero { min-height: auto; }
.topbar {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 36px rgba(16,32,51,0.11);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.brand img {
  width: 84px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: var(--radius);
  background: #fff;
}
.brand span {
  max-width: 118px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: right;
  text-transform: uppercase;
}
.nav-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.nav-links a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: rgba(24,175,227,0.08);
  color: #244057;
  font-weight: 800;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: 0;
}

.hero-grid {
  display: grid;
  gap: 16px;
  padding: 42px 0 26px;
}
.hero-copy {
  color: #fff;
  text-shadow: 0 10px 28px rgba(128, 70, 0, 0.32);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy .eyebrow { color: #fff; opacity: 0.92; }
h1 {
  max-width: 8.8em;
  margin-bottom: 14px;
  font-size: clamp(2.55rem, 15vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-copy p:not(.eyebrow) {
  margin-bottom: 18px;
  color: rgba(255,255,255,0.96);
  font-size: 0.98rem;
  line-height: 1.72;
}
.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.primary-action, .secondary-action, .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}
.primary-action, .submit-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(12,130,173,0.28);
}
.secondary-action { color: #17334a; background: #fff; }

.hero-stats {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 10px;
  border: 1px solid rgba(16,32,51,0.08);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(24,175,227,0.12), rgba(255,214,64,0.2));
}
.hero-stats strong { font-size: 1.8rem; line-height: 1; }
.hero-stats span { color: var(--muted); font-size: 0.78rem; font-weight: 900; }

.program-section, .workspace { margin-top: 18px; }
.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 8vw, 2.05rem);
  line-height: 1.12;
  text-wrap: balance;
}
.section-heading.compact h2 { font-size: 1.42rem; }
.program-gallery {
  display: grid;
  gap: 14px;
}
.program-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.program-gallery img { width: 100%; height: 100%; object-fit: cover; }
.program-gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(16,32,51,0.72);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.workspace {
  display: grid;
  gap: 18px;
}
.upload-panel, .works-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(16,32,51,0.1);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.upload-form { display: grid; gap: 12px; }
.upload-form label:not(.file-drop) { display: grid; gap: 6px; }
.upload-form label > span {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 900;
}
.upload-form input, .upload-form textarea, .comment-form input, .search-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
}
.upload-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  color: var(--ink);
  background: rgba(255,255,255,0.92);
}
.upload-form input, .comment-form input, .search-box input {
  min-height: 44px;
  padding: 0 12px;
}
.upload-form textarea {
  min-height: 94px;
  resize: vertical;
  padding: 12px;
}
.upload-form input:focus, .upload-form textarea:focus,
.upload-form select:focus,
.comment-form input:focus, .search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(24,175,227,0.14);
}
.file-drop {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px dashed rgba(24,175,227,0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24,175,227,0.12), rgba(255,214,64,0.2)),
    #fff;
  cursor: pointer;
}
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop b, .type-badge, .count-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: rgba(24,175,227,0.12);
  font-size: 0.76rem;
  font-weight: 900;
}
.file-drop small { color: var(--muted); line-height: 1.55; }

.works-heading, .controls {
  display: grid;
  gap: 10px;
}
.count-pill {
  justify-content: center;
  width: 100%;
}
.search-box {
  position: relative;
  width: 100%;
}
.search-box span {
  position: absolute;
  left: 12px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}
.search-box input { padding-left: 36px; padding-right: 40px; }
.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.filter-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.filter-tabs button {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.filter-tabs button:hover, .filter-tabs button.is-active, .filter-tabs button:focus-visible,
.search-box button:hover, .search-box button:focus-visible {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  outline: 0;
}

.work-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.work-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  border: 1px solid rgba(16,32,51,0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 34px rgba(16,32,51,0.1);
}
.work-art {
  position: relative;
  min-height: 116px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
}
.work-art::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -64px;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 34px solid rgba(255,255,255,0.2);
}
.work-art .type-badge { color: #fff; background: rgba(16,32,51,0.3); }
.work-art strong,
.work-art small {
  position: relative;
  z-index: 1;
  display: block;
}
.work-art strong {
  margin-top: 16px;
  max-width: 8em;
  font-size: 1.25rem;
  line-height: 1.15;
}
.work-art small {
  margin-top: 4px;
  color: rgba(255,255,255,0.82);
  font-weight: 900;
}
.work-icon {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.24;
}
.work-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}
.work-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.28; }
.work-body p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.category-badge {
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 2px 7px;
}
.engagement-bar, .preview-engagement {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.engagement-bar { border-top: 1px solid var(--line); }
.preview-engagement {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.engage-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  color: #31506a;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
}
.engage-btn:last-child { border-right: 0; }
.engage-btn.is-active, .engage-btn:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: 0;
}
.engage-icon { flex: 0 0 auto; font-size: 1.08rem; line-height: 1; }
.engage-count { min-width: 1.3em; font-size: 0.78rem; font-weight: 900; line-height: 1; }

.empty-state {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 20px;
  border: 1px dashed rgba(16,32,51,0.16);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255,255,255,0.72);
  text-align: center;
}

.preview-modal {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.preview-modal::backdrop {
  background: rgba(16,32,51,0.58);
  backdrop-filter: blur(8px);
}
.preview-card {
  position: relative;
  overflow: auto;
  min-height: 100dvh;
  background: #fff;
}
.close-button {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(16,32,51,0.62);
  cursor: pointer;
}
.preview-stage {
  display: grid;
  place-items: center;
  min-height: 34dvh;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #18afe3, #ff9d00);
}
.preview-stage iframe, .preview-stage img {
  width: 100%;
  height: 100%;
  min-height: calc(34dvh - 32px);
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
}
.preview-placeholder {
  display: grid;
  gap: 12px;
  place-items: center;
  text-align: center;
}
.preview-placeholder strong { font-size: 4rem; line-height: 1; opacity: 0.32; }
.preview-body {
  display: grid;
  gap: 12px;
  padding: 18px 14px max(22px, env(safe-area-inset-bottom));
}
.preview-body h2 { margin: 0; font-size: 1.42rem; line-height: 1.2; }
.preview-body p { margin: 0; color: var(--muted); line-height: 1.7; }
.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}
.comment-section {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.comment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.comment-heading h3 { margin: 0; font-size: 1rem; }
.comment-heading span { color: var(--muted); font-size: 0.82rem; font-weight: 900; white-space: nowrap; }
.comment-list {
  display: grid;
  gap: 8px;
  max-height: 28dvh;
  overflow: auto;
}
.comment-item {
  padding: 10px;
  border-radius: var(--radius);
  background: #f5f8fb;
}
.comment-item strong { display: block; margin-bottom: 4px; font-size: 0.82rem; }
.comment-item p { margin: 0; color: #3c5064; font-size: 0.9rem; line-height: 1.55; }
.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}
.comment-form button {
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}
.toast-root {
  position: fixed;
  right: 10px;
  left: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  gap: 10px;
}
.toast {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(16,32,51,0.92);
  box-shadow: var(--shadow);
  animation: toastIn 0.22s ease both;
}
.floating-mark {
  position: fixed;
  z-index: 60;
  color: var(--orange);
  font-size: 1.55rem;
  font-weight: 900;
  pointer-events: none;
  animation: floatMark 0.72s ease-out forwards;
}
.click-burst {
  position: fixed;
  z-index: 59;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  animation: burst 0.52s ease-out forwards;
}
@keyframes floatMark {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.8); }
  18% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -62px) scale(1.25); }
}
@keyframes burst { to { opacity: 0; transform: translate(-50%, -50%) scale(4); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

@media (min-width: 431px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats div { display: grid; align-content: center; gap: 8px; }
  .filter-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-stage { min-height: 40dvh; }
  .preview-stage iframe, .preview-stage img { min-height: calc(40dvh - 32px); }
}

@media (min-width: 721px) {
  body {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.04), rgba(244,247,251,0.96) 44rem),
      url("./assets/mecamp-background.jpeg") center top / min(1600px, 130vw) auto no-repeat,
      var(--page);
  }
  .page-shell { width: min(1180px, calc(100% - 32px)); padding-top: 18px; }
  .hero { min-height: clamp(620px, 88svh, 850px); display: flex; flex-direction: column; }
  .topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px;
  }
  .brand { justify-content: flex-start; width: auto; }
  .brand img { width: 96px; height: 48px; }
  .brand span { max-width: none; white-space: nowrap; text-align: left; font-size: 0.85rem; }
  .nav-links { display: flex; align-items: center; gap: 8px; }
  .nav-links a { padding: 0 13px; background: transparent; }
  .hero-grid {
    flex: 1;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
    align-items: end;
    gap: 30px;
    padding: clamp(82px, 13vw, 150px) 0 clamp(52px, 9vw, 86px);
  }
  h1 { max-width: 9em; font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: 0.96; }
  .hero-copy p:not(.eyebrow) { max-width: 760px; font-size: clamp(1.02rem, 2vw, 1.25rem); line-height: 1.8; }
  .hero-stats { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .hero-stats div { display: flex; min-height: 78px; padding: 16px; }
  .hero-stats strong { font-size: 2.2rem; }
  .program-gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
  .program-gallery figure { min-height: 290px; aspect-ratio: auto; }
  .workspace { grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); align-items: start; }
  .upload-panel { position: sticky; top: 90px; }
  .upload-panel, .works-panel { padding: 18px; }
  .works-heading, .controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .count-pill { width: auto; }
  .search-box { flex: 1 1 280px; min-width: 210px; }
  .filter-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card:first-child { grid-column: span 2; }
  .work-card:first-child .work-art { min-height: 170px; }
  .work-art { min-height: 130px; padding: 16px; }
  .work-icon { right: 18px; bottom: 14px; font-size: 4.5rem; }
  .work-body { padding: 16px; }
  .engage-btn { min-height: 48px; gap: 6px; }
  .engage-btn:hover { color: #fff; background: var(--accent); }
  .engage-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 5;
    width: max-content;
    max-width: 88px;
    padding: 6px 8px;
    border-radius: var(--radius);
    color: #fff;
    background: rgba(16,32,51,0.9);
    font-size: 0.74rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .engage-btn:hover::after, .engage-btn:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .engage-icon { font-size: 1.18rem; }
  .engage-count { font-size: 0.86rem; }
  .preview-modal {
    width: min(980px, calc(100vw - 28px));
    height: auto;
    margin: auto;
    border-radius: var(--radius);
  }
  .preview-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    min-height: 0;
    max-height: min(86dvh, 760px);
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .close-button { position: absolute; top: 12px; right: 12px; }
  .preview-stage { min-height: 520px; padding: 28px; }
  .preview-stage iframe, .preview-stage img { min-height: 440px; }
  .preview-body { overflow: auto; padding: 24px; }
  .preview-body h2 { font-size: 1.75rem; }
  .comment-list { max-height: 190px; }
  .toast-root { left: auto; right: 18px; bottom: 18px; }
  .toast { width: auto; min-width: 220px; max-width: min(340px, calc(100vw - 36px)); }
}

@media (min-width: 1024px) {
  .work-card:hover, .work-card:focus-visible {
    border-color: rgba(24,175,227,0.42);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(16,32,51,0.16);
    outline: 0;
  }
  .primary-action, .secondary-action, .submit-button, .work-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }
  .primary-action:hover, .secondary-action:hover, .submit-button:hover,
  .primary-action:focus-visible, .secondary-action:focus-visible, .submit-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(16,32,51,0.18);
    outline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026-06-17: MECAMP 作品展示类型 */
.theme-arena {
  overflow: hidden;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid rgba(24,175,227,0.26);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(232,248,255,0.96) 54%, rgba(255,243,218,0.94)),
    #fff;
  box-shadow: 0 22px 55px rgba(16,32,51,0.12), inset 0 0 0 1px rgba(255,255,255,0.86);
}
.track-title {
  display: grid;
  grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.track-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24,175,227,0.42), rgba(255,157,0,0.44), transparent);
}
.track-title h3 {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(1.45rem, 7vw, 2.2rem);
  line-height: 1.1;
}
.track-title h3::before,
.track-title h3::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 10px 4px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 14px 0 0 var(--accent);
}
.track-intro {
  margin: 0 auto 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  text-align: center;
}
.theme-filter {
  display: grid;
  gap: 20px;
}
.theme-all {
  justify-self: center;
  display: inline-grid;
  gap: 3px;
  min-width: min(100%, 260px);
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid rgba(24,175,227,0.32);
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: rgba(255,255,255,0.86);
  cursor: pointer;
}
.theme-all span {
  color: var(--muted);
  font-size: 0.78rem;
}
.track-group {
  display: grid;
  gap: 12px;
}
.track-group h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 5vw, 1.85rem);
}
.track-group h4::before,
.track-group h4::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 18px 0 0 var(--accent);
}
.general-track-grid,
.special-track-grid {
  display: grid;
  gap: 10px;
}
.theme-card,
.special-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 32px rgba(16,32,51,0.1);
}
.theme-card {
  display: grid;
  align-content: center;
  min-height: 142px;
  padding: 22px 18px 18px;
  background:
    linear-gradient(135deg, rgba(24,175,227,0.98), rgba(84,202,238,0.94) 58%, rgba(255,157,0,0.86)),
    var(--accent);
}
.theme-card::before,
.theme-card::after,
.special-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  box-shadow: 18px -18px 0 var(--orange), 36px 8px 0 rgba(255,255,255,0.72);
}
.theme-card::before {
  right: 18px;
  top: 28px;
}
.theme-card::after {
  right: 22px;
  bottom: 18px;
}
.theme-card strong {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  line-height: 1.1;
}
.theme-card small {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 1.08rem;
  font-weight: 900;
}
.theme-card i {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255,255,255,0.24);
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}
.special-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 150px;
  padding: 18px 12px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(225,247,255,0.94));
  text-align: center;
}
.special-card span {
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
}
.special-card strong {
  font-size: 1.1rem;
  line-height: 1.38;
}
.special-card::after {
  right: 12px;
  top: 12px;
  width: 9px;
  height: 9px;
  opacity: 0.68;
}
.theme-card.is-active,
.special-card.is-active,
.theme-all.is-active {
  outline: 2px solid var(--orange);
  outline-offset: -4px;
  box-shadow: 0 0 0 3px rgba(24,175,227,0.22), 0 18px 34px rgba(24,175,227,0.18);
}
.theme-card:hover,
.special-card:hover,
.theme-all:hover,
.theme-card:focus-visible,
.special-card:focus-visible,
.theme-all:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid rgba(255,157,0,0.78);
  outline-offset: -4px;
}
.theme-learning-work .work-art { background: linear-gradient(135deg, #42a5e8, #71ccff); }
.theme-social-service .work-art { background: linear-gradient(135deg, #398dd3, #6cc7f5); }
.theme-hardware-interaction .work-art { background: linear-gradient(135deg, #487be7, #77d7ff); }
.theme-smart-elderly .work-art,
.theme-teen-health .work-art,
.theme-ancient-books .work-art,
.theme-intangible-heritage .work-art {
  background: linear-gradient(135deg, #4b4398, #5d8799);
}

/* 2026-06-17: 上传弹窗 + 管理员后台优化 */
body:has(.action-modal[open]) { overflow: hidden; }

.nav-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav-links a, .nav-button {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(24,175,227,0.08);
  color: #244057;
  font-weight: 800;
  cursor: pointer;
}
.nav-links a:hover, .nav-links a:focus-visible,
.nav-button:hover, .nav-button:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: 0;
}
.admin-nav { background: rgba(255,157,0,0.14); }
.secondary-action { border: 0; }

.workspace { grid-template-columns: 1fr; }
.works-panel { width: 100%; }
.works-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}
.compact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(12,130,173,0.18);
}
.compact-action.ghost {
  border: 1px solid rgba(24,175,227,0.28);
  color: var(--accent-strong);
  background: rgba(24,175,227,0.08);
  box-shadow: none;
}
.compact-action.danger,
.admin-row-actions .danger {
  color: #fff;
  background: #e54b4b;
}
.compact-action:hover, .compact-action:focus-visible,
.admin-row-actions button:hover, .admin-row-actions button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.action-modal {
  width: min(680px, calc(100vw - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}
.action-modal::backdrop {
  background: rgba(16,32,51,0.58);
  backdrop-filter: blur(8px);
}
.action-card {
  position: relative;
  overflow: auto;
  max-height: calc(100dvh - 20px);
  padding: 18px 14px max(18px, env(safe-area-inset-bottom));
  border-radius: var(--radius);
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
}
.action-card .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(16,32,51,0.62);
}
.modal-hint {
  margin: -3px 46px 14px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.auth-card { max-width: 420px; margin: 0 auto; }
.form-status {
  min-height: 20px;
  margin: 0;
  color: #d73737;
  font-size: 0.86rem;
  font-weight: 800;
}
.auth-note {
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.admin-modal { width: min(1120px, calc(100vw - 20px)); }
.admin-card { display: grid; gap: 14px; }
.admin-head {
  display: grid;
  gap: 12px;
  padding-right: 44px;
}
.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,0.08);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(24,175,227,0.12), rgba(255,214,64,0.2));
}
.admin-summary strong { font-size: 1.35rem; line-height: 1; }
.admin-summary span { color: var(--muted); font-size: 0.78rem; font-weight: 900; }
.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.admin-table {
  display: grid;
  min-width: 860px;
}
.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr 1.8fr 1.35fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
}
.admin-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #31506a;
  background: #eef7fb;
  font-size: 0.82rem;
  font-weight: 900;
}
.admin-table-row { border-top: 1px solid var(--line); }
.admin-table-row:nth-child(odd) { background: rgba(245,248,251,0.72); }
.admin-work-title { display: grid; gap: 4px; min-width: 0; }
.admin-work-title strong { line-height: 1.25; }
.admin-work-title small,
.admin-data-cell {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-row-actions button {
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: rgba(24,175,227,0.1);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}
.admin-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 431px) {
  .works-actions {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
  .admin-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 721px) {
  .nav-links { display: flex; align-items: center; gap: 8px; }
  .nav-links a, .nav-button { padding: 0 13px; background: transparent; }
  .nav-button.admin-nav { background: rgba(255,157,0,0.12); }
  .workspace { grid-template-columns: 1fr; }
  .works-heading { align-items: flex-start; }
  .works-actions { justify-content: end; }
  .work-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-card:first-child { grid-column: span 1; }
  .work-card:first-child .work-art { min-height: 130px; }
  .action-card { padding: 24px; }
  .upload-dialog-card { width: min(680px, calc(100vw - 36px)); }
  .admin-card { padding: 24px; }
  .admin-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .admin-actions { grid-template-columns: repeat(4, auto); align-items: center; }
  .admin-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .theme-arena { padding: 36px 40px 44px; }
  .general-track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .special-track-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .theme-card { min-height: 170px; padding: 28px 38px; }
  .theme-card strong { font-size: 2rem; }
  .theme-card small { font-size: 1.18rem; }
  .special-card { min-height: 170px; }
}

/* 2026-06-17: UI polish pass for showcase, upload, and admin dashboard */
.section-subtitle {
  max-width: 720px;
  margin: -4px 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.featured-section {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(16,32,51,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.featured-list {
  display: grid;
  gap: 12px;
}
.featured-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 16px;
  border: 1px solid rgba(16,32,51,0.09);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(255,214,64,0.36), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(231,248,255,0.96));
  box-shadow: 0 16px 34px rgba(16,32,51,0.1);
  cursor: pointer;
}
.featured-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -54px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 30px solid rgba(24,175,227,0.12);
}
.featured-card:hover,
.featured-card:focus-visible,
.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid rgba(255,157,0,0.64);
  outline-offset: -4px;
}
.featured-kicker,
.featured-meta,
.featured-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.featured-kicker span,
.featured-kicker b,
.featured-meta span,
.featured-stats span,
.work-title-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: rgba(24,175,227,0.1);
  font-size: 0.74rem;
  font-weight: 900;
}
.featured-kicker b { color: #fff; background: var(--accent); }
.featured-card h3,
.featured-card p {
  position: relative;
  z-index: 1;
  margin: 0;
}
.featured-card h3 { font-size: 1.2rem; line-height: 1.25; }
.featured-card p { color: var(--muted); line-height: 1.62; }
.featured-stats span { background: rgba(255,157,0,0.12); color: #9a6200; }

.nav-links { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.controls {
  grid-template-columns: 1fr;
  align-items: end;
}
.sort-box {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.sort-box > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}
.sort-box select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255,255,255,0.94);
  outline: 0;
  font-weight: 800;
}
.sort-box select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(24,175,227,0.14);
}

.label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.label-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.upload-tips {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(24,175,227,0.16);
  border-radius: var(--radius);
  background: rgba(24,175,227,0.06);
}
.upload-tips span {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 800;
}
.upload-tips span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 900;
}
.file-drop.is-dragover {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 2px rgba(255,157,0,0.2), 0 16px 34px rgba(255,157,0,0.12);
}
.form-status:not(:empty) {
  min-height: auto;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--accent-strong);
  background: rgba(24,175,227,0.08);
}
.form-status.is-error:not(:empty) {
  color: #b72525;
  background: rgba(229,75,75,0.1);
}

.work-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}
.work-title-row h3 { min-width: 0; }
.work-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.work-card:hover { box-shadow: 0 22px 44px rgba(16,32,51,0.14); }
.engage-btn.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.engage-label { display: none; }

.admin-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,0.08);
  border-radius: var(--radius);
  background: rgba(245,248,251,0.78);
}
.admin-toolbar .search-box,
.admin-toolbar .sort-box { min-width: 0; }
.admin-row-actions button:nth-child(3) {
  color: #9a6200;
  background: rgba(255,157,0,0.12);
}

.preview-engagement .engage-label,
.engagement-bar .engage-label {
  font-size: 0.78rem;
  font-weight: 900;
}

@media (min-width: 560px) {
  .featured-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .controls { grid-template-columns: minmax(0, 1fr) 180px; }
  .upload-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 721px) {
  .featured-section { padding: 20px; }
  .admin-toolbar { grid-template-columns: minmax(260px, 1fr) 190px 170px; align-items: end; }
}

@media (max-width: 720px) {
  .admin-table-wrap { overflow: visible; border: 0; background: transparent; }
  .admin-table { min-width: 0; gap: 10px; }
  .admin-table-head { display: none; }
  .admin-table-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 24px rgba(16,32,51,0.08);
  }
  .admin-table-row:nth-child(odd) { background: #fff; }
  .admin-table-row > *[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
  }
  .admin-row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-row-actions button { min-height: 36px; }
}

@media (max-width: 430px) {
  .nav-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links a, .nav-button { font-size: 0.82rem; }
  .featured-card { min-height: auto; }
  .work-title-row { grid-template-columns: 1fr; }
}

/* 2026-06-17: Admin review workflow */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}
.status-pill.warning { color: #9a6200; background: rgba(255,157,0,0.16); }
.status-pill.success { color: #09734d; background: rgba(17,185,129,0.14); }
.status-pill.danger { color: #b72525; background: rgba(229,75,75,0.12); }

.review-lock {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px dashed rgba(255,157,0,0.42);
  border-radius: var(--radius);
  color: #7a5200;
  background: rgba(255,157,0,0.1);
  line-height: 1.55;
}
.review-lock strong { font-size: 0.9rem; }
.review-lock span { font-size: 0.82rem; }

.admin-summary .summary-tile,
.admin-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,0.08);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(24,175,227,0.12), rgba(255,214,64,0.2));
  text-align: left;
}
.admin-summary .summary-tile {
  cursor: pointer;
  color: inherit;
}
.admin-summary .summary-tile.clickable:hover,
.admin-summary .summary-tile.clickable:focus-visible,
.admin-summary .summary-tile.is-active {
  outline: 2px solid rgba(255,157,0,0.72);
  outline-offset: -2px;
  background: linear-gradient(135deg, rgba(255,157,0,0.2), rgba(255,214,64,0.26));
}
.admin-summary .summary-tile strong,
.admin-summary div strong { font-size: 1.35rem; line-height: 1; }
.admin-summary .summary-tile span,
.admin-summary div span { color: var(--muted); font-size: 0.78rem; font-weight: 900; }

.admin-table-head.review-head,
.admin-table-row.review-row {
  grid-template-columns: 1.7fr 0.9fr 0.75fr 1fr 1.45fr 1.6fr;
}
.admin-table-row.status-pending { background: rgba(255,157,0,0.06); }
.admin-table-row.status-rejected { background: rgba(229,75,75,0.045); }
.admin-row-actions button.success {
  color: #08724b;
  background: rgba(17,185,129,0.14);
}
.admin-row-actions button.danger,
.admin-row-actions button.ghost-danger {
  color: #b72525;
  background: rgba(229,75,75,0.1);
}
.admin-row-actions button:hover,
.admin-row-actions button:focus-visible {
  transform: translateY(-1px);
}

@media (min-width: 721px) {
  .admin-toolbar { grid-template-columns: minmax(240px, 1fr) 180px 160px 160px; align-items: end; }
  .admin-table { min-width: 1080px; }
}

@media (max-width: 720px) {
  .admin-table-head.review-head,
  .admin-table-row.review-row { grid-template-columns: 1fr; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 2026-06-18: compact landing + one-line category filters, classroom module removed */
body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(244,247,251,0.98) 24rem),
    url("./assets/mecamp-background.jpeg") center top / auto 24rem no-repeat,
    var(--page);
}
.page-shell {
  padding-top: max(8px, env(safe-area-inset-top));
}
.topbar {
  padding: 8px 10px;
  gap: 8px;
}
.brand img {
  width: 72px;
  height: 36px;
}
.brand span {
  font-size: 0.72rem;
}
.nav-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.nav-links a,
.nav-button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.82rem;
}
.hero {
  min-height: auto !important;
  display: block !important;
}
.hero-grid {
  gap: 12px;
  padding: 24px 0 14px;
}
.hero-copy .eyebrow {
  margin-bottom: 6px;
  font-size: 0.7rem;
}
h1 {
  max-width: 12em;
  margin-bottom: 8px;
  font-size: clamp(2rem, 8vw, 3.15rem);
  line-height: 0.98;
}
.hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.hero-actions {
  gap: 8px;
}
.primary-action,
.secondary-action,
.submit-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
}
.hero-stats {
  gap: 8px;
  padding: 8px;
}
.hero-stats div {
  min-height: 54px;
  padding: 10px;
}
.hero-stats strong {
  font-size: 1.5rem;
}
.hero-stats span {
  font-size: 0.7rem;
}
.featured-section {
  margin-top: 6px;
}
.section-heading.compact .eyebrow,
.section-heading .eyebrow {
  margin-bottom: 5px;
}
.section-heading.compact h2,
.section-heading h2 {
  margin-bottom: 6px;
}
.section-subtitle {
  margin-bottom: 10px;
  line-height: 1.55;
  font-size: 0.9rem;
}
.workspace {
  margin-top: 12px;
}
.works-heading {
  gap: 10px;
}
.works-actions {
  gap: 6px;
}
.compact-action,
.count-pill {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.82rem;
}
.theme-arena {
  margin-top: 12px;
  padding: 14px 14px 16px;
}
.track-title {
  margin-bottom: 6px;
}
.track-title h3 {
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
}
.track-title h3::before,
.track-title h3::after {
  width: 7px;
  height: 7px;
  margin: 0 7px 3px;
  box-shadow: 10px 0 0 var(--accent);
}
.track-intro {
  display: none;
}
.theme-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.theme-all,
.theme-card,
.special-card {
  min-height: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(16,32,51,0.08);
}
.theme-all {
  justify-self: stretch;
  min-width: 0;
  padding: 7px 10px;
  text-align: center;
}
.theme-all span,
.theme-card small,
.theme-card i,
.special-card span,
.theme-card::before,
.theme-card::after,
.special-card::after {
  display: none;
}
.track-group {
  gap: 6px;
}
.track-group h4 {
  justify-content: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
}
.track-group h4::before,
.track-group h4::after {
  width: 6px;
  height: 6px;
  box-shadow: 10px 0 0 var(--accent);
}
.general-track-grid,
.special-track-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.theme-card,
.special-card {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 8px 10px;
  text-align: center;
}
.theme-card strong,
.special-card strong {
  font-size: 0.9rem;
  line-height: 1.18;
}
.special-card strong br {
  display: none;
}

@media (min-width: 721px) {
  body {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.12), rgba(244,247,251,0.98) 26rem),
      url("./assets/mecamp-background.jpeg") center top / min(1400px, 118vw) auto no-repeat,
      var(--page);
  }
  .page-shell {
    padding-top: 12px;
  }
  .topbar {
    top: 8px;
    padding: 8px 10px;
  }
  .brand img {
    width: 82px;
    height: 40px;
  }
  .nav-links {
    gap: 6px;
  }
  .nav-links a,
  .nav-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    align-items: end;
    gap: 18px;
    padding: 34px 0 18px;
  }
  h1 {
    max-width: 12em;
    font-size: clamp(2.35rem, 5.2vw, 4.25rem);
  }
  .hero-copy p:not(.eyebrow) {
    max-width: 660px;
    font-size: 0.98rem;
    line-height: 1.62;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .primary-action,
  .secondary-action {
    width: auto;
    min-width: 118px;
    min-height: 36px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }
  .hero-stats div {
    display: grid;
    min-height: 56px;
    padding: 9px;
    gap: 2px;
  }
  .hero-stats strong {
    font-size: 1.55rem;
  }
  .featured-section {
    padding: 16px !important;
  }
  .featured-card {
    padding: 14px;
  }
  .theme-arena {
    padding: 12px 14px 14px !important;
  }
  .theme-filter {
    grid-template-columns: 0.72fr 2.3fr 2.3fr;
    align-items: end;
    gap: 8px;
  }
  .theme-all {
    min-height: 38px;
    padding: 6px 8px;
  }
  .theme-all span {
    display: none;
  }
  .track-group h4 {
    min-height: 20px;
    font-size: 0.75rem;
  }
  .general-track-grid,
  .special-track-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .theme-card,
  .special-card {
    min-height: 38px !important;
    padding: 7px 6px !important;
  }
  .theme-card strong,
  .special-card strong {
    font-size: clamp(0.72rem, 0.92vw, 0.86rem) !important;
  }
}

@media (min-width: 1040px) {
  .theme-filter {
    grid-template-columns: 0.65fr 2.05fr 2.05fr;
  }
  .theme-card strong,
  .special-card strong {
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 64px;
    height: 32px;
  }
  .brand span {
    max-width: 96px;
    font-size: 0.66rem;
  }
  .nav-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nav-links a,
  .nav-button {
    min-height: 32px;
    padding: 0 4px;
    font-size: 0.74rem;
  }
  .hero-grid {
    padding-top: 18px;
  }
  h1 {
    font-size: clamp(1.85rem, 13vw, 2.55rem);
  }
  .hero-copy p:not(.eyebrow) {
    font-size: 0.84rem;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-stats div {
    min-height: 48px;
    padding: 7px 5px;
  }
  .hero-stats strong {
    font-size: 1.25rem;
  }
  .hero-stats span {
    font-size: 0.62rem;
  }
  .theme-arena {
    padding: 12px 10px 14px;
  }
}


/* 2026-06-18 compact hero controls/stat cards: keep first screen lighter */
.hero-grid {
  padding: 16px 0 10px !important;
  gap: 10px !important;
  align-items: end;
}
.hero-copy .eyebrow {
  margin-bottom: 4px !important;
  font-size: 0.66rem !important;
}
h1 {
  margin-bottom: 6px !important;
  font-size: clamp(1.85rem, 5.6vw, 2.85rem) !important;
  line-height: 0.98 !important;
}
.hero-copy p:not(.eyebrow) {
  max-width: 680px !important;
  margin-bottom: 9px !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}
.hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
.hero-actions .primary-action,
.hero-actions .secondary-action {
  width: auto !important;
  min-width: 92px !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  box-shadow: 0 8px 18px rgba(12,130,173,0.16) !important;
}
.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 6px !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.10) !important;
}
.hero-stats div {
  display: grid !important;
  place-items: center !important;
  min-height: 40px !important;
  padding: 6px 8px !important;
  gap: 2px !important;
  border-radius: 9px !important;
  text-align: center !important;
}
.hero-stats strong {
  font-size: 1.05rem !important;
  line-height: 1 !important;
}
.hero-stats span {
  font-size: 0.62rem !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}
.featured-section {
  margin-top: 4px !important;
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px) !important;
    padding: 18px 0 10px !important;
    gap: 14px !important;
  }
  .hero-stats {
    max-width: 330px;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    padding: 12px 0 8px !important;
  }
  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 5px !important;
  }
  .hero-stats div {
    min-height: 36px !important;
    padding: 5px 4px !important;
  }
  .hero-stats strong {
    font-size: 0.98rem !important;
  }
  .hero-stats span {
    font-size: 0.56rem !important;
    white-space: normal !important;
  }
}

/* 2026-06-18: account-gated upload/comment/favorite + online preview/share link */
.nav-links {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.nav-button.account-nav {
  color: #0c6f98;
  background: rgba(24,175,227,0.12);
}
.nav-button.account-nav.is-logged-in {
  color: #08724b;
  background: rgba(17,185,129,0.14);
}
.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(245,248,251,0.88);
}
.auth-switch button {
  min-height: 36px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}
.auth-switch button.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 20px rgba(12,130,173,0.16);
}
.user-auth-card .register-only {
  display: none !important;
}
.userAuthModal.is-register .register-only,
#userAuthModal.is-register .register-only {
  display: grid !important;
}
.user-logout {
  display: none;
  width: 100%;
}
#userAuthModal:has(.user-logout) .user-logout {
  display: inline-flex;
}
.share-card {
  width: min(560px, calc(100vw - 28px));
}
.share-link-box {
  display: grid;
  gap: 8px;
}
.share-link-box span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}
.share-link-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(245,248,251,0.96);
  font-weight: 800;
}
.preview-stage {
  align-items: stretch;
  justify-items: stretch;
  background: linear-gradient(135deg, #eef9ff, #fff7e8) !important;
}
.preview-frame-shell {
  position: relative;
  display: grid;
  width: 100%;
  min-height: inherit;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.74);
  box-shadow: inset 0 0 0 1px rgba(16,32,51,0.08), 0 16px 36px rgba(16,32,51,0.1);
}
.preview-frame-shell::before {
  content: "第 1 页在线预览";
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16,32,51,0.68);
  font-size: 0.74rem;
  font-weight: 900;
  pointer-events: none;
}
.preview-frame-shell iframe,
.preview-frame-shell img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  object-fit: contain;
}
.preview-placeholder small {
  max-width: 320px;
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  line-height: 1.55;
}
.first-page-placeholder {
  color: #fff;
  background: linear-gradient(135deg, #18afe3, #ff9d00);
  border-radius: var(--radius);
  padding: 24px;
}
.primary-action.is-disabled {
  cursor: not-allowed;
  color: #7f8b99 !important;
  background: #e6edf4 !important;
  box-shadow: none !important;
  pointer-events: auto;
}
.comment-item.auth-lock,
.comment-auth-lock {
  border: 1px dashed rgba(24,175,227,0.28);
  background: rgba(24,175,227,0.07);
}
.admin-row-actions button[data-admin-action="preview"] {
  color: #0c6f98;
  background: rgba(24,175,227,0.12);
}

@media (min-width: 721px) {
  .nav-links {
    grid-template-columns: none !important;
  }
  .preview-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 370px) !important;
  }
  .preview-stage {
    min-height: 560px !important;
    padding: 22px !important;
  }
  .preview-frame-shell iframe,
  .preview-frame-shell img {
    min-height: 500px !important;
  }
}

@media (max-width: 430px) {
  .nav-links {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .nav-links a,
  .nav-button {
    font-size: 0.68rem !important;
    padding: 0 2px !important;
  }
  .preview-frame-shell iframe,
  .preview-frame-shell img {
    min-height: 300px;
  }
}
#userAuthModal .user-logout { display: none !important; }
#userAuthModal.is-logged-in .user-logout { display: inline-flex !important; }


/* 2026-06-18: 删除优秀作品推荐，并重做六类作品展示筛选栏 */
.compact-categories {
  margin: 12px 0 14px !important;
  padding: 14px 16px 16px !important;
  border-color: rgba(24,175,227,0.18) !important;
  background: rgba(255,255,255,0.94) !important;
}
.compact-categories .track-title {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 0 12px !important;
  text-align: center !important;
}
.compact-categories .track-title span,
.compact-categories .track-title h3::before,
.compact-categories .track-title h3::after { display: none !important; }
.compact-categories .track-title h3 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ink) !important;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}
.category-strip {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}
.category-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(24,175,227,0.22) !important;
  border-radius: 999px !important;
  color: #20384d !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,249,253,0.96)) !important;
  box-shadow: 0 8px 18px rgba(16,32,51,0.06) !important;
  cursor: pointer !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.category-pill strong {
  display: block !important;
  overflow: hidden !important;
  max-width: 100% !important;
  font-size: clamp(0.72rem, 1.05vw, 0.88rem) !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
}
.category-pill.is-active,
.category-pill:hover,
.category-pill:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), #54caee 62%, var(--orange)) !important;
  border-color: rgba(255,255,255,0.65) !important;
  outline: 0 !important;
  box-shadow: 0 10px 24px rgba(24,175,227,0.18) !important;
  transform: translateY(-1px) !important;
}
.category-pill.theme-all { justify-self: stretch !important; min-width: 0 !important; }
.theme-financial-literacy .work-art { background: linear-gradient(135deg, #18afe3, #ffd640); }
.theme-business-observation .work-art { background: linear-gradient(135deg, #1b8fc6, #72d6f8); }
.theme-investment-research .work-art { background: linear-gradient(135deg, #3e7bd8, #18afe3); }
.theme-startup-project .work-art { background: linear-gradient(135deg, #ff9d00, #18afe3); }
.theme-class-challenge .work-art { background: linear-gradient(135deg, #4b80e7, #ffd640); }
.theme-pitch-showcase .work-art { background: linear-gradient(135deg, #4b4398, #ff9d00); }
@media (max-width: 860px) {
  .category-strip {
    display: flex !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scroll-snap-type: x proximity !important;
  }
  .category-pill {
    flex: 0 0 auto !important;
    min-width: 88px !important;
    scroll-snap-align: start !important;
  }
}
@media (max-width: 430px) {
  .compact-categories { padding: 12px 10px 14px !important; }
  .category-pill { min-height: 36px !important; min-width: 82px !important; padding: 0 8px !important; }
  .category-pill strong { font-size: 0.76rem !important; }
}

/* 2026-06-18: account approval, profile page and admin account management */
.account-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.nav-avatar,
.nav-avatar-img,
.mini-avatar,
.profile-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(24,175,227,0.2), rgba(255,214,64,0.42));
  color: var(--accent-strong);
  font-weight: 1000;
}
.nav-avatar,
.nav-avatar-img { width: 24px; height: 24px; flex: 0 0 auto; }
.nav-avatar-img { object-fit: cover; }
.nav-account-text { min-width: 0; max-width: 8.5em; overflow: hidden; text-overflow: ellipsis; }

.avatar-upload-row small,
.upload-form label small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}
.avatar-upload-row input[type="file"],
.register-only input[type="file"] {
  min-height: 40px;
  padding: 8px 10px;
}

.hero-stats div { min-height: 52px; }
.hero-stats strong { font-size: 1.55rem; }
.hero-stats span { font-size: 0.73rem; }

.work-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-art:has(.work-cover-img)::after { display: none; }
.work-art:has(.work-cover-img)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(16,32,51,0.28));
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(245,248,251,0.82);
}
.admin-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  color: #31506a;
  background: transparent;
  font-weight: 1000;
  cursor: pointer;
}
.admin-tabs button.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(24,175,227,0.18);
}
.admin-section { display: none; gap: 14px; }
.admin-section.is-active { display: grid; }
.admin-table-head.review-head,
.admin-table-row.review-row,
.admin-table-head.account-head,
.admin-table-row.account-row {
  grid-template-columns: 1.55fr 0.8fr 0.68fr 1.1fr 1.15fr 1.35fr;
}
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-user-cell > div { display: grid; gap: 3px; min-width: 0; }
.admin-user-cell strong,
.admin-user-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-size: 0.86rem;
}
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.status-pill.warning { color: #8a5a00; background: rgba(255,214,64,0.32); }
.status-pill.success { color: #0a8f55; background: rgba(20,184,116,0.16); }
.status-pill.danger { color: #d73737; background: rgba(229,75,75,0.14); }
.admin-row-actions .success { color: #fff; background: #12a86d; }
.ghost-danger { background: rgba(229,75,75,0.1) !important; color: #d73737 !important; }
.summary-tile.is-active,
.summary-tile.clickable:hover {
  border-color: rgba(24,175,227,0.44);
  box-shadow: 0 0 0 3px rgba(24,175,227,0.12);
}

.profile-modal { width: min(780px, calc(100vw - 20px)); }
.profile-card { padding: 0; }
.profile-content { display: grid; gap: 16px; padding: 20px; }
.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
}
.profile-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  color: #fff;
  background: rgba(255,255,255,0.22);
  font-size: 1.8rem;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero h2 { margin: 0; font-size: 1.65rem; }
.profile-hero p { margin: 4px 0 0; color: rgba(255,255,255,0.86); font-weight: 900; }
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.profile-info-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(16,32,51,0.08);
  border-radius: var(--radius);
  background: rgba(245,248,251,0.82);
}
.profile-info-grid strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; }
.profile-info-grid span { color: var(--muted); font-size: 0.78rem; font-weight: 900; }
.profile-work-list { display: grid; gap: 8px; }
.profile-work-list h3 { margin: 0; font-size: 1rem; }
.profile-work-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.profile-work-item span { color: var(--muted); font-size: 0.82rem; font-weight: 900; white-space: nowrap; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

@media (min-width: 721px) {
  .hero-stats div { min-height: 58px; padding: 12px; }
  .hero-stats strong { font-size: 1.72rem; }
  .profile-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .admin-table { min-width: 0; }
  .admin-table-head { display: none; }
  .admin-table-row.review-row,
  .admin-table-row.account-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }
  .admin-table-row [data-label]::before {
    content: attr(data-label) "：";
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 1000;
  }
  .admin-user-cell[data-label]::before { align-self: center; }
}

@media (max-width: 430px) {
  .profile-hero { align-items: flex-start; }
  .profile-avatar { width: 58px; height: 58px; flex-basis: 58px; }
  .profile-info-grid { grid-template-columns: 1fr; }
  .profile-work-item { align-items: flex-start; flex-direction: column; }
}


.auth-school-row[hidden] { display: none !important; }


.contact-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: auto;
  max-width: calc(100vw - 24px);
  color: var(--ink);
}

.contact-widget__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  box-shadow: 0 16px 38px rgba(16, 32, 51, 0.18);
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contact-widget__toggle:hover,
.contact-widget__toggle:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(16, 32, 51, 0.22);
}

.contact-widget__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: #fff;
  font-size: 0.82rem;
}

.contact-widget__panel {
  display: grid;
  width: min(300px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.16);
  backdrop-filter: blur(18px);
  transform-origin: right bottom;
  animation: contactPanelIn 160ms ease-out;
}

.contact-widget.is-collapsed .contact-widget__panel { display: none; }
.contact-widget.is-expanded .contact-widget__toggle { display: none; }

.contact-widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.contact-widget .eyebrow {
  margin-bottom: 4px;
  color: var(--accent-strong);
}

.contact-widget__head h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.contact-widget__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #47627a;
  background: rgba(16,32,51,0.08);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.contact-widget__close:hover,
.contact-widget__close:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: 0;
}

.contact-widget__intro {
  margin: 10px 0 12px;
  color: #35516b;
  font-size: 0.88rem;
  line-height: 1.58;
}

.contact-widget__meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.contact-widget__meta p {
  margin: 0;
  color: #244057;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-widget__meta strong { color: var(--ink); }
.contact-widget__meta a { color: var(--accent-strong); font-weight: 700; }

.contact-widget__qr {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24,175,227,0.08), rgba(255,157,0,0.12));
}

.contact-widget__qr img {
  width: 126px;
  height: 126px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
}

.contact-widget__qr span {
  color: #35516b;
  font-size: 0.82rem;
  font-weight: 800;
}

@keyframes contactPanelIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .contact-widget { right: 12px; bottom: 12px; }
  .contact-widget__panel { width: min(272px, calc(100vw - 20px)); padding: 12px; }
  .contact-widget__intro { font-size: 0.84rem; }
  .contact-widget__qr img { width: 106px; height: 106px; }
}

@media (max-width: 640px) {
  .contact-widget { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); }
  .contact-widget__toggle { min-height: 42px; padding: 0 13px; font-size: 0.88rem; }
  .contact-widget__icon { width: 22px; height: 22px; }
  .contact-widget__panel { width: min(236px, calc(100vw - 16px)); padding: 10px; border-radius: var(--radius); }
  .contact-widget__head h2 { font-size: 1rem; }
  .contact-widget__intro { margin: 8px 0 10px; font-size: 0.8rem; line-height: 1.5; }
  .contact-widget__meta p { font-size: 0.82rem; }
  .contact-widget__qr { padding: 8px; }
  .contact-widget__qr img { width: 88px; height: 88px; }
}


/* Commerce and service upgrades */
.upload-grid-2 {
  display: grid;
  gap: 12px;
}
@media (min-width: 721px) {
  .upload-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fulfillment-field.is-hidden,
.shipping-fields.is-hidden { display: none !important; }
.work-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px;
}
.work-price-row strong {
  color: #d06f00;
  font-size: 1.05rem;
}
.work-price-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(24,175,227,0.1);
  font-size: 0.76rem;
  font-weight: 900;
}
.buy-work-btn {
  border-color: rgba(255,157,0,0.35) !important;
  background: linear-gradient(135deg, rgba(255,157,0,0.16), rgba(255,214,64,0.22)) !important;
}
.purchase-summary,
.payment-result-body {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(16,32,51,0.1);
  border-radius: var(--radius);
  background: rgba(24,175,227,0.06);
}
.purchase-summary strong,
.payment-success strong { font-size: 1.05rem; }
.purchase-summary span,
.purchase-summary small,
.payment-success span {
  color: var(--muted);
  line-height: 1.5;
}
.alipay-button {
  background: linear-gradient(135deg, #1677ff, #00a1e9);
}
.shipping-fields {
  display: grid;
  gap: 12px;
}
.order-head { grid-template-columns: 1.1fr 1fr 1.1fr 0.7fr 0.9fr 0.8fr 0.9fr; }
.order-row { grid-template-columns: 1.1fr 1fr 1.1fr 0.7fr 0.9fr 0.8fr 0.9fr; }
.order-row small { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 3px; }
.contact-support {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16,32,51,0.1);
}
.contact-support h3 {
  margin: 0;
  font-size: 0.94rem;
}
.support-messages {
  display: grid;
  gap: 6px;
  max-height: 148px;
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  background: rgba(16,32,51,0.04);
}
.support-message {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}
.support-message.is-service { background: #fff; color: #35516b; }
.support-message.is-user { justify-self: end; color: #fff; background: var(--accent); }
.support-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}
.support-form input {
  min-width: 0;
  border: 1px solid rgba(16,32,51,0.12);
  border-radius: 999px;
  padding: 0 10px;
  height: 36px;
}
.support-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 860px) {
  .order-head { display: none; }
  .order-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-support { display: none; }
}

/* 2026-06-23: commerce actions, five-page preview, masonry cards, profile commerce modules */
.admin-owner-row.is-hidden,
.fulfillment-field.is-hidden,
.shipping-fields.is-hidden { display: none !important; }

@media (min-width: 0) {
  .work-list {
    display: block;
    column-count: 1;
    column-gap: 14px;
  }
  .work-card {
    display: grid;
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 14px;
  }
  .work-card:first-child { grid-column: auto; }
}
@media (min-width: 721px) {
  .work-list { column-count: 2; }
}
@media (min-width: 1100px) {
  .work-list { column-count: 3; }
}
.work-card.has-cover .work-art {
  min-height: unset;
  padding: 0;
  aspect-ratio: var(--cover-ratio, 1.25);
  overflow: hidden;
}
.work-card.has-cover .work-art::after { display: none; }
.work-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-commerce-actions {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 1fr) minmax(110px, 1fr);
  gap: 10px;
  align-items: stretch;
}
.preview-price-box,
.commerce-btn {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.preview-price-box {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
}
.preview-price-box span,
.preview-price-box small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}
.preview-price-box strong { color: #d06f00; font-size: 1.22rem; line-height: 1.1; }
.commerce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--accent-strong);
  font-weight: 1000;
  cursor: pointer;
}
.cart-btn.is-active { color: #0a8f55; background: rgba(20,184,116,0.1); }
.buy-now-btn { color: #fff; background: linear-gradient(135deg, var(--orange), #ffd640); border: 0; }
.preview-engagement.engagement-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.preview-pages {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-height: min(70vh, 760px);
  overflow: auto;
  padding: 4px;
}

.pptx-preview-shell {
  display: grid;
  gap: 18px;
  width: 100%;
  max-height: min(70vh, 760px);
  overflow: auto;
  padding: 4px;
}

.pptx-preview-shell::before {
  display: none;
}

.pptx-preview-loading {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 260px;
  padding: 32px;
  border: 1px dashed rgba(24, 175, 227, 0.4);
  border-radius: 18px;
  background: rgba(24, 175, 227, 0.06);
  color: var(--muted);
  text-align: center;
}

.pptx-preview-loading strong {
  color: var(--ink);
}

.pptx-preview-page {
  overflow: hidden;
  background: #fff;
}

.pptx-slide-viewport {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  background: #eef3f7;
}

.pptx-preview-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

.pptx-download-link {
  display: inline-flex;
  width: auto;
  margin-top: 12px;
  text-decoration: none;
}

.preview-limit-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(24, 175, 227, 0.08);
  color: var(--muted);
}

.shipping-head,
.shipping-row {
  grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .8fr) minmax(220px, 1.4fr) minmax(150px, .8fr) 100px minmax(150px, .8fr);
}

.shipping-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.preview-page-card {
  position: relative;
  min-height: 420px;
  padding: 34px 10px 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 24px rgba(16,32,51,0.14);
}
.page-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16,32,51,0.72);
  font-size: 0.76rem;
  font-weight: 1000;
}
.preview-page-card iframe,
.preview-page-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  background: #fff;
  object-fit: contain;
}

.profile-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.profile-module h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.profile-module h3 span {
  min-width: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(24,175,227,0.1);
  text-align: center;
  font-size: 0.78rem;
}
.profile-cart-item,
.profile-order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.profile-cart-item > button,
.profile-order-item > button {
  display: grid;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.profile-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-item-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.profile-item-actions button:hover,
.profile-item-actions button:focus-visible {
  color: #fff;
  background: var(--accent);
  outline: 0;
}
.admin-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-row-actions button[data-order-action="approveReturn"] { color: #fff; background: #12a86d; }

@media (max-width: 720px) {
  .preview-commerce-actions { grid-template-columns: 1fr; }
  .preview-page-card { min-height: 340px; }
  .preview-page-card iframe,
  .preview-page-card img { min-height: 300px; }
  .profile-cart-item,
  .profile-order-item { grid-template-columns: 1fr; align-items: start; }
  .profile-item-actions { justify-content: flex-start; }
}

/* 2026-06-23: center preview dialog and prevent commerce controls from clipping */
.preview-modal[open] {
  display: grid;
  place-items: center;
  padding: 14px;
}
.preview-card,
.preview-body,
.preview-commerce-actions,
.preview-engagement,
.comment-section,
.comment-form {
  min-width: 0;
}
.preview-body {
  overflow-x: hidden;
}
.preview-commerce-actions {
  grid-template-columns: minmax(86px, 0.9fr) minmax(132px, 1.24fr) minmax(96px, 1fr);
  gap: 8px;
}
.commerce-btn {
  min-width: 0;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.commerce-btn span {
  flex: 0 0 auto;
  overflow-wrap: normal;
}
.preview-price-box {
  min-width: 0;
}
.preview-price-box strong {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 721px) {
  .preview-modal {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  .preview-card {
    width: min(1120px, calc(100vw - 48px));
    min-height: 0;
    max-height: min(88dvh, 760px);
    grid-template-columns: minmax(0, 1.42fr) minmax(390px, 430px);
  }
  .preview-stage {
    min-height: min(680px, calc(88dvh - 56px));
  }
  .preview-stage iframe,
  .preview-stage img {
    min-height: min(600px, calc(88dvh - 112px));
  }
  .preview-body {
    max-height: min(88dvh, 760px);
    padding: 26px 24px 22px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .preview-body h2 {
    padding-right: 44px;
  }
  .comment-list {
    max-height: clamp(120px, 18dvh, 180px);
  }
  .comment-form {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
}

@media (max-width: 420px) {
  .commerce-btn {
    white-space: normal;
  }
}

/* 2026-06-24: simplified gallery, reliable document preview and admin editing */
.topbar {
  align-items: center;
}
.nav-links {
  margin-left: auto;
}
.works-heading {
  justify-content: flex-start;
}
.compact-categories {
  padding: 18px;
  border: 1px solid rgba(24, 175, 227, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(16, 32, 51, 0.06);
}
.category-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
}
.category-pill {
  width: 100%;
  min-width: 0 !important;
  min-height: 42px;
  border-radius: 14px;
}
.work-card {
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 0 16px 40px rgba(16, 32, 51, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(24, 175, 227, 0.28);
  box-shadow: 0 22px 46px rgba(16, 32, 51, 0.13);
}
.work-meta:empty {
  display: none;
}
.upload-commerce-fields {
  display: grid;
  gap: 14px;
}
.upload-commerce-fields.is-hidden {
  display: none !important;
}
.admin-edit-card {
  width: min(760px, calc(100vw - 28px));
  max-height: min(90dvh, 860px);
  overflow-y: auto;
}
.admin-row-actions {
  align-content: center;
}

.preview-stage.has-page-previews {
  min-height: 0 !important;
  padding: 14px !important;
  overflow: hidden;
  align-items: start;
  background: linear-gradient(180deg, #edf3f7, #e6edf2);
}
.preview-stage.has-page-previews .preview-pages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  width: 100%;
  max-height: min(76dvh, 760px);
  margin: 0;
  padding: 2px 6px 18px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y proximity;
}
.preview-stage.has-page-previews .preview-page-card {
  display: block;
  position: relative;
  min-height: 0 !important;
  margin: 0;
  padding: 36px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.11);
  scroll-snap-align: start;
}
.preview-stage.has-page-previews .preview-page-card img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 auto;
  border: 0;
  border-radius: 10px;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}
.preview-stage.has-page-previews .preview-page-card iframe {
  display: block;
  width: 100%;
  height: min(68vh, 680px);
  min-height: 420px;
  border: 0;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 720px) {
  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .compact-categories {
    padding: 14px;
  }
  .preview-stage.has-page-previews {
    padding: 8px !important;
  }
  .preview-stage.has-page-previews .preview-pages {
    gap: 12px;
    max-height: 64dvh;
    padding-right: 3px;
  }
  .preview-stage.has-page-previews .preview-page-card {
    padding: 32px 6px 6px;
    border-radius: 12px;
  }
  .admin-edit-card {
    width: min(100%, calc(100vw - 16px));
  }
}
