/* 创作 Tab 中枢 · 作品广场 · 热榜 · 任务中心 · 详情 / 发布 · 数字人 / 工具大全 */

.cr-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.view.cr-no-tabbar { padding-bottom: 0; }
.cr-hub { background: #fff; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- 顶部格式栏 ---------- */
.cr-format-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px 8px;
  background: #fff;
}
.cr-formats { flex: 1; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.cr-formats::-webkit-scrollbar { display: none; }
.cr-format {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 9px;
  color: var(--sub);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s;
}
.cr-format.is-active { color: var(--ink); font-weight: 900; }
.cr-format em {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 2px;
  background: transparent;
}
.cr-format.is-active em { background: var(--ink); }
.cr-task-btn {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF4FF, #F3EFFF);
  color: var(--brand-deep);
}
.cr-task-btn b {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #D9534F;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

/* ---------- 视频：热门主题 ---------- */
.cr-video-page { background: var(--canvas); padding-bottom: 4px; }
.cr-theme-section { padding-top: 2px; }
.cr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
}
.cr-section-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.cr-section-title small { color: var(--faint); font-size: 10px; font-weight: 400; }
.cr-hot-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(240, 106, 29, 0.08);
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
}
.cr-theme-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 18px 6px;
  scrollbar-width: none;
}
.cr-theme-scroll::-webkit-scrollbar { display: none; }
.cr-theme-card {
  flex: 0 0 94px;
  width: 94px;
  padding: 4px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 3px 6px rgba(16, 27, 48, 0.04);
  text-align: center;
  transition: border 0.18s, box-shadow 0.18s;
}
.cr-theme-card img {
  display: block;
  width: 84px;
  height: 100px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--field);
}
.cr-theme-card span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cr-theme-card.is-active { border: 2px solid var(--brand); box-shadow: 0 3px 10px rgba(16, 27, 48, 0.08); }
.cr-theme-card.is-active span { color: var(--ink); font-weight: 600; }

/* ---------- 视频：主视觉 ---------- */
.cr-hero {
  margin: 8px 14px 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 5px 14px rgba(16, 27, 48, 0.06);
}
.cr-hero-media { position: relative; height: 240px; overflow: hidden; background: #101B30; }
.cr-hero-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(16, 27, 48, 0.72));
}
.cr-meta { position: absolute; left: 18px; right: 14px; bottom: 12px; display: flex; gap: 7px; overflow: hidden; }
.cr-metatag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.9);
  font-size: 9.5px;
  font-weight: 500;
}
.cr-hero-info { padding: 12px 18px 14px; }
.cr-hero-stats { display: flex; align-items: center; gap: 14px; }
.cr-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-stat b { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cr-stat span { color: var(--faint); font-size: 9.5px; white-space: nowrap; }
.cr-stat b.cr-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-size: 17px; font-weight: 900; }
.cr-stat b.cr-rating svg { color: #D9930D; }
.cr-statdiv { flex: 0 0 auto; width: 1px; height: 28px; background: var(--divider); }
.cr-hero-cta {
  margin-left: auto;
  flex: 0 0 auto;
  width: 104px;
  height: 38px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.cr-hero-cta:active { transform: scale(0.97); }
.cr-hero-desc { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

/* ---------- 视频广场入口 ---------- */
.cr-square-entry { margin: 16px 14px 0; }
.cr-square-card {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(90deg, #15233F, #263F7A);
  text-align: left;
  box-shadow: 0 8px 20px rgba(21, 35, 63, 0.18);
}
.cr-covers { display: flex; flex: 0 0 auto; }
.cr-covers img {
  width: 42px;
  height: 54px;
  border: 2px solid #fff;
  border-radius: 10px;
  object-fit: cover;
}
.cr-covers img + img { margin-left: -14px; }
.cr-square-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cr-square-copy strong { color: #fff; font-size: 17px; font-weight: 900; }
.cr-square-copy span { overflow: hidden; color: rgba(255, 255, 255, 0.68); font-size: 8.8px; letter-spacing: -0.2px; white-space: nowrap; text-overflow: ellipsis; }
.cr-enter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.cr-square-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}
.cr-square-foot span { display: inline-flex; align-items: center; gap: 3px; }
.cr-square-foot .cr-grow { margin-left: auto; color: var(--faint); }

/* ---------- 灵感瀑布流 ---------- */
.cr-feed { margin-top: 4px; padding: 0 14px 18px; }
.cr-feed-cats {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 0 8px;
  scrollbar-width: none;
}
.cr-feed-cats::-webkit-scrollbar { display: none; }
.cr-feed-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 1px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.cr-feed-cat.is-active {
  padding: 0 13px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.cr-masonry { columns: 2; column-gap: 8px; }
.cr-feed-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 3px 8px rgba(16, 27, 48, 0.045);
  text-align: left;
}
.cr-feed-card.is-hidden { display: none; }
.cr-feed-cover { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--field); }
.cr-feed-cover > img { display: block; width: 100%; object-fit: cover; }
.cr-feed-cover .cr-dur {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
}
.cr-feed-cover .cr-playbtn {
  position: absolute;
  left: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
}
.cr-feed-title {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cr-feed-catline { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; }
.cr-feed-author {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  min-width: 0;
}
.cr-feed-author em { overflow: hidden; color: var(--sub); font-size: 10px; font-style: normal; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.cr-feed-metrics {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}
.cr-feed-metrics svg + * { margin-left: 3px; }

/* ---------- 图文：写真海报 ---------- */
.cr-image-page { background: #fff; }
.cr-poster { padding: 6px 0 12px; }
.cr-poster-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px calc((100% - 72%) / 2) 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cr-poster-scroll::-webkit-scrollbar { display: none; }
.cr-poster-card {
  position: relative;
  flex: 0 0 72%;
  aspect-ratio: 1 / 1.44;
  scroll-snap-align: center;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid #E7EAF0;
  background: #101B30;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}
.cr-poster-card > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-poster-share {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cr-poster-cta {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand-grad);
  border: 0.9px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 6px 12px rgba(80, 110, 230, 0.3);
}
.cr-poster-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 20px;
  scrollbar-width: none;
}
.cr-poster-thumbs::-webkit-scrollbar { display: none; }
.cr-poster-thumb {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 100px;
  overflow: visible;
  border-radius: 10px;
  background: #101B30;
  transition: transform 0.18s;
}
.cr-poster-thumb > img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #E8ECF3;
}
.cr-poster-thumb::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  background: linear-gradient(to bottom, transparent 52%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}
.cr-poster-thumb > span {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 1;
  transform: translateX(-50%);
  height: 16px;
  max-width: 64px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 16px;
  white-space: nowrap;
}
.cr-poster-thumb.is-active { transform: scale(1.03); }
.cr-poster-thumb.is-active > img { border: 2.5px solid #fff; }
.cr-thumb-check {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #2E7DF6;
  color: #fff;
}
.cr-image-feed { padding-top: 2px; }

/* ---------- 数字人 ---------- */
.cr-digital { padding: 12px 0 0; background: #fff; text-align: center; }
.cr-digital-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F4F2EC;
  color: var(--sub);
  font-size: 10px;
  font-weight: 500;
}
.cr-digital-badge i { width: 5px; height: 5px; border-radius: 50%; background: #8A4DE8; }
.cr-digital h2 { margin: 14px 0 0; color: var(--ink); font-size: 24px; font-weight: 900; letter-spacing: -0.6px; }
.cr-digital > p { margin: 5px 16px 0; color: var(--sub); font-size: 12px; }
.cr-digital-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 292px;
  margin-top: 6px;
}
.cr-digital-stage > img { height: 280px; max-width: 92%; object-fit: contain; }
.cr-scan { position: absolute; width: 240px; height: 280px; pointer-events: none; }
.cr-scan i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(88, 215, 255, 0.72);
  border-style: solid;
  border-width: 0;
}
.cr-scan i:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.cr-scan i:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.cr-scan i:nth-child(3) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.cr-scan i:nth-child(4) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.cr-scan b {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 14%;
  height: 1.6px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 215, 255, 0.7), rgba(232, 91, 188, 0.45), transparent);
  animation: crScan 3.4s linear infinite;
}
.cr-scan b::before,
.cr-scan b::after {
  position: absolute;
  color: rgba(88, 215, 255, 0.8);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cr-scan b::before { content: 'FACE ID'; left: -6%; top: -34px; }
.cr-scan b::after { content: 'SCANNING'; right: -8%; bottom: -12px; }
@keyframes crScan {
  0% { transform: translateY(0); opacity: 0.35; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(190px); opacity: 0.2; }
}
.cr-digital-features { display: flex; padding: 0 20px; }
.cr-digital-features > span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--brand-deep); }
.cr-digital-features em { color: var(--muted); font-size: 10px; font-style: normal; }
.cr-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(80, 110, 230, 0.26);
}
.cr-primary:active { opacity: 0.94; transform: scale(0.99); }
.cr-primary-sm { height: 34px; padding: 0 14px; font-size: 11.5px; box-shadow: 0 4px 11px rgba(80, 110, 230, 0.24); }
.cr-digital > .cr-primary { width: calc(100% - 40px); margin: 20px 20px 0; }
.cr-digital-link {
  display: block;
  width: 100%;
  height: 38px;
  padding-bottom: 4px;
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- 工具大全（创作 Tab 内） ---------- */
.cr-tools { background: #fff; padding: 8px 0 26px; }
.cr-tools-hero {
  position: relative;
  margin: 0 16px;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  border: 0.8px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(165px 165px at 87% 16%, rgba(196, 255, 110, 0.3), transparent 70%),
    radial-gradient(220px 220px at 8% 100%, rgba(0, 192, 96, 0.26), transparent 70%),
    radial-gradient(150px 150px at 58% 2%, rgba(255, 211, 138, 0.1), transparent 70%),
    linear-gradient(135deg, #0D3B2A, #071912);
  box-shadow: 0 12px 22px rgba(6, 37, 26, 0.24);
}
.cr-tools-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 0.55px, transparent 0.55px);
  background-size: 16px 16px;
  pointer-events: none;
}
.cr-tools-hero-top { position: relative; display: flex; align-items: flex-start; gap: 4px; }
.cr-tools-copy { flex: 1; min-width: 0; }
.cr-tools-eyebrow { display: flex; align-items: center; gap: 7px; }
.cr-tools-eyebrow span { color: rgba(255, 255, 255, 0.5); font-size: 8px; font-weight: 600; letter-spacing: 0.18em; white-space: nowrap; }
.cr-tools-eyebrow b {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  border: 0.7px solid rgba(182, 255, 123, 0.24);
  border-radius: 999px;
  background: rgba(182, 255, 123, 0.12);
  color: #B6FF7B;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.cr-tools-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 13px;
  line-height: 1;
  white-space: nowrap;
}
.cr-tools-title span { color: #fff; font-size: 26px; font-weight: 900; }
.cr-tools-title strong {
  background: linear-gradient(90deg, #E1FFB0, #7BFFA8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.8px;
}
.cr-tools-copy > p { margin: 7px 0 0; color: rgba(255, 255, 255, 0.68); font-size: 12.5px; font-weight: 500; }
.cr-hero-chips { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 13px; overflow: hidden; }
.cr-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  height: 23px;
  padding: 0 8px;
  border: 0.7px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.84);
  font-size: 9.5px;
  font-weight: 600;
}
.cr-mascot { position: relative; flex: 0 0 120px; width: 120px; height: 132px; margin-top: -6px; }
.cr-mascot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}
.cr-mascot-online {
  position: absolute;
  left: 2px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border: 0.7px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.8);
  font-size: 8.5px;
  font-weight: 800;
}
.cr-mascot-online i { width: 5px; height: 5px; border-radius: 50%; background: #7BFFA8; box-shadow: 0 0 6px rgba(123, 255, 168, 0.8); }
.cr-tools-search { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.cr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 43px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--faint);
}
.cr-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font-size: 16px;
}
.cr-search input::placeholder { color: #9A9AA1; }
.cr-search input::-webkit-search-cancel-button { display: none; }
.cr-search-dark { height: 46px; padding-left: 14px; padding-right: 12px; border: 0; border-radius: 23px; background: rgba(255, 255, 255, 0.96); }
.cr-search-dark svg { color: #0B3B2A; }
.cr-search-dark input::placeholder { color: #7E9A8B; }
.cr-ai-btn {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #A8FF6A;
  color: #0B3B2A;
  box-shadow: 0 3px 8px rgba(168, 255, 106, 0.28);
}
.cr-ai-btn i { position: absolute; right: 9px; bottom: 9px; width: 5px; height: 5px; border-radius: 50%; background: #0B3B2A; }
.cr-ai-btn.is-dark { background: var(--ink); color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14); }
.cr-ai-btn.is-dark i { background: #00C060; }
.cr-tool-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 26px 20px 0;
}
.cr-greenbar { width: 3px; height: 16px; border-radius: 2px; background: #00C060; }
.cr-tool-section-head strong { color: #0B0B0C; font-size: 17px; font-weight: 900; letter-spacing: -0.3px; }
.cr-tool-all {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #A9A9B0;
  font-size: 11.5px;
}
.cr-tool-count { margin-left: auto; color: #A9A9B0; font-size: 11px; font-weight: 500; }
.cr-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 12px; padding: 14px 20px 0; }
.cr-tool-card {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
  padding: 0 17px 0 13px;
  border: 1px solid #EEEEF1;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  box-shadow: 0 3px 6px rgba(16, 27, 48, 0.03);
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.cr-tool-card:active { background: #FAFBFC; }
.cr-tool-card.is-muted { opacity: 0.45; }
.cr-tool-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cr-tool-copy strong { overflow: hidden; color: #0B0B0C; font-size: 14px; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.cr-tool-copy span { overflow: hidden; color: #8E8E95; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }
.cr-tool-glyph { position: relative; flex: 0 0 auto; display: grid; place-items: center; color: #0B0B0C; }
.cr-tool-glyph i { position: absolute; right: -4px; bottom: 1px; width: 5px; height: 5px; border-radius: 50%; background: #00C060; }
.cr-empty-tools { padding: 64px 24px 30px; text-align: center; }

/* ---------- 通用空状态 ---------- */
.cr-empty { display: flex; flex-direction: column; align-items: center; padding: 36px 28px; text-align: center; }
.cr-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF4FF, #F3EFFF);
  color: var(--brand-deep);
}
.cr-empty b { color: var(--ink); font-size: 16px; font-weight: 900; }
.cr-empty p { margin: 8px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.cr-empty-page { padding-top: 90px; }
.cr-empty-dir { padding-top: 80px; }

/* ---------- 全屏顶栏 ---------- */
.cr-topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--divider);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.8) blur(16px);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
}
.cr-round-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--field);
  color: var(--ink);
}
.cr-round-btn.is-ghost { background: #fff; border: 1px solid var(--border); color: var(--brand-deep); }
.cr-topbar-copy { flex: 1; min-width: 0; }
.cr-topbar-copy strong { display: block; overflow: hidden; color: var(--ink); font-size: 18px; font-weight: 900; letter-spacing: -0.4px; white-space: nowrap; text-overflow: ellipsis; }
.cr-topbar-copy span { display: block; overflow: hidden; margin-top: 1px; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.cr-topbar-right { flex: 0 0 auto; display: flex; align-items: center; }
.cr-hotpill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EEF4FF, #F3EFFF);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
}

/* ---------- 作品广场 ---------- */
.cr-square { min-height: 100vh; background: var(--canvas); padding-bottom: calc(38px + env(safe-area-inset-bottom)); }
.cr-square-body { display: flex; flex-direction: column; gap: 14px; padding: 12px 14px 38px; }
.cr-rewards {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(63, 142, 247, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, #EEF4FF, #F8F4FF 58%, #fff);
  box-shadow: 0 5px 14px rgba(91, 91, 230, 0.07);
}
.cr-rewards::after {
  content: '';
  position: absolute;
  right: -26px;
  top: -64px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(63, 142, 247, 0.12);
  filter: blur(26px);
  pointer-events: none;
}
.cr-bolt {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 4px 9px rgba(80, 110, 230, 0.3);
}
.cr-bolt svg { width: 17px; height: 17px; }
.cr-reward-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cr-reward-copy em { color: rgba(91, 91, 230, 0.8); font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: 0.14em; }
.cr-reward-copy strong { overflow: hidden; color: var(--ink); font-size: 13.8px; font-weight: 900; letter-spacing: -0.5px; white-space: nowrap; text-overflow: ellipsis; }
.cr-reward-copy span { color: var(--muted); font-size: 9.5px; font-weight: 500; }
.cr-credit { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.cr-credit b {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.cr-credit small { color: var(--faint); font-size: 8.5px; font-weight: 600; }
.cr-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid #fff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}
.cr-searchrow { display: flex; align-items: center; gap: 8px; }
.cr-search { position: relative; }
.cr-square .cr-search { height: 43px; }
.cr-search-clear {
  display: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #E9EDF4;
  color: #7D8797;
}
.cr-search.has-value .cr-search-clear { display: grid; }
.cr-square-task {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-deep);
}
.cr-square-task b {
  position: absolute;
  top: -3px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}
.cr-filter-icons { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.cr-filter-icons::-webkit-scrollbar { display: none; }
.cr-filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sub);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.cr-filter-btn.is-active {
  border-color: transparent;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 3px 7px rgba(80, 110, 230, 0.36);
}
.cr-history {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px;
  color: var(--faint);
  font-size: 10px;
}
.cr-history:empty { display: none; }
.cr-history-label { margin-right: 2px; }
.cr-history-chip {
  height: 22px;
  max-width: 110px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cr-history-clear { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--faint); }
.cr-square-section-head {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  padding: 2px;
}
.cr-square-section-head > strong { color: var(--ink); font-size: 17px; font-weight: 900; letter-spacing: -0.3px; }
.cr-count-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #EDF3FF;
  color: var(--brand-deep);
  font-size: 9px;
  font-weight: 800;
}
.cr-sort-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--sub);
  font-size: 10.5px;
  font-weight: 600;
}
.cr-sort-menu {
  position: absolute;
  z-index: 10;
  top: 34px;
  right: 0;
  display: none;
  min-width: 120px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 27, 48, 0.14);
}
.cr-sort-menu.is-open { display: block; }
.cr-sort-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: #3B475C;
  font-size: 12px;
  font-weight: 600;
}
.cr-sort-menu button:active { background: var(--field); }
.cr-square-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 11px; }
.cr-work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.035);
  text-align: left;
}
.cr-work-cover {
  position: relative;
  display: block;
  margin: 7px 7px 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--field);
}
.cr-work-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-work-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.38)); }
.cr-work-kind,
.cr-work-flag {
  position: absolute;
  top: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}
.cr-work-kind { left: 7px; background: rgba(0, 0, 0, 0.4); }
.cr-work-flag { right: 7px; }
.cr-work-flag.is-mine { background: var(--brand-grad); }
.cr-work-flag.is-featured { background: #E8A21A; }
.cr-work-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.cr-work-bottom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  color: rgba(255, 255, 255, 0.9);
}
.cr-work-bottom em {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.cr-work-bottom em:first-child { font-size: 8.5px; }
.cr-work-body { display: flex; flex-direction: column; gap: 7px; padding: 8px 8px 9px; }
.cr-work-title {
  display: -webkit-box;
  min-height: 35px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cr-work-author { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cr-work-author em { flex: 1; overflow: hidden; color: var(--sub); font-size: 9.5px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.cr-work-likes { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); font-size: 9px; font-weight: 500; }
.cr-work-likes svg { color: #D9534F; }
.cr-square-empty { padding-top: 12px; }

/* ---------- 热度榜 ---------- */
.cr-trending { min-height: 100vh; background: var(--canvas); padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.cr-trending-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 30px; }
.cr-trending-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(160px 160px at 92% 8%, rgba(124, 137, 255, 0.55), transparent 68%),
    linear-gradient(135deg, #1D2D55, #35479E 58%, #5B5BE6);
  color: #fff;
  box-shadow: 0 7px 16px rgba(80, 110, 230, 0.28);
}
.cr-trending-hero > div:first-child { flex: 1; min-width: 0; }
.cr-trend-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #FFE3B4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.cr-trending-hero h2 { margin: 7px 0 0; font-size: 22px; font-weight: 900; line-height: 1.35; letter-spacing: -0.5px; }
.cr-trending-hero p { margin: 7px 0 0; color: rgba(255, 255, 255, 0.66); font-size: 9.5px; line-height: 1.5; }
.cr-trend-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}
.cr-trend-count b { font-size: 32px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.cr-trend-count span { margin-top: 3px; font-size: 10px; }
.cr-trend-meta { display: flex; align-items: center; gap: 8px; padding: 0 3px; color: var(--faint); font-size: 9.5px; }
.cr-trend-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cr-trend-meta span:last-child { margin-left: auto; }
.cr-platforms { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cr-platforms::-webkit-scrollbar { display: none; }
.cr-choice {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--field);
  color: var(--sub);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.cr-choice.is-active { border-color: rgba(63, 142, 247, 0.42); background: #EDF3FF; color: var(--brand-deep); font-weight: 800; }
.cr-trend-cats { display: flex; gap: 15px; overflow-x: auto; padding: 5px 0; scrollbar-width: none; }
.cr-trend-cats::-webkit-scrollbar { display: none; }
.cr-trend-cat { position: relative; flex: 0 0 auto; padding: 0 0 8px; color: var(--muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.cr-trend-cat.is-active { color: var(--ink); font-weight: 900; }
.cr-trend-cat.is-active::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: var(--brand-deep); }
.cr-trend-list { display: flex; flex-direction: column; gap: 12px; }
.cr-trend-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
}
.cr-trend-top { display: flex; align-items: flex-start; gap: 11px; }
.cr-rank {
  flex: 0 0 26px;
  width: 26px;
  color: var(--faint);
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cr-rank.is-hot { color: var(--orange); }
.cr-trend-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cr-trend-tags { display: flex; align-items: center; gap: 6px; }
.cr-platform-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #EEF3FF;
  color: var(--brand-deep);
  font-size: 9px;
  font-weight: 800;
}
.cr-trend-cat-label { color: var(--muted); font-size: 9.5px; }
.cr-growth { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--green); font-size: 9.5px; font-weight: 800; }
.cr-trend-title { color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1.45; }
.cr-trend-heat { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); font-size: 10px; font-weight: 600; }
.cr-trend-content {
  display: -webkit-box;
  margin: 11px 0 0;
  overflow: hidden;
  color: var(--sub);
  font-size: 11.5px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cr-trend-content.is-open { display: block; -webkit-line-clamp: unset; }
.cr-trend-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cr-expand { color: var(--muted); font-size: 10px; font-weight: 600; }
.cr-trend-actions .cr-primary { margin-left: auto; }

/* ---------- 任务中心 ---------- */
.cr-tasks { min-height: 100vh; background: var(--canvas); padding-bottom: calc(35px + env(safe-area-inset-bottom)); }
.cr-tasks-body { padding: 14px 14px 35px; }
.cr-task-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.cr-task-tabs .cr-choice { background: #fff; border-color: var(--border); }
.cr-task-tabs .cr-choice.is-active { background: #EDF3FF; border-color: rgba(63, 142, 247, 0.42); }
.cr-task-list { display: flex; flex-direction: column; gap: 12px; }
.cr-task-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.cr-task-main { display: flex; align-items: center; gap: 11px; }
.cr-task-cover { flex: 0 0 auto; width: 56px; height: 68px; border-radius: 10px; object-fit: cover; background: var(--field); }
.cr-task-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cr-task-copy > strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.cr-task-copy > span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cr-task-statusrow { display: flex; align-items: center; gap: 6px; }
.cr-status {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.cr-status-blue { background: rgba(91, 91, 230, 0.09); color: var(--brand-deep); }
.cr-status-green { background: rgba(13, 155, 95, 0.09); color: var(--green); }
.cr-status-orange { background: rgba(240, 106, 29, 0.09); color: var(--orange); }
.cr-task-statusrow b { color: var(--sub); font-size: 9.5px; font-weight: 800; }
.cr-task-chevron { margin-left: auto; display: grid; place-items: center; color: var(--faint); transition: transform 0.18s; }
.cr-task-chevron.is-open { transform: rotate(180deg); }
.cr-progress { height: 6px; margin-top: 11px; overflow: hidden; border-radius: 999px; background: #EFF3F9; }
.cr-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4F95F8, #8A4DE8); transition: width 0.4s ease; }
.cr-task-error { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--orange); font-size: 10px; }
.cr-task-error span { flex: 1; }
.cr-task-error button { color: var(--brand-deep); font-size: 11px; font-weight: 800; }
.cr-task-panel { padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--divider); }
.cr-task-panel[hidden] { display: none; }
.cr-task-panel-row { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 9.5px; }
.cr-task-panel-row span { display: inline-flex; align-items: center; gap: 4px; }
.cr-task-actions { display: flex; gap: 9px; margin-top: 11px; }
.cr-task-actions > * { flex: 1; }
.cr-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.cr-task-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.cr-task-remove { display: block; margin: 10px 0 0 auto; color: var(--faint); font-size: 10px; }

/* ---------- 作品详情 ---------- */
.cr-work-page { min-height: 100vh; background: var(--canvas); padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.cr-detail-scroll { padding: 16px 0 0; }
.cr-media {
  position: relative;
  height: 460px;
  margin: 0 16px;
  overflow: hidden;
  border-radius: 20px;
  background: #0B1424;
  box-shadow: 0 12px 30px rgba(16, 27, 48, 0.16);
}
.cr-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-media-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent 28%, transparent 62%, rgba(0, 0, 0, 0.45)); }
.cr-media-kind {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.94);
  font-size: 9.5px;
  font-weight: 800;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cr-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cr-media-play svg { margin-left: 3px; }
.cr-detail-info { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 0; }
.cr-detail-info h1 { margin: 0; color: var(--ink); font-size: 20px; font-weight: 900; line-height: 1.45; letter-spacing: -0.3px; }
.cr-detail-note { margin: -4px 0 0; color: var(--sub); font-size: 12px; line-height: 1.7; }
.cr-detail-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 10px; font-weight: 600; }
.cr-detail-stats span { display: inline-flex; align-items: center; gap: 4px; }
.cr-detail-stats b { font-weight: 800; }
.cr-detail-author { display: flex; align-items: center; gap: 9px; }
.cr-detail-author > div { flex: 1; min-width: 0; }
.cr-detail-author strong { display: block; color: var(--ink); font-size: 12px; font-weight: 800; }
.cr-detail-author span { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.cr-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(217, 83, 79, 0.08);
  color: #D9534F;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.cr-like-btn.is-on { background: #D9534F; color: #fff; }
.cr-prompt-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
}
.cr-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cr-prompt-head strong { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 800; }
.cr-prompt-head button { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-deep); font-size: 10px; font-weight: 600; }
.cr-prompt-text {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--sub);
  font-size: 11.5px;
  line-height: 1.8;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.cr-prompt-text.is-open { display: block; -webkit-line-clamp: unset; }
.cr-prompt-expand { margin-top: 7px; color: var(--brand-deep); font-size: 10px; }
.cr-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.cr-detail-tags span { padding: 4px 9px; border-radius: 999px; background: #EEF3FF; color: #5B6B8C; font-size: 10px; }
.cr-detail-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: var(--sheet);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid var(--divider);
  background: rgba(247, 248, 251, 0.96);
  backdrop-filter: saturate(1.8) blur(16px);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
}
.cr-dock-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cr-dock-copy strong { color: var(--ink); font-size: 12px; font-weight: 800; }
.cr-dock-copy span { overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.cr-dock-publish { flex: 0 0 auto; height: 44px; }
.cr-dock-remix { flex: 0 0 auto; width: 132px; height: 44px; padding: 0 12px; font-size: 13px; }

/* ---------- 发布作品 ---------- */
.cr-publish { min-height: 100vh; background: var(--canvas); padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.cr-publish-body { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 35px; }
.cr-pub-media {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EEF4FF, #F3EFFF);
}
.cr-pub-media img { flex: 0 0 auto; width: 84px; height: 106px; border-radius: 12px; object-fit: cover; background: var(--field); }
.cr-pub-media > div { display: flex; flex-direction: column; gap: 5px; }
.cr-pub-media strong { color: var(--ink); font-size: 14px; font-weight: 900; }
.cr-pub-media span { color: var(--muted); font-size: 10px; }
.cr-pub-media em { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-size: 10px; font-style: normal; font-weight: 800; }
.cr-pub-media em svg { width: 12px; height: 12px; }
.cr-field { display: flex; flex-direction: column; gap: 8px; }
.cr-field-head { display: flex; align-items: center; justify-content: space-between; }
.cr-field-head label { color: var(--ink); font-size: 13px; font-weight: 800; }
.cr-field-head span { color: var(--faint); font-size: 9px; }
.cr-field input,
.cr-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  resize: none;
}
.cr-field input::placeholder,
.cr-field textarea::placeholder { color: var(--faint); }
.cr-field input:focus,
.cr-field textarea:focus { border-color: rgba(63, 142, 247, 0.42); }
.cr-topic-block { display: flex; flex-direction: column; gap: 10px; }
.cr-topic-block > strong { color: var(--ink); font-size: 13px; font-weight: 800; }
.cr-topic-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-topic {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--sub);
  font-size: 11px;
  font-weight: 600;
}
.cr-topic.is-active { border-color: rgba(63, 142, 247, 0.42); background: #EDF3FF; color: var(--brand-deep); font-weight: 800; }
.cr-info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--field);
  color: var(--brand-deep);
}
.cr-info-note p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.cr-publish-submit { width: 100%; margin-top: 4px; }

/* ---------- 工具目录（全屏） ---------- */
.cr-directory { min-height: 100vh; background: #fff; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.cr-dir-nav {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  height: 54px;
  padding: 4px 18px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.8) blur(16px);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
}
.cr-dir-nav > strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #0B0B0C;
  font-size: 17.5px;
  font-weight: 900;
  white-space: nowrap;
}
.cr-dir-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #F2F2F4; color: #0B0B0C; }
.cr-dir-search { display: flex; align-items: center; gap: 10px; padding: 6px 20px 0; }
.cr-dir-search .cr-search { height: 46px; border: 0; border-radius: 23px; background: var(--field); }
.cr-dir-filters { display: flex; gap: 10px; overflow-x: auto; padding: 12px 20px 0; scrollbar-width: none; }
.cr-dir-filters::-webkit-scrollbar { display: none; }
.cr-dir-filters .cr-choice { height: 34px; padding: 0 18px; background: var(--field); font-size: 13px; }
.cr-dir-filters .cr-choice.is-active { background: #0B0B0C; color: #fff; border-color: transparent; }

/* ---------- 生成器 / 工具弹层 ---------- */
.cr-gen-sheet .field textarea { min-height: 110px; }
.cr-gen-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EEF4FF, #F3EFFF);
}
.cr-gen-source span { flex: 0 0 auto; color: var(--brand-deep); font-size: 9px; font-weight: 800; }
.cr-gen-source strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.cr-gen-tip { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 12px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.cr-gen-submit { border-radius: 999px; font-weight: 900; }
.cr-tool-sheet { padding: 18px 18px 20px; }
.cr-tool-sheet-head { display: flex; align-items: center; gap: 13px; }
.cr-tool-sheet-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #EAF8EF;
  color: #0B0B0C;
}
.cr-tool-sheet-head > div { flex: 1; min-width: 0; }
.cr-tool-sheet-head strong { display: block; color: var(--ink); font-size: 20px; font-weight: 900; letter-spacing: -0.4px; }
.cr-tool-sheet-head span { display: block; margin-top: 3px; color: var(--sub); font-size: 12px; }
.cr-sheet-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--field); color: var(--sub); }
.cr-tool-intro { margin: 16px 0 18px; color: var(--sub); font-size: 12.5px; line-height: 1.75; }
.cr-tool-label { display: block; margin-bottom: 9px; color: var(--ink); font-size: 13px; font-weight: 800; }
.cr-tool-sample {
  padding: 12px;
  border-radius: 12px;
  background: var(--field);
  color: #4B566B;
  font-size: 12.5px;
  line-height: 1.75;
}
.cr-tool-field { margin-top: 14px; }
.cr-tool-field textarea { min-height: 84px; }
.cr-tool-cost { display: flex; align-items: center; gap: 4px; margin: 2px 0 12px; color: var(--gold); font-size: 10.5px; font-weight: 700; }
.cr-tool-cost svg { width: 12px; height: 12px; }
.cr-tool-start {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: #121212;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
.cr-tool-start:active { opacity: 0.92; transform: scale(0.99); }

/* ---------- 响应式微调 ---------- */
@media (min-width: 400px) {
  .cr-theme-card { flex-basis: 96px; width: 96px; }
  .cr-theme-card img { width: 86px; }
  .cr-work-title { font-size: 13px; }
}
