/* ============================================================
   Home / project dashboard
   ============================================================ */

.home {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0b0b0c;
}

.home-top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.045);
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 18px;
}
.home-nav a {
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.home-nav a:hover { color: var(--text); background: var(--bg-hover); }
.home-nav a.is-active { color: var(--text); background: rgba(255,255,255,0.06); }

.home-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.credit-chip {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  color: #f0dfb9;
}
.credit-chip .num {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.credit-chip .heart { color: var(--gold); }

.home-main {
  width: min(1260px, calc(100% - 56px));
  margin: 0 auto;
  padding: 26px 0 80px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 264px;
  border-radius: 14px;
  overflow: hidden;
  background: #101012;
  box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,9,0.94) 0%, rgba(8,8,9,0.72) 38%, rgba(8,8,9,0.2) 70%, rgba(8,8,9,0.45) 100%),
    linear-gradient(0deg, rgba(8,8,9,0.6), transparent 60%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 44px;
  max-width: 620px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #f7f7f8;
}
.hero p {
  margin: 12px 0 22px;
  font-size: 13px;
  line-height: 1.7;
  color: #a9a9b0;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 10px; }
.hero-actions .btn { height: 36px; padding: 0 16px; font-size: 13px; }
.hero-actions .btn.primary { background: #f4f4f5; }
.hero-side {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-thumb {
  width: 86px;
  height: 54px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 10px 24px rgba(0,0,0,0.45);
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}
.hero-thumb:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { margin-top: 38px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.section-sub { font-size: 11.5px; color: var(--text-3); }
.section-head .more {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-head .more:hover { color: var(--text); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.project-card { position: relative; min-width: 0; }
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: #151516;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
  cursor: pointer;
}
.project-thumb:hover {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 12px 26px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}
.project-thumb .cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.project-thumb .cover-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3a3a3e;
}
.project-card.new .project-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #141415;
}
.project-card.new .project-thumb .plus-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #242427;
  color: #d8d8dc;
}
.project-card.new .label { font-size: 12px; color: var(--text-2); }
.project-meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 9px 2px 0;
}
.project-name {
  font-size: 12.5px;
  color: #d9d9dd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.project-date { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.project-meta .more {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.project-card:hover .project-meta .more { opacity: 1; }
.project-meta .more:hover { background: var(--bg-hover); color: var(--text); }

/* ---------- filters ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  height: 27px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--text-2);
  background: #161617;
  box-shadow: inset 0 0 0 1px var(--line);
}
.filter-chip:hover { color: var(--text); }
.filter-chip.is-active { background: #ededee; color: #121213; box-shadow: none; font-weight: 600; }

/* ---------- template grid ---------- */
.template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.template-card {
  position: relative;
  height: 132px;
  border-radius: 9px;
  overflow: hidden;
  background: #151516;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.template-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.template-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
}
.template-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,6,7,0.9), rgba(6,6,7,0.06) 66%);
}
.template-card .cap {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-size: 12.5px;
  color: #f0f0f2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.template-card .tag {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.45);
  color: #ddd;
  backdrop-filter: blur(6px);
}

.home-footer {
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  color: var(--text-4);
}

@media (max-width: 1000px) {
  .project-grid, .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 24px; }
  .hero-copy { padding: 0 28px; }
  .home-main { width: calc(100% - 36px); }
}
@media (max-width: 640px) {
  .home-nav { display: none; }
  .hero-side { display: none; }
  .project-grid, .template-grid { grid-template-columns: 1fr; }
}


/* home search */
.home-search {
  height: 30px;
  width: 190px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 7px;
  background: #151516;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  color: #6e6e76;
  transition: box-shadow 0.15s;
}
.home-search:focus-within { box-shadow: inset 0 0 0 1px rgba(110,168,255,0.6); color: #a8a8b0; }
.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 11.5px;
  color: #e2e2e6;
}
.home-search input::placeholder { color: #66666e; }

/* ---------- secondary pages ---------- */
.subpage .home-main { padding-top: 34px; }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.page-eyebrow { font-size: 9.5px; letter-spacing: 0.14em; color: #5f5f67; margin-bottom: 8px; }
.page-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: #f2f2f4; }
.page-desc { margin: 8px 0 0; font-size: 11.5px; color: #77777f; }
.page-head > .btn { margin-left: auto; height: 36px; padding: 0 14px; }
.page-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.page-search { width: 230px; height: 32px; }
.page-hint { font-size: 10px; color: #5f5f67; }

.template-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.template-card.big { height: 188px; }
.template-card.big .cap { font-size: 13px; }
.template-card.big .tag { font-size: 9px; }

.page-asset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.page-asset {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #141415;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  text-align: left;
}
.page-asset img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s var(--ease); }
.page-asset:hover img { transform: scale(1.03); }
.page-asset:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.pa-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 9px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  font-size: 10px;
  color: #e6e6ea;
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pa-cap em { font-style: normal; font-size: 8.5px; color: #8f8f97; }

@media (max-width: 1100px) {
  .template-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .template-page-grid { grid-template-columns: 1fr; }
  .page-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head > .btn { margin-left: 0; }
}

/* ---------- 项目页文件夹 ---------- */
.projects-layout {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 6px;
}
.folder-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: sticky;
  top: 22px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.018);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.folder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #9a9aa2;
  text-align: left;
  min-width: 0;
  flex: 1;
}
.folder-item .ic { color: #6f6f77; flex: none; }
.folder-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-item em { margin-left: auto; font-style: normal; font-size: 10px; color: #5f5f67; flex: none; }
.folder-item:hover { background: #1b1b1e; color: #dcdce2; }
.folder-item.is-active { background: #232327; color: #fff; }
.folder-item.is-active .ic { color: #9dc2ff; }
.folder-row { display: flex; align-items: center; }
.folder-row.is-active .folder-item { background: #232327; color: #fff; }
.folder-more {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: #5f5f67;
  opacity: 0;
  flex: none;
}
.folder-row:hover .folder-more { opacity: 1; }
.folder-more:hover { background: #2a2a2e; color: #dcdce2; }
.folder-sep { height: 1px; margin: 7px 4px; background: rgba(255,255,255,0.055); }
.folder-new {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #6f6f77;
}
.folder-new:hover { background: #1a1a1d; color: #dcdce2; }
.projects-main { min-width: 0; }
@media (max-width: 980px) {
  .projects-layout { grid-template-columns: 1fr; }
  .folder-nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .folder-sep { display: none; }
}

/* ---------- 素材批量选择 ---------- */
.batch-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #1b1b1e;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: menu-in 0.14s var(--ease);
}
.batch-bar.hidden { display: none; }
.bb-count { font-size: 11.5px; color: #dcdce2; letter-spacing: 0.01em; }
.batch-bar .btn[disabled] { opacity: 0.4; pointer-events: none; }
.page-asset.is-picked { box-shadow: inset 0 0 0 2px #6ea8ff; }
.page-asset.is-picked::after {
  content: "✓";
  position: absolute;
  top: 6px; right: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #6ea8ff;
  color: #0a0a0b;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn.sm.is-active { box-shadow: inset 0 0 0 1px rgba(110,168,255,0.6); color: #cfe0ff; }

/* ---------- 灵感 / TV Show ---------- */
.show-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.show-hero-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  background: #121214;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}
.show-hero-card .sh-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s var(--ease);
}
.show-hero-card:hover .sh-art { transform: scale(1.04); }
.show-hero-card .sh-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,0.86) 6%, rgba(6,6,8,0.15) 55%, transparent 80%);
}
.show-hero-card .sh-meta {
  position: absolute;
  left: 18px; bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.show-hero-card .sh-meta b { font-size: 19px; color: #fff; letter-spacing: 0.01em; }
.show-hero-card .sh-meta i { font-style: normal; font-size: 11px; color: rgba(255,255,255,0.66); }
.show-hero-card .sh-play {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9);
  color: #111;
  backdrop-filter: blur(6px);
}
.show-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.show-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 10px;
  text-align: left;
  background: transparent;
}
.show-card .sh-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.show-card:hover .sh-art { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.16); }
.show-card .sh-dur {
  position: absolute;
  right: 7px; bottom: 7px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 9px;
  color: #efeff3;
  background: rgba(8,8,10,0.66);
}
.show-card .sh-info { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.show-card .sh-info b { font-size: 12.5px; color: #e8e8ec; font-weight: 500; }
.show-card .sh-info i { font-style: normal; font-size: 10px; color: #6f6f77; }
.show-card .sh-info em { font-style: normal; font-size: 9.5px; color: #7c7c84; display: inline-flex; align-items: center; gap: 3px; }
@media (max-width: 1100px) {
  .show-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .show-hero { grid-template-columns: 1fr; }
}
