/* 云丹漫剧 · 新版首页（接手方重写，非原打包产物）
   排版骨架：顶栏 → 三图轮播 → 大 CTA 面板 → 灵感输入 → 模板 chips → 分类 + 作品网格 → 页脚
   视觉沿用本站深色 + 青柠绿体系 */

/* 全局样式里 body{overflow:hidden}（原站是定高 SPA，靠内部容器滚），
   首页要整页滚动，挂载时由 zm-home.js 打上这个类解锁 */
body.zm-home-scroll { overflow: auto !important; }

.zm-home-root {
  --g1: #ffa94d;
  --g2: #f2762b;
  --bg: #07090a;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --t1: #fff;
  --t2: rgba(255, 255, 255, .62);
  --t3: rgba(255, 255, 255, .38);

  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
}

/* 顶部原有一片橙色环境光，会在顶栏形成一条暖色带，已按要求去掉，只保留颗粒 */
.zm-home-root::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.zm-wrap {
  position: relative;
  z-index: 1;
  max-width: 108rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ══════════ 顶栏 ══════════ */
.zm-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 2.5rem;
  /* 置顶时保持完全透明，与下方内容无缝；滚动后才上磨砂底保证可读性 */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, backdrop-filter .25s ease;
}
.zm-nav.zm-stuck {
  background: rgba(7, 9, 10, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.zm-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  user-select: none;
}
.zm-brand svg { width: 2rem; height: 2rem; display: block; }
.zm-brand-text {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.zm-nav-right { display: flex; align-items: center; gap: .6rem; }

/* 联合署名：绝对居中，不被两侧宽度带偏；刻意做得很轻 */
.zm-nav-note {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: .76rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .26);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.zm-nav-note b { font-weight: 500; color: rgba(255, 255, 255, .42); }
.zm-nav-note i { font-style: normal; color: rgba(255, 255, 255, .3); }

.zm-pill {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  height: 2.3rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--t2);
  font-size: .87rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.zm-pill:hover { color: var(--t1); border-color: rgba(255, 255, 255, .2); background: var(--panel-2); }
.zm-pill svg { width: 1.05rem; height: 1.05rem; flex: none; }
.zm-pill-icon { padding: 0; width: 2.3rem; justify-content: center; }

.zm-pill-accent {
  position: relative;
  border-color: rgba(255, 169, 77, .32);
  background: rgba(255, 169, 77, .1);
  color: var(--g1);
}
.zm-pill-accent:hover { border-color: rgba(255, 169, 77, .55); background: rgba(255, 169, 77, .16); color: var(--g1); }
.zm-tag {
  position: absolute;
  top: -.62rem; right: -.4rem;
  padding: .05rem .38rem;
  border-radius: .5rem .5rem .5rem 0;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.zm-btn-primary {
  height: 2.3rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.zm-btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 .5rem 1.4rem rgba(242, 130, 50, .3);
}

/* 已登录：余额胶囊 + 头像 */
.zm-kpoint { color: var(--t1); font-weight: 600; }
.zm-kpoint b { color: var(--g1); font-weight: 700; }
.zm-avatar {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-left: .35rem;
}
.zm-avatar i {
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
}

/* ══════════ 轮播 ══════════ */
.zm-banner {
  position: relative;
  margin-top: 1.6rem;
  height: 24rem;
  perspective: 80rem;
}
.zm-banner-track { position: relative; height: 100%; }

.zm-slide {
  position: absolute;
  top: 0; left: 50%;
  width: 48rem; height: 100%;
  margin-left: -24rem;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0d100e;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .55s cubic-bezier(.22, .8, .28, 1), opacity .55s ease, filter .55s ease;
  will-change: transform, opacity;
}
.zm-slide video,
.zm-slide .zm-slide-fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.zm-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 6, 5, .82) 0%, rgba(4, 6, 5, .45) 45%, rgba(4, 6, 5, .15) 100%);
}
.zm-slide-body {
  position: absolute;
  left: 2.4rem; bottom: 2.2rem; right: 2.4rem;
}
.zm-slide-kicker {
  display: inline-block;
  margin-bottom: .7rem;
  padding: .22rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 169, 77, .35);
  background: rgba(255, 169, 77, .12);
  color: var(--g1);
  font-size: .74rem;
  letter-spacing: .04em;
}
.zm-slide-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
}
.zm-slide-title em { font-style: normal; color: var(--g1); }
.zm-slide-sub {
  margin-top: .5rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .72);
}

/* 位置态：中间大、两侧小 */
.zm-slide[data-pos="0"]  { transform: translateX(0) scale(1); opacity: 1; z-index: 3; }
.zm-slide[data-pos="-1"] { transform: translateX(-26rem) scale(.88); opacity: .5; z-index: 2; filter: saturate(.7); }
.zm-slide[data-pos="1"]  { transform: translateX(26rem) scale(.88); opacity: .5; z-index: 2; filter: saturate(.7); }
.zm-slide[data-pos="hide"] { transform: translateX(0) scale(.7); opacity: 0; z-index: 1; pointer-events: none; }
.zm-slide[data-pos="-1"] .zm-slide-body,
.zm-slide[data-pos="1"] .zm-slide-body { opacity: .5; transition: opacity .3s ease; }

.zm-banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 2.4rem; height: 2.4rem;
  margin-top: -1.2rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 13, 11, .7);
  backdrop-filter: blur(8px);
  color: var(--t2);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.zm-banner-arrow:hover { color: var(--t1); background: rgba(20, 24, 21, .9); border-color: rgba(255, 255, 255, .22); }
.zm-banner-arrow.zm-prev { left: 1rem; }
.zm-banner-arrow.zm-next { right: 1rem; }
.zm-banner-arrow svg { width: 1.1rem; height: 1.1rem; }

.zm-dots {
  display: flex;
  justify-content: center;
  gap: .42rem;
  margin-top: 1rem;
}
.zm-dot {
  width: 1.4rem; height: .2rem;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: background .22s ease, width .22s ease;
}
.zm-dot.zm-on { width: 2.2rem; background: linear-gradient(90deg, var(--g1), var(--g2)); }

/* ══════════ 大 CTA 面板 ══════════ */
.zm-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 2.2rem;
  padding: 2.4rem 2.2rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background:
    radial-gradient(60rem 20rem at 50% 120%, rgba(242, 130, 50, .1), transparent 70%),
    var(--panel);
  overflow: hidden;
}
/* WebGL 液态背景铺在面板最底层 */
.zm-liquid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
/* 压一层径向暗罩，保证不管液面翻到多亮，标题和按钮都读得清 */
.zm-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(54% 78% at 50% 32%, rgba(5, 9, 13, .72) 0%, rgba(5, 9, 13, .36) 58%, rgba(5, 9, 13, .02) 100%);
}

.zm-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}
.zm-cta-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.zm-cta-title em { font-style: normal; color: var(--g1); }
.zm-cta-sub {
  margin-top: .6rem;
  font-size: .92rem;
  color: var(--t2);
}
.zm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  height: 3rem;
  padding: 0 2.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 .7rem 2rem rgba(242, 130, 50, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.zm-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 1rem 2.6rem rgba(242, 130, 50, .4); }
.zm-cta-btn svg { width: 1.15rem; height: 1.15rem; }

/* —— 三个待开发能力的占位卡片 —— */
.zm-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
  text-align: left;
}
.zm-feat {
  position: relative;
  /* 横向布局：图标占左列并跨两行，右列上标题下描述，比竖排省一整行高度 */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon head" "icon desc";
  column-gap: .85rem;
  row-gap: .3rem;
  align-content: center;
  /* button 的 UA 默认是居中对齐，父级的 text-align 盖不住，必须写在自己身上 */
  text-align: left;
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: rgba(12, 15, 17, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.zm-feat::after {
  /* 悬停时从左下透出一点暖光，暗示"未点亮的能力" */
  content: "";
  position: absolute;
  left: -30%; bottom: -60%;
  width: 80%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 169, 77, .16), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.zm-feat:hover {
  border-color: rgba(255, 169, 77, .34);
  background: rgba(18, 22, 25, .82);
  transform: translateY(-.2rem);
}
.zm-feat:hover::after { opacity: 1; }

.zm-feat-head {
  grid-area: head;
  align-self: end;
  display: flex;
  align-items: center;
  gap: .55rem;
}
/* 已上线的能力用绿色角标区分于「即将上线」 */
.zm-feat-live .zm-feat-soon {
  border-color: rgba(110, 231, 160, .32);
  background: rgba(110, 231, 160, .1);
  color: #6ee7a0;
}
.zm-feat-live:hover { border-color: rgba(110, 231, 160, .34); }

.zm-feat-soon {
  flex: none;
  padding: .1rem .45rem;
  border: 1px solid rgba(255, 169, 77, .28);
  border-radius: .3rem;
  background: rgba(255, 169, 77, .09);
  color: var(--g1);
  font-size: .66rem;
  line-height: 1.5;
  letter-spacing: .04em;
}
.zm-feat-icon {
  grid-area: icon;
  align-self: center;
  margin-top: .1rem;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: .65rem;
  border: 1px solid rgba(255, 169, 77, .22);
  background: linear-gradient(140deg, rgba(255, 169, 77, .18), rgba(242, 118, 43, .07));
  color: var(--g1);
}
.zm-feat-icon svg { width: 1.3rem; height: 1.3rem; }
.zm-feat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--t1);
}
.zm-feat-desc {
  grid-area: desc;
  align-self: start;
  font-size: .81rem;
  line-height: 1.6;
  color: var(--t2);
}

/* —— 轻提示 —— */
.zm-toast {
  position: fixed;
  left: 50%; bottom: 2.5rem;
  z-index: 3200;
  padding: .7rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: rgba(24, 20, 16, .95);
  backdrop-filter: blur(10px);
  color: var(--t1);
  font-size: .9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, .8rem);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}
.zm-toast.zm-show { opacity: 1; transform: translate(-50%, 0); }

/* ══════════ 作品区 ══════════ */
.zm-works { margin-top: 2.6rem; padding-bottom: 3rem; }
.zm-works-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.zm-works-title { font-size: 1.3rem; font-weight: 700; }
.zm-works-title span { margin-left: .6rem; font-size: .85rem; font-weight: 400; color: var(--t3); }

.zm-works-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.zm-tabs { display: flex; flex-wrap: wrap; gap: .55rem; }
.zm-tab {
  height: 2.3rem;
  padding: 0 1.05rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  background: var(--panel);
  color: var(--t2);
  font-size: .88rem;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.zm-tab:hover { color: var(--t1); background: var(--panel-2); }
.zm-tab.zm-on {
  color: #2b1406;
  font-weight: 600;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  border-color: transparent;
}

.zm-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 17rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--panel);
  transition: border-color .18s ease;
}
.zm-search:focus-within { border-color: rgba(255, 169, 77, .4); }
.zm-search input {
  flex: 1; min-width: 0;
  height: 2.3rem;
  border: 0; outline: 0;
  background: transparent;
  color: var(--t1);
  font-size: .87rem;
}
.zm-search input::placeholder { color: var(--t3); }
.zm-search svg { width: 1rem; height: 1rem; color: var(--t3); flex: none; }

.zm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.1rem;
}
.zm-card {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: .85rem;
  overflow: hidden;
  background: #10130f;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.zm-card:hover {
  transform: translateY(-.3rem);
  border-color: rgba(255, 169, 77, .35);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .5);
}
.zm-card img,
.zm-card video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.zm-card video { opacity: 0; transition: opacity .3s ease; }
.zm-card video.zm-playing { opacity: 1; }
.zm-card-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 5, 4, .88) 0%, rgba(3, 5, 4, .2) 42%, transparent 68%);
}
.zm-card-dur {
  position: absolute;
  top: .6rem; left: .6rem;
  padding: .12rem .45rem;
  border-radius: .35rem;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  font-size: .72rem;
  color: rgba(255, 255, 255, .85);
}
.zm-card-title {
  position: absolute;
  left: .8rem; right: .8rem; bottom: .8rem;
  font-size: .92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zm-empty, .zm-skeleton-note {
  padding: 3.5rem 0;
  text-align: center;
  color: var(--t3);
  font-size: .92rem;
}
.zm-skeleton {
  border-radius: .85rem;
  aspect-ratio: 9 / 14;
  background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .04) 70%);
  background-size: 200% 100%;
  animation: zm-shimmer 1.3s linear infinite;
}
@keyframes zm-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ══════════ 页脚 ══════════ */
.zm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--t3);
  font-size: .8rem;
}
.zm-foot-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1rem;
}
/* 用竖线分隔，比堆成两行清爽 */
.zm-foot-left > * + *::before {
  content: "";
  display: inline-block;
  width: 1px; height: .8em;
  margin-right: 1rem;
  vertical-align: -.06em;
  background: rgba(255, 255, 255, .14);
}
.zm-foot a {
  color: var(--t3);
  text-decoration: none;
  transition: color .16s ease;
}
.zm-foot a:hover { color: var(--g1); }
.zm-foot-ai {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255, 255, 255, .32);
}
.zm-foot-ai svg { width: .95rem; height: .95rem; flex: none; }

/* ══════════ 响应式 ══════════ */
@media (max-width: 1280px) {
  .zm-slide { width: 38rem; margin-left: -19rem; }
  .zm-slide[data-pos="-1"] { transform: translateX(-20rem) scale(.88); }
  .zm-slide[data-pos="1"] { transform: translateX(20rem) scale(.88); }
}
@media (max-width: 860px) {
  .zm-wrap, .zm-nav { padding-left: 1.1rem; padding-right: 1.1rem; }
  .zm-nav-hide-sm, .zm-nav-note { display: none; }
  .zm-banner { height: 16rem; }
  .zm-slide { width: 100%; margin-left: 0; left: 0; }
  .zm-slide[data-pos="-1"], .zm-slide[data-pos="1"] { opacity: 0; pointer-events: none; }
  .zm-slide-title { font-size: 1.35rem; }
  .zm-cta { padding: 2.2rem 1.2rem 2.4rem; }
  .zm-cta-title { font-size: 1.45rem; }
  .zm-feats { grid-template-columns: 1fr; gap: .8rem; margin-top: 1.8rem; }
  .zm-feat { padding: 1.1rem 1.1rem 1.2rem; }
  .zm-toast { left: 1rem; right: 1rem; bottom: 1.2rem; transform: translateY(.8rem); white-space: normal; text-align: center; }
  .zm-toast.zm-show { transform: none; }
  .zm-works-bar { flex-direction: column; align-items: stretch; }
  .zm-search { width: 100%; }
  .zm-grid { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
}


/* ══════════ 竖屏播放弹窗 ══════════ */
body.zm-lock { overflow: hidden !important; }

.zm-player {
  position: fixed;
  inset: 0;
  z-index: 3400;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding: 2rem;
  background: rgba(4, 6, 8, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .24s ease;
}
.zm-player.zm-open { opacity: 1; }

.zm-player-close {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.zm-player-close:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.zm-player-close svg { width: 1.15rem; height: 1.15rem; }

.zm-player-stage {
  position: relative;
  height: min(84vh, 46rem);
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 10rem);
  border-radius: 1rem;
  overflow: hidden;
  background: #0b0e10;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .6);
}
.zm-player-stage video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0b0e10;
}
/* 换片时的上下推进动效 */
.zm-player-stage.zm-in-up { animation: zm-in-up .34s cubic-bezier(.2, .8, .3, 1); }
.zm-player-stage.zm-in-down { animation: zm-in-down .34s cubic-bezier(.2, .8, .3, 1); }
@keyframes zm-in-up { from { transform: translateY(4%); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes zm-in-down { from { transform: translateY(-4%); opacity: .3; } to { transform: none; opacity: 1; } }

.zm-player-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 5, 6, .9) 0%, rgba(3, 5, 6, .25) 24%, transparent 45%);
}
.zm-player-meta {
  position: absolute;
  left: 1.2rem; right: 3.6rem; bottom: 1.1rem;
}
.zm-player-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zm-player-sub { margin-top: .3rem; font-size: .82rem; color: rgba(255, 255, 255, .55); }

.zm-player-sound {
  position: absolute;
  right: 1rem; bottom: 1.1rem;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease;
}
.zm-player-sound:hover { background: rgba(0, 0, 0, .7); }
.zm-player-sound.zm-muted { color: rgba(255, 255, 255, .5); }
.zm-player-sound svg { width: 1.05rem; height: 1.05rem; }

.zm-player-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.zm-player-nav {
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.zm-player-nav:hover:not(:disabled) {
  color: var(--g1);
  border-color: rgba(255, 169, 77, .4);
  background: rgba(255, 169, 77, .1);
  transform: translateY(-1px);
}
.zm-player-nav:disabled { opacity: .28; cursor: default; }
.zm-player-nav svg { width: 1.2rem; height: 1.2rem; }
.zm-player-count {
  font-size: .8rem;
  color: rgba(255, 255, 255, .42);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .zm-player { flex-direction: column; gap: .9rem; padding: 1rem; }
  .zm-player-stage { height: auto; width: 100%; max-width: none; max-height: 74vh; }
  .zm-player-side { flex-direction: row; gap: 1.4rem; }
}

/* ============================================================
   登录后的工作台（游客态仍走上面的轮播 + 水面 CTA）
   顶栏功能条 → 问候 + 数据 → Agent 输入 → 我的画布 → 云丹TV
   ============================================================ */

/* ---- 顶栏功能条 ---- */
.zm-navbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: .3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.zm-navbtn {
  padding: .5rem 1.02rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--t2);
  font-size: .9rem;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.zm-navbtn:hover { color: var(--t1); background: rgba(255, 255, 255, .055); }
.zm-navbtn.zm-on {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 169, 77, .2), rgba(242, 118, 43, .16));
  box-shadow: inset 0 0 0 1px rgba(255, 169, 77, .3);
}

/* ---- 问候 ---- */
.zm-work { padding: 3.6rem 0 .5rem; text-align: center; }

.zm-work-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--g1);
  opacity: .85;
}
.zm-work-kicker i { width: 2.4rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 169, 77, .55)); }
.zm-work-kicker i:last-child { background: linear-gradient(90deg, rgba(255, 169, 77, .55), transparent); }

.zm-work-hi {
  margin-top: 1.15rem;
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1.25;
}
.zm-work-line {
  margin-top: .1rem;
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1.25;
}
.zm-work-line em {
  font-style: normal;
  background: linear-gradient(100deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Agent 输入 ---- */
.zm-agent {
  max-width: 56rem;
  margin: 2.3rem auto 0;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  border: 1px solid var(--line);
  box-shadow: 0 26px 62px -32px rgba(0, 0, 0, .95);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.zm-agent:focus-within {
  border-color: rgba(255, 169, 77, .42);
  box-shadow: 0 26px 62px -32px rgba(0, 0, 0, .95), 0 0 0 4px rgba(255, 169, 77, .07);
}
.zm-agent-in {
  display: block;
  width: 100%;
  resize: none;
  padding: 1.25rem 1.4rem .35rem;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--t1);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75;
  text-align: left;
}
.zm-agent-in::placeholder { color: var(--t3); }

.zm-agent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 1.05rem .95rem 1.4rem;
}
.zm-agent-ready { display: flex; align-items: center; gap: .5rem; font-size: .81rem; color: var(--t3); }
.zm-agent-ready i {
  width: .44rem;
  height: .44rem;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, .14);
  animation: zm-breathe 2.4s ease-in-out infinite;
}
@keyframes zm-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.zm-agent-go {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .64rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(242, 118, 43, .85);
  transition: transform .16s ease, filter .16s ease;
}
.zm-agent-go svg { width: 1.02rem; height: 1.02rem; }
.zm-agent-go:hover { transform: translateY(-1px); filter: brightness(1.06); }
.zm-agent-go.zm-busy { pointer-events: none; opacity: .65; }

/* ---- 示例 ---- */
.zm-tips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; }
.zm-tips > span { font-size: .8rem; color: var(--t3); }
.zm-tip {
  padding: .38rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--t2);
  font-family: inherit;
  font-size: .79rem;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.zm-tip:hover { color: var(--t1); border-color: rgba(255, 169, 77, .38); background: rgba(255, 169, 77, .07); }

/* ---- 我的画布 ---- */
.zm-mine { margin-top: 3.4rem; text-align: left; }
.zm-mine-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.05rem; }
.zm-mine-title { display: flex; align-items: baseline; gap: .7rem; font-size: 1.28rem; font-weight: 700; }
.zm-mine-title span { font-size: .82rem; font-weight: 400; color: var(--t3); }
.zm-mine-more {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  background: transparent;
  border: 0;
  color: var(--t2);
  font-family: inherit;
  font-size: .86rem;
  cursor: pointer;
  transition: color .16s ease;
}
.zm-mine-more svg { width: .92rem; height: .92rem; }
.zm-mine-more:hover { color: var(--g1); }

.zm-mine-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.zm-mine-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-height: 7.6rem;
  padding: 1.1rem 1.2rem;
  border-radius: .95rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
  border: 1px solid var(--line);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.zm-mine-card:hover { transform: translateY(-3px); border-color: rgba(255, 169, 77, .34); }
.zm-mine-name {
  font-size: .94rem;
  font-weight: 600;
  color: var(--t1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zm-mine-meta { font-size: .75rem; color: var(--t3); }
.zm-mine-time { margin-top: auto; font-size: .73rem; color: var(--t3); opacity: .75; }

.zm-mine-new {
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: var(--g1);
  font-size: .89rem;
  font-weight: 600;
  background: rgba(255, 169, 77, .05);
  border: 1px dashed rgba(255, 169, 77, .32);
}
.zm-mine-new:hover { background: rgba(255, 169, 77, .1); border-style: solid; }
.zm-mine-plus svg { width: 1.35rem; height: 1.35rem; display: block; }

.zm-mine-skel {
  min-height: 7.6rem;
  border-radius: .95rem;
  background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .04) 70%);
  background-size: 200% 100%;
  animation: zm-shimmer 1.3s linear infinite;
}
.zm-mine-empty {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  color: var(--t3);
  font-size: .86rem;
}

/* 工作台下面紧接着云丹TV，留出呼吸 */
.zm-work + .zm-works { margin-top: 3.6rem; }

/* ---- 自适应 ---- */
@media (max-width: 1280px) {
  .zm-mine-row { grid-template-columns: repeat(3, 1fr); }
  .zm-navbtn { padding: .5rem .8rem; font-size: .86rem; }
}
@media (max-width: 1080px) {
  /* 功能条挤不下就回到常规流，让开 logo 和右侧 */
  .zm-navbar { position: static; transform: none; order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .zm-nav-work { flex-wrap: wrap; row-gap: .6rem; }
}
@media (max-width: 860px) {
  .zm-work { padding-top: 2.4rem; }
  .zm-work-hi, .zm-work-line { font-size: 1.85rem; }
  .zm-agent-bar { flex-direction: column; align-items: stretch; gap: .6rem; }
  .zm-agent-go { justify-content: center; }
  .zm-mine-row { grid-template-columns: repeat(2, 1fr); }
  .zm-mine-empty { grid-column: 1 / -1; }
}

/* ---- Agent 对话区（有话说了才出现，空着时完全不占位） ---- */
.zm-chat {
  display: none;
  max-height: 22rem;
  overflow-y: auto;
  padding: 1.15rem 1.4rem .3rem;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .14) transparent;
}
.zm-chat.zm-on { display: block; }
.zm-chat::-webkit-scrollbar { width: 6px; }
.zm-chat::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }

.zm-msg {
  max-width: 84%;
  margin-bottom: .85rem;
  padding: .7rem .95rem;
  border-radius: .85rem;
  font-size: .93rem;
  line-height: 1.75;
  word-break: break-word;
}
.zm-msg.zm-me {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(255, 169, 77, .2), rgba(242, 118, 43, .14));
  border: 1px solid rgba(255, 169, 77, .26);
  color: var(--t1);
  border-bottom-right-radius: .3rem;
}
.zm-msg.zm-ai {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--t1);
  border-bottom-left-radius: .3rem;
}

/* 等待时的三点呼吸 */
.zm-msg.zm-wait { display: flex; gap: .3rem; align-items: center; padding: .95rem 1rem; }
.zm-msg.zm-wait i {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--t3);
  animation: zm-dot 1.25s ease-in-out infinite;
}
.zm-msg.zm-wait i:nth-child(2) { animation-delay: .16s; }
.zm-msg.zm-wait i:nth-child(3) { animation-delay: .32s; }
@keyframes zm-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* 助手判断你想动手了，才会给出这个按钮 */
.zm-msg-go {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .7rem;
  padding: .5rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-family: inherit;
  font-size: .87rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(242, 118, 43, .9);
  transition: transform .16s ease, filter .16s ease;
}
.zm-msg-go svg { width: .95rem; height: .95rem; }
.zm-msg-go:hover { transform: translateY(-1px); filter: brightness(1.06); }
.zm-msg-go.zm-busy { pointer-events: none; opacity: .65; }

/* 对话开起来之后，输入框和上面的气泡之间加条分隔 */
.zm-chat.zm-on + .zm-agent-in {
  border-top: 1px solid var(--line);
  padding-top: .95rem;
  margin-top: .3rem;
}

@media (max-width: 860px) {
  .zm-chat { max-height: 16rem; }
  .zm-msg { max-width: 92%; font-size: .89rem; }
}

/* ============================================================
   头像下拉 / 云丹AI大赛
   ============================================================ */

/* ---- 头像下拉：点头像先出菜单，要改设置再进弹窗 ---- */
.zm-userwrap { position: relative; }
.zm-caret {
  display: inline-flex;
  margin-left: .1rem;
  transform: rotate(90deg);
  opacity: .5;
  transition: transform .2s ease;
}
.zm-caret svg { width: .8rem; height: .8rem; }
.zm-userwrap.zm-open .zm-caret { transform: rotate(-90deg); }

.zm-menu {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  z-index: 80;
  min-width: 14rem;
  padding: .45rem;
  border-radius: .9rem;
  background: rgba(18, 20, 22, .96);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.zm-userwrap.zm-open .zm-menu { opacity: 1; visibility: visible; transform: none; }

.zm-menu-head {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .75rem .8rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}
.zm-menu-head > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-style: normal;
  font-weight: 700;
}
.zm-menu-head b { display: block; font-size: .92rem; }
.zm-menu-head span { display: block; margin-top: .1rem; font-size: .74rem; color: var(--t3); }

.zm-menu-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .58rem .75rem;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: var(--t2);
  font-family: inherit;
  font-size: .88rem;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.zm-menu-item svg { width: 1.05rem; height: 1.05rem; flex: none; opacity: .8; }
.zm-menu-item:hover { color: var(--t1); background: rgba(255, 255, 255, .06); }
.zm-menu-item.zm-danger { margin-top: .3rem; border-top: 1px solid var(--line); padding-top: .68rem; border-radius: 0 0 .55rem .55rem; }
.zm-menu-item.zm-danger:hover { color: #ff7a6b; background: rgba(255, 122, 107, .1); }

/* 顶栏功能条里还没上线的那几项 */
.zm-navbtn.zm-soon::after {
  content: "";
  display: inline-block;
  width: .3rem;
  height: .3rem;
  margin: 0 0 .5rem .28rem;
  border-radius: 50%;
  background: var(--g1);
  opacity: .55;
}

/* ---- 轮播里的大赛卡（没素材，整张 CSS 画） ---- */
.zm-slide-contest {
  background:
    radial-gradient(120% 90% at 15% 15%, rgba(242, 118, 43, .3), transparent 60%),
    radial-gradient(90% 80% at 88% 82%, rgba(255, 169, 77, .22), transparent 62%),
    linear-gradient(135deg, #1a0f06, #0b0d0f 55%, #140a04);
  overflow: hidden;
}
.zm-ct-glow {
  position: absolute;
  inset: -30% -10%;
  background:
    conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(255, 169, 77, .16) 60deg, transparent 130deg),
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 169, 77, .045) 22px 23px);
  animation: zm-ct-turn 22s linear infinite;
  pointer-events: none;
}
@keyframes zm-ct-turn { to { transform: rotate(360deg); } }

/* ⚠️ 别写 position:relative —— 会盖掉 .zm-slide-body 的 absolute，
   内容会整块掉到卡片顶上去。这里只调纵向位置。 */
.zm-ct-body {
  z-index: 1;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  text-align: center;
}
.zm-ct-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .34rem .8rem;
  border-radius: 999px;
  background: rgba(255, 169, 77, .14);
  border: 1px solid rgba(255, 169, 77, .4);
  color: var(--g1);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.zm-ct-badge svg { width: 1rem; height: 1rem; }

.zm-ct-title {
  margin-top: .85rem;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.15;
}
.zm-ct-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.zm-ct-when { margin-top: .75rem; font-size: .84rem; color: var(--t3); letter-spacing: .02em; }

.zm-ct-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1.15rem;
  padding: .62rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(242, 118, 43, .9);
  transition: transform .16s ease, filter .16s ease;
}
.zm-ct-btn svg { width: 1rem; height: 1rem; }
.zm-ct-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ---- 云丹TV 里的大赛详情页 ---- */
.zm-grid.zm-grid-plain { display: block; }

.zm-ctp {
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(242, 118, 43, .16), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  overflow: hidden;
}
.zm-ctp-hero { padding: 3rem 3rem 2.4rem; text-align: center; }
.zm-ctp-title { margin-top: 1rem; font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
.zm-ctp-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--g1), var(--g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.zm-ctp-sub { margin-top: .7rem; font-size: .98rem; color: var(--t2); }

.zm-ctp-dates {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.6rem;
  margin-top: 2rem;
}
.zm-ctp-dates > div { display: flex; flex-direction: column; gap: .28rem; }
.zm-ctp-dates b { font-size: 1.12rem; font-weight: 700; color: var(--g1); }
.zm-ctp-dates span { font-size: .78rem; color: var(--t3); }
.zm-ctp-btn { margin-top: 2rem; }

.zm-ctp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 3rem 2.2rem;
}
.zm-ctp-step {
  display: flex;
  gap: .75rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: .9rem;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
}
.zm-ctp-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 169, 77, .16);
  border: 1px solid rgba(255, 169, 77, .38);
  color: var(--g1);
  font-size: .78rem;
  font-weight: 700;
}
.zm-ctp-when { font-size: .74rem; color: var(--g1); letter-spacing: .02em; }
.zm-ctp-h { margin-top: .28rem; font-size: .95rem; font-weight: 600; }
.zm-ctp-d { margin-top: .3rem; font-size: .8rem; line-height: 1.65; color: var(--t3); }

.zm-ctp-note {
  padding: 1.3rem 3rem 1.8rem;
  border-top: 1px solid var(--line);
  font-size: .81rem;
  line-height: 1.85;
  color: var(--t3);
}

@media (max-width: 1280px) {
  .zm-feats { grid-template-columns: repeat(2, 1fr); }
  .zm-ctp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .zm-feats { grid-template-columns: 1fr; }
  .zm-ct-title, .zm-ctp-title { font-size: 1.8rem; }
  .zm-ctp-hero { padding: 2rem 1.4rem 1.8rem; }
  .zm-ctp-steps { grid-template-columns: 1fr; padding: 0 1.4rem 1.6rem; }
  .zm-ctp-note { padding: 1.1rem 1.4rem 1.5rem; }
  .zm-ctp-dates { gap: 1.4rem; }
  .zm-menu { min-width: 12rem; }
}

/* ============================================================
   社区：发布按钮 / 卡片作者标 / 投稿弹窗 / 我的投稿
   ============================================================ */

/* 云丹TV 区右上角「发布作品」 */
.zm-works-head { display: flex; align-items: flex-end; justify-content: space-between; }
.zm-post-btn {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .5rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(242, 118, 43, .9);
  transition: transform .16s ease, filter .16s ease;
}
.zm-post-btn svg { width: .95rem; height: .95rem; }
.zm-post-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* 作品卡上的作者 / 参赛标 */
.zm-card-badge {
  position: absolute;
  top: .55rem; left: .55rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #2b1406;
  font-size: .68rem;
  font-weight: 700;
  z-index: 2;
}
.zm-card-author {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: .2rem;
  font-size: .72rem;
  color: var(--g1);
  opacity: .92;
}
.zm-card-author svg { width: .8rem; height: .8rem; }

/* 投稿 / 我的投稿 弹窗 */
.zm-post {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 10, .62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  padding: 1.5rem;
}
.zm-post-card {
  width: min(34rem, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(160deg, rgba(30, 34, 40, .96), rgba(20, 24, 30, .97));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.zm-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 600;
}
.zm-post-head button {
  width: 1.9rem; height: 1.9rem;
  border: 0; border-radius: .5rem;
  background: transparent;
  color: var(--t3);
  font-size: 1.3rem;
  cursor: pointer;
}
.zm-post-head button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.zm-post-body { padding: 1.3rem 1.4rem; overflow-y: auto; }
.zm-post-f { display: block; margin-bottom: 1rem; }
.zm-post-f > span { display: block; margin-bottom: .4rem; font-size: .82rem; color: var(--t2); }
.zm-post-f input, .zm-post-f select {
  width: 100%;
  box-sizing: border-box;
  height: 2.5rem;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: rgba(255, 255, 255, .04);
  color: var(--t1);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
}
.zm-post-f input:focus, .zm-post-f select:focus { border-color: rgba(255, 169, 77, .5); }
.zm-post-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--t2);
  cursor: pointer;
}
.zm-post-check input { margin-top: .2rem; }
.zm-post-note { margin-top: .9rem; font-size: .78rem; line-height: 1.7; color: var(--t3); }

.zm-post-foot {
  display: flex;
  justify-content: flex-end;
  gap: .7rem;
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid var(--line);
}
.zm-post-cancel, .zm-post-go {
  padding: .58rem 1.4rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.zm-post-cancel { border: 1px solid var(--line); background: transparent; color: var(--t2); }
.zm-post-cancel:hover { color: #fff; border-color: var(--line-2, rgba(255,255,255,.18)); }
.zm-post-go { border: 0; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #2b1406; }
.zm-post-go:hover { filter: brightness(1.06); }
.zm-post-go:disabled { opacity: .6; cursor: default; }

/* 我的投稿列表 */
.zm-myposts .zm-post-body { padding: .8rem 1rem 1.1rem; }
.zm-mine-post {
  display: flex;
  gap: .8rem;
  padding: .7rem;
  border-radius: .7rem;
  border: 1px solid var(--line);
  margin-bottom: .6rem;
}
.zm-mine-post-cover {
  flex: none;
  width: 3.4rem; height: 4.4rem;
  border-radius: .45rem;
  background: rgba(255, 255, 255, .06) center/cover no-repeat;
}
.zm-mine-post-main { flex: 1; min-width: 0; }
.zm-mine-post-title {
  font-size: .92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zm-mine-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.zm-post-status { padding: .12rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.zm-st-wait { background: rgba(255, 209, 102, .16); color: #ffd166; }
.zm-st-ok   { background: rgba(78, 224, 176, .16); color: #4ee0b0; }
.zm-st-no   { background: rgba(255, 122, 107, .16); color: #ff7a6b; }
.zm-post-tag { padding: .12rem .5rem; border-radius: 999px; background: rgba(255,169,77,.16); color: var(--g1); font-size: .7rem; }
.zm-mine-reason { font-size: .74rem; color: var(--t3); }
.zm-mine-likes { font-size: .74rem; color: var(--t3); }

@media (max-width: 640px) { .zm-post-btn span { display: none; } }
