/* ==========================================================================
   成都天府艺术公园·天府111商业街 - 青少年艺术季 H5 样式表
   风格对齐参考设计图：深海蓝、珊瑚橙、薄荷绿、奶油白、轻量卡片化与瀑布流
   ========================================================================== */

:root {
  --primary-blue: #134e70;
  --primary-deep: #0b2e42;
  --accent-cyan: #0077b6;
  --accent-coral: #e76f51;
  --accent-gold: #f4a261;
  --bg-gradient: linear-gradient(180deg, #d8eefe 0%, #f0f7fd 25%, #f8fbfd 100%);
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-sub: #9ca3af;
  --border-color: #e5e7eb;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(19, 78, 112, 0.06);
  --shadow-md: 0 4px 16px rgba(19, 78, 112, 0.1);
  --shadow-lg: 0 10px 25px rgba(19, 78, 112, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* 针对 Webkit 内核（Chrome、Safari、微信内置浏览器）隐藏滚动条 */
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none;
  background: transparent;
}

/* 兼容 Firefox 和标准模式容器，隐藏原生粗滚动条且保留流畅顺滑滚动 */
html, body, .app-main-scroll, .mobile-viewport, .comment-list-box, .detail-content-scroll, .quick-words-scroll, .related-scroll-row {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE 10+ */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #f3f8fc;
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

[v-cloak] {
  display: none !important;
}

/* ================= 统一模拟手机壳的外层容器 ================= */
#app, .app-container, .mobile-frame, .mobile-viewport {
  width: 100%;
  max-width: 390px; /* 统一锁定为标准 iPhone 尺寸 390px */
  margin: 0 auto;   /* 电脑端居中显示 */
  box-sizing: border-box;
  position: relative;
}

.mobile-viewport {
  height: 100vh;
  background: var(--bg-gradient);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

@media (min-width: 480px) {
  body {
    background-color: #e2e8f0;
  }

  #app {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px 0;
  }

  .mobile-viewport {
    width: 390px !important;
    max-width: 390px !important;
    min-width: 390px !important;
    height: 844px !important; /* 标准 iPhone 逻辑高 */
    max-height: 90vh !important;
    border-radius: 40px !important;
    border: 10px solid #1f2937 !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  }
}

@media (max-width: 479px) {
  body {
    background: var(--bg-gradient);
  }

  #app, .mobile-viewport {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* ================= 主内容滚动区 ================= */
.app-main-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 8px;
  padding-bottom: 80px; /* 避让底部 TabBar */
}

.tab-page-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-padding {
  padding: 14px 12px 24px;
}

/* ================= Banner 区域 (完全对齐参考图) ================= */
.banner-card {
  margin: 12px 12px 6px;
  background: linear-gradient(135deg, #134e70 0%, #1e6088 60%, #0077b6 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 16px 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.banner-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(231, 111, 81, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.banner-logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  backdrop-filter: blur(4px);
}

.star-icon-logo {
  color: #f4a261;
  font-size: 14px;
}

.banner-tagline {
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.banner-main-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.banner-sub-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #d8eefe;
  margin-bottom: 6px;
}

.banner-location-badge {
  display: inline-block;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  color: #e0f2fe;
}

/* 倒计时条 */
.phase-countdown-bar {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 11.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.phase-countdown-bar strong {
  color: #fca311;
  font-size: 13px;
}

.phase-dot {
  width: 6px;
  height: 6px;
  background-color: #2ec4b6;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* 数据看板 3 格 */
.stats-board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  color: var(--primary-deep);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-card {
  text-align: center;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #e5e7eb;
}

.stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stat-number {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-deep);
  font-family: Arial, sans-serif;
}

/* ================= 类别切换 & 搜索栏 ================= */
.category-nav-section {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-tabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 5px 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  gap: 2px;
}

.cat-tab-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  padding: 6px 3px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap !important;
  word-break: keep-all;
  letter-spacing: -0.3px;
}

.cat-tab-btn.active {
  color: #0077b6;
  background: #e0f2fe;
}

.search-input-wrapper {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.search-icon {
  font-size: 16px;
  color: #9ca3af;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-main);
  background: transparent;
}

.search-input::placeholder {
  color: #9ca3af;
  font-size: 12.5px;
}

.clear-icon {
  font-size: 15px;
  color: #9ca3af;
  cursor: pointer;
}

/* ================= 作品瀑布流 ================= */
.works-waterfall-section {
  padding: 0 12px 10px;
}

.waterfall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.work-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.work-card:active {
  transform: scale(0.98);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 正方形图片容器 */
  background: #e5e7eb;
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tag-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tag-paint {
  background-color: #e76f51; /* 绘画类：珊瑚橙 */
}

.tag-photo {
  background-color: #2a9d8f; /* 摄影类：松石绿 */
}

.work-no-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9.5px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
}

.card-info {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.author-row {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}

.author-name {
  font-weight: 500;
}

.author-identity {
  font-size: 10.5px;
  color: #9ca3af;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.vote-count-text {
  font-size: 11.5px;
  color: #4b5563;
}

.votes-num {
  font-size: 14px;
  font-weight: 700;
  color: #e76f51;
}

.vote-action-btn {
  background: linear-gradient(135deg, #0077b6, #0096c7);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 119, 182, 0.3);
  transition: all 0.15s ease;
}

.vote-action-btn:active {
  transform: scale(0.92);
  background: #023e8a;
}

.vote-tip-sub {
  font-size: 9px;
  color: #9ca3af;
  text-align: right;
  margin-top: 3px;
  transform: scale(0.9);
  transform-origin: right;
}

/* ================= 底部固定导航栏 (TabBar) ================= */
.app-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
}

.tabbar-item.active {
  color: #0077b6;
}

.tab-icon {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 2px;
}

.tab-label {
  font-size: 11px;
  font-weight: 600;
}

/* ================= 通用卡片容器 ================= */
.section-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}

.form-header-bar {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.form-title-main {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-deep);
}

.form-title-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 关注公众号提示条 */
.follow-prompt-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.follow-icon {
  font-size: 18px;
}

.follow-text {
  font-size: 11.5px;
  color: #9a3412;
  flex: 1;
  line-height: 1.4;
}

.follow-btn-mini {
  background: #ea580c;
  color: #ffffff;
  border: none;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
}

/* ================= 投稿表单控件 ================= */
.submit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
}

.form-label.required::after {
  content: " *";
  color: #ef4444;
}

.custom-input,
.custom-select,
.custom-textarea {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.custom-input:focus,
.custom-select:focus,
.custom-textarea:focus {
  border-color: #0077b6;
  background: #ffffff;
}

.radio-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-pill {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.radio-pill input {
  display: none;
}

.radio-pill.active {
  border-color: #0077b6;
  background: #e0f2fe;
  color: #0077b6;
}

.word-counter {
  text-align: right;
  font-size: 10.5px;
  color: #9ca3af;
}

/* 图片上传框 */
.uploader-box {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden-file-input {
  display: none;
}

.upload-icon-circle {
  width: 38px;
  height: 38px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 20px;
  color: #64748b;
}

.upload-tip-text {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.upload-tip-sub {
  font-size: 11px;
  color: #94a3b8;
}

.uploader-preview-wrapper {
  position: relative;
  width: 100%;
}

.uploader-preview-img {
  max-height: 180px;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.remove-img-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
}

/* 签名状态卡片 */
.signature-status-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sig-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sig-title {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
}

.sig-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.sig-badge.signed {
  background: #22c55e;
  color: #ffffff;
}

.sig-badge.unsigned {
  background: #fef08a;
  color: #854d0e;
}

.sig-status-desc {
  font-size: 11.5px;
  color: #15803d;
  line-height: 1.4;
}

.sig-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #dcfce7;
}

.sig-preview-img {
  height: 36px;
  max-width: 180px;
  object-fit: contain;
}

.btn-open-legal {
  background: #16a34a;
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 4px;
}

.primary-gradient-btn {
  background: linear-gradient(135deg, #134e70, #0077b6);
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 24px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.35);
  transition: all 0.2s ease;
}

.primary-gradient-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.primary-gradient-btn:disabled {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}

/* ================= 排行榜样式 ================= */
.rank-header-card {
  background: linear-gradient(135deg, #0b2e42, #134e70);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
}

.rank-main-badge {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.rank-card-title {
  font-size: 18px;
  font-weight: 800;
}

.rank-card-subtitle {
  font-size: 11.5px;
  color: #bae6fd;
  margin-top: 2px;
  margin-bottom: 12px;
}

.rank-tabs-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.rank-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 600;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.rank-tab.active {
  background: #ffffff;
  color: var(--primary-deep);
}

.rank-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.rank-badge-col {
  width: 32px;
  text-align: center;
}

.crown-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
}

.crown-badge.gold { background: #fef08a; color: #854d0e; }
.crown-badge.silver { background: #e2e8f0; color: #475569; }
.crown-badge.bronze { background: #ffedd5; color: #9a3412; }

.rank-num {
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
}

.rank-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
}

.rank-info-col {
  flex: 1;
  overflow: hidden;
  cursor: pointer;
}

.rank-work-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-author-row {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.rank-tag-sm {
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}

.rank-score-text {
  font-size: 12px;
  color: #e76f51;
  margin-top: 2px;
}

.btn-vote-mini {
  background: #e0f2fe;
  color: #0077b6;
  border: 1px solid #bae6fd;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
}

/* 30名入围警戒线 */
.qualification-cutoff-line {
  margin: 10px 0;
  text-align: center;
  position: relative;
}

.cutoff-line-text {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px dashed #f59e0b;
}

/* ================= 规则页样式 ================= */
.rules-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-main-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.3;
}

.rules-date-badge {
  font-size: 11.5px;
  background: #e0f2fe;
  color: #0369a1;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  width: fit-content;
}

.rule-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}

.rule-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-blue);
}

.rule-block.highlight-box {
  background: #f0fdfa;
  border-left: 3px solid #0d9488;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.rule-block ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ================= 模态弹窗系统 ================= */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  z-index: 10;
}

/* 关注公众号弹窗 */
.follow-modal-card {
  padding: 24px 18px 20px;
  text-align: center;
}

.follow-modal-icon {
  font-size: 36px;
  margin-bottom: 6px;
}

.follow-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.follow-modal-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.qr-code-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.qr-code-img-wrapper {
  width: 140px;
  height: 140px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.demo-qr-svg {
  width: 100%;
  height: 100%;
}

.qr-code-tip {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

/* 法律协议弹窗 */
.legal-modal-card {
  padding: 16px 14px 14px;
}

.modal-header-row {
  margin-bottom: 10px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-deep);
}

.modal-scroll-body {
  overflow-y: auto;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.alert-box-important {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  gap: 6px;
  font-size: 11.5px;
  color: #991b1b;
  line-height: 1.4;
}

.legal-doc-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  font-size: 12px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
  border-left: 3px solid #0077b6;
}

.legal-doc-header-tag {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 8px;
  border-radius: 4px;
  width: fit-content;
}

.legal-doc-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
}

.legal-doc-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 2px;
}

.legal-sub-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.5;
  color: #475569;
}

.legal-sub-item strong {
  color: #1e293b;
  font-size: 12px;
}

.legal-sub-item p {
  margin: 0;
  font-size: 11.5px;
}

.checkbox-group-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px;
}

.custom-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #1e293b;
  cursor: pointer;
}

.custom-checkbox-row input {
  margin-top: 3px;
}

.canvas-sign-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.canvas-sign-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.btn-clear-sig {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.canvas-box {
  position: relative;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-sm);
  background: #ffffff;
  height: 130px;
  touch-action: none;
}

.signature-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.canvas-placeholder-tip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #cbd5e1;
  font-size: 14px;
  pointer-events: none;
  font-weight: 600;
}

.modal-footer-row {
  margin-top: 12px;
}

/* 作品详情弹窗 */
.detail-modal-card {
  padding: 0;
}

.detail-img-box {
  position: relative;
  width: 100%;
  height: 240px;
  background: #000000;
}

.detail-full-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-code-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
}

.detail-content-scroll {
  padding: 14px 16px;
  overflow-y: auto;
  max-height: 45vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-deep);
}

.detail-author-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4b5563;
  flex-wrap: wrap;
}

.detail-author-name {
  font-weight: 700;
}

.detail-author-tag {
  background: #e0f2fe;
  color: #0369a1;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
}

.detail-school {
  color: #9ca3af;
}

.detail-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  gap: 6px;
}

.ds-num {
  font-size: 16px;
  font-weight: 800;
  color: #e76f51;
}

.ds-lbl {
  font-size: 10.5px;
  color: #64748b;
}

.detail-concept-box {
  background: #fdfaf7;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 10px;
}

.concept-label {
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 4px;
}

.concept-text {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}

.detail-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  padding: 10px 14px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.btn-poster-action {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.btn-vote-action {
  background: linear-gradient(135deg, #e76f51, #f4a261);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(231, 111, 81, 0.35);
}

/* 礼品兑换核销弹窗 */
.gift-modal-card {
  padding: 24px 16px;
  text-align: center;
}

.gift-icon-big {
  font-size: 44px;
  margin-bottom: 4px;
}

.gift-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #15803d;
}

.gift-modal-subtitle {
  font-size: 12.5px;
  color: #4b5563;
  margin-top: 4px;
  margin-bottom: 14px;
}

.voucher-box {
  background: #fefce8;
  border: 2px dashed #ca8a04;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.voucher-tag {
  font-size: 11px;
  color: #854d0e;
  font-weight: 700;
}

.voucher-code {
  font-size: 24px;
  font-weight: 800;
  color: #a16207;
  letter-spacing: 2px;
  margin: 6px 0;
  font-family: monospace;
}

.voucher-tip {
  font-size: 11.5px;
  color: #713f12;
}

.voucher-quota-tip {
  font-size: 10px;
  color: #9a3412;
  margin-top: 4px;
}

/* 海报生成弹窗 */
.poster-modal-card {
  padding: 16px 14px 14px;
  text-align: center;
}

.poster-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-deep);
}

.poster-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.poster-img-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  max-height: 52vh;
}

.poster-result-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ================= 我的作品状态与安全边界提醒卡片 ================= */
.my-work-status-card {
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.my-work-status-card.status-approved,
.my-work-status-card.status-1 {
  background: #fefce8;
  border: 1px solid #fef08a;
}

.my-work-status-card.status-pending {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.my-work-status-card.status-rejected {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.status-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.status-badge.badge-approved,
.status-badge.badge-1 {
  background: #10b981;
  color: #ffffff;
}

.status-badge.badge-pending {
  background: #f59e0b;
  color: #ffffff;
}

.status-badge.badge-rejected {
  background: #ef4444;
  color: #ffffff;
}

.votes-badge {
  font-size: 12px;
  color: #ea580c;
  background: #fff7ed;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #ffedd5;
}

.safety-tip-banner {
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.5;
}

.safety-tip-banner.approved {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.safety-tip-banner.approved .safety-tip-title {
  font-weight: 800;
  font-size: 12.5px;
  color: #b45309;
  margin-bottom: 3px;
}

.safety-tip-banner.pending {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.safety-tip-banner.rejected {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.label-with-tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.locked-tip {
  font-size: 10.5px;
  background: #f1f5f9;
  color: #64748b;
  padding: 1px 6px;
  border-radius: 4px;
}

.danger-tip {
  font-size: 10.5px;
  color: #e11d48;
  background: #ffe4e6;
  padding: 1px 6px;
  border-radius: 4px;
}

.custom-input.disabled-input {
  background-color: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
  border-color: #cbd5e1;
}

/* ================= 本地开发联调助手 (Dev Bar) ================= */
.dev-mock-wrapper {
  position: fixed;
  right: 12px;
  bottom: 74px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dev-toggle-pill {
  background: #0f172a;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #334155;
  transition: all 0.2s;
}

.dev-toggle-pill:hover {
  background: #1e293b;
}

.dev-badge {
  background: #0284c7;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-family: monospace;
}

.dev-modal-panel {
  position: absolute;
  right: 0;
  bottom: 42px;
  width: 290px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: devSlideIn 0.2s ease;
}

@keyframes devSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dev-panel-header {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dev-close-btn {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  color: #94a3b8;
}

.dev-close-btn:hover {
  color: #ffffff;
}

.dev-panel-body {
  padding: 12px;
  font-size: 12px;
}

.dev-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dev-label {
  color: #64748b;
  font-size: 11.5px;
}

.dev-code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11.5px;
  color: #0369a1;
}

.dev-btn-toggle {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.dev-btn-toggle.active {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.dev-actions-title {
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 700;
  color: #334155;
  font-size: 11px;
}

.dev-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-role-btn {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.dev-role-btn strong {
  display: block;
  font-size: 11.5px;
  color: #0f172a;
}

.dev-role-btn small {
  font-size: 10px;
  color: #64748b;
}

.dev-role-btn.current {
  border-color: #0284c7;
  background: #f0f9ff;
}

.dev-role-btn:hover {
  background: #e2e8f0;
}

/* ================= 专属图文拉票链接弹窗样式 ================= */
.btn-share-link {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

.share-modal-card {
  padding: 18px 16px 16px;
  max-width: 340px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-sizing: border-box;
}

.share-modal-card img {
  max-width: 64px !important;
  max-height: 64px !important;
}

.share-modal-header {
  text-align: center;
  margin-bottom: 14px;
}

.share-header-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 2px;
}

.share-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 3px;
}

.share-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 微信聊天分享卡片效果预览 */
.wx-card-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wx-card-tag {
  font-size: 10.5px;
  color: #059669;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wx-card-content {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #edf2f7;
}

.wx-card-thumb {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.wx-card-info {
  flex: 1;
  min-width: 0;
}

.wx-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.wx-card-desc {
  font-size: 11px;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.wx-card-source {
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 3px;
}

/* 图文口令与文案框 */
.share-text-container {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 14px;
}

.share-text-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.copy-badge {
  font-size: 10.5px;
  color: #0284c7;
  cursor: pointer;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
}

.share-textarea {
  width: 100%;
  height: 84px;
  background: transparent;
  border: none;
  resize: none;
  font-size: 11.5px;
  line-height: 1.45;
  color: #334155;
  font-family: inherit;
  outline: none;
}

/* 按钮组 */
.share-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-copy-share {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.wx-guide-btn {
  background: #ffffff;
  color: #0077b6;
  border: 1px solid #bae6fd;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.wx-guide-btn:active {
  background: #f0f9ff;
}

/* 微信右上角分享指引蒙层 */
.wx-guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 16px 20px;
}

.wx-guide-arrow {
  color: #ffffff;
  font-size: 54px;
  font-weight: 300;
  animation: floatArrow 1s infinite alternate ease-in-out;
  margin-right: 14px;
}

@keyframes floatArrow {
  from { transform: translate(0, 0); }
  to { transform: translate(6px, -6px); }
}

.wx-guide-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 16px 18px;
  color: #ffffff;
  margin-top: 10px;
  text-align: center;
  max-width: 270px;
}

.wx-guide-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fde047;
}

.wx-guide-text {
  font-size: 13px;
  line-height: 1.5;
  color: #f8fafc;
  margin-bottom: 14px;
}

.wx-guide-know-btn {
  background: #ffffff;
  color: #0f172a;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 20px;
  cursor: pointer;
}

/* ================= 美术馆级作品专属展厅 (Museum Immersive Landing Page) ================= */
.work-landing-page {
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  background: #f8fafc;
  min-height: 100%;
}

/* 1. 顶部极简悬浮导航 (沉浸式磨砂玻璃，让大图直接向上延伸) */
.museum-floating-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.glass-round-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.glass-round-btn:active {
  transform: scale(0.92);
  background: #f1f5f9;
}

.nav-center-pill {
  font-size: 13px;
  font-weight: 800;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 16px;
  letter-spacing: 0.3px;
}

.glass-pill-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease;
}

.glass-pill-btn:active {
  transform: scale(0.94);
}

/* 2. 美术馆高精作品展示大框 (支持全屏双指缩放查看细节) */
.museum-frame-container {
  position: relative;
  width: 100%;
  min-height: 340px;
  max-height: 480px;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}

.museum-artwork-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.museum-frame-container:active .museum-artwork-img {
  transform: scale(1.02);
}

.frame-tag-left {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 2;
}

.frame-no-badge {
  background: rgba(0, 0, 0, 0.7);
  color: #fde047;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(253, 224, 71, 0.4);
}

.frame-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.55; }
}

/* 3. 美术馆实体展签 (Museum Plaque) */
.museum-plaque-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 16px 14px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e3a8a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}

.plaque-sub-header {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.plaque-title {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.plaque-author-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
}

.plaque-author-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 14.5px;
}

.plaque-author-group {
  background: #eff6ff;
  color: #2563eb;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.plaque-school {
  color: #64748b;
  font-size: 12px;
}

.plaque-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
  color: #64748b;
}

.meta-item {
  display: inline-flex;
  align-items: center;
}

/* 4. 差距激励与动态排名看板 */
.gap-incentive-card {
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #fde68a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
  margin-bottom: 12px;
}

.gap-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 10px;
}

.gap-stat-block {
  text-align: center;
}

.gap-divider {
  width: 1px;
  height: 36px;
  background: #fde68a;
}

.gap-stat-num {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  transition: transform 0.25s ease;
}

.gap-stat-num.highlight {
  color: #d97706;
}

.gap-stat-lbl {
  font-size: 11px;
  color: #78350f;
  margin-top: 2px;
  font-weight: 600;
}

/* 投票成功数字跳动动效 */
.num-bouncing {
  animation: numPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #e11d48 !important;
}

@keyframes numPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.gap-banner-tip {
  background: #fef3c7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  line-height: 1.4;
  text-align: center;
}

/* 5. 创作理念说明 (展陈解读) */
.museum-concept-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.concept-card-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.concept-card-text {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
  white-space: pre-wrap;
}

/* 6. 亲友加油留言墙 */
.cheer-wall-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.cheer-wall-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.cheer-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cheer-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.cheer-tip-sm {
  font-size: 11px;
  color: #94a3b8;
}

/* 快捷语录横滑 */
.quick-words-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.quick-words-scroll::-webkit-scrollbar {
  display: none;
}

.quick-pill {
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-pill:active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: scale(0.96);
}

.comment-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.comment-input-box {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #0f172a;
  outline: none;
}

.comment-input-box:focus {
  border-color: #2563eb;
  background: #ffffff;
}

.comment-send-btn {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
}

.comment-list-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.comment-bubble-item {
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #f1f5f9;
}

.comment-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.comment-user {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.comment-time {
  font-size: 10px;
  color: #94a3b8;
}

.comment-text-content {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.comment-empty {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  padding: 12px 0;
}

/* 7. 探索机制：同组作品推荐横滑 */
.related-works-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  padding: 0 4px;
}

.related-hall-link {
  font-size: 11.5px;
  color: #2563eb;
  cursor: pointer;
}

.related-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.related-scroll-row::-webkit-scrollbar {
  display: none;
}

.related-item {
  flex-shrink: 0;
  width: 105px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.15s ease;
}

.related-item:active {
  transform: scale(0.96);
}

.related-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.related-item-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  padding: 4px 6px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-item-votes {
  font-size: 10.5px;
  color: #d97706;
  font-weight: 700;
  padding: 0 6px 4px;
}

/* 8. 移动端标准固定吸底 Action Bar */
.sticky-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
}

.bar-left-info {
  display: flex;
  flex-direction: column;
  min-width: 68px;
}

.bli-votes {
  font-size: 12px;
  color: #0f172a;
}

.bli-votes strong {
  font-size: 16px;
  color: #e11d48;
}

.bli-sub {
  font-size: 10px;
  color: #64748b;
}

.bar-btn-vote {
  flex: 1;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 800;
  padding: 11px 10px;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.bar-btn-vote:active {
  transform: scale(0.97);
}

.bar-btn-share {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
  font-size: 12.5px;
  font-weight: 800;
  padding: 11px 14px;
  border-radius: 24px;
  cursor: pointer;
  white-space: nowrap;
}

.bar-btn-share:active {
  background: #dcfce7;
}


