/* 首页：创作入口、风格库、落地页。 */

/* Home / creation entry */
.home {
  background: radial-gradient(760px 450px at 69% 7%, rgba(68, 83, 151, .25), transparent 72%), radial-gradient(600px 420px at 21% 34%, rgba(84, 51, 154, .16), transparent 72%), #0b0b10;
}
.home .topbar {
  top: 0;
}
.rail {
  left: 18px;
  top: 86px;
  width: 70px;
  padding: 7px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(35,34,50,.92), rgba(22,22,31,.94));
  border: 1px solid rgba(221,216,255,.12);
  box-shadow: 0 20px 55px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
}
.rail-item {
  width: 56px;
  height: 61px;
  border-radius: 28px;
  gap: 5px;
  color: #aaa6b5;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.rail-item:hover {
  color: #fff;
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}
.rail-item.on {
  color: #fff;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.rail-item svg {
  width: 19px;
  height: 19px;
}
.rail-item span {
  font-size: 10px;
  font-weight: 560;
}
.switcher {
  height: 42px;
  padding: 4px;
  border-radius: 22px;
  background: rgba(43,42,57,.76);
  border-color: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(16px);
}
.switcher button {
  height: 32px;
  border-radius: 17px;
  padding: 0 20px;
  font-weight: 540;
}
.switcher button.on {
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.055));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 4px 12px rgba(0,0,0,.1);
}
.home-hero h1 {
  color: transparent;
}
.upload-card {
  width: min(980px, 100%);
  min-height: 304px;
  border-radius: 26px;
  border: 1px solid rgba(192,169,255,.2);
  background: linear-gradient(135deg, rgba(194,204,241,.075), transparent 31%, transparent 76%, rgba(194,204,241,.065)), rgba(17,17,24,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 24px 70px rgba(0,0,0,.16), 0 0 60px rgba(87,49,175,.07);
  backdrop-filter: blur(14px);
}
.upload-card .lead {
  font-size: 15px;
  font-weight: 580;
  color: #f1eff6;
}
.source-tabs {
  padding: 4px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.045);
}
.source-tabs button {
  height: 31px;
  padding: 0 17px;
  border-radius: 15px;
}
.source-tabs button.on {
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.file-ico {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(105,85,175,.26), rgba(255,255,255,.07));
  border: 1px solid rgba(202,186,255,.16);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}
.upload-pane {
  gap: 11px;
}
.upload-pane textarea {
  min-height: 122px;
  border-radius: 16px;
  background: rgba(5,5,9,.4);
  border: 1px solid rgba(255,255,255,.075);
}
.creator {
  width: min(1000px, 100%);
  gap: 16px;
}
.up-ok,
.form-card {
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(194,204,241,.06), transparent 42%), rgba(22,21,30,.78);
  border: 1px solid rgba(230,226,255,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 48px rgba(0,0,0,.12);
}
.up-ok {
  width: 292px;
  min-height: 390px;
}
.up-ok .doc {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(105,85,175,.24), rgba(255,255,255,.06));
}
.up-ok .close {
  top: -5px;
  right: -7px;
  border: 1px solid rgba(255,255,255,.14);
}
.up-ok .ttl {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 580;
}
.form-card {
  padding: 20px 22px 18px;
}
.form-card .group {
  margin-bottom: 13px;
}
.form-card label {
  color: #aaa6b5;
  font-weight: 520;
}
.control,
.style-field {
  min-height: 38px;
  border-radius: 11px;
  background: rgba(7,7,12,.4);
  border-color: rgba(255,255,255,.105);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.control:focus-within,
.style-field:hover {
  background: rgba(9,8,15,.55);
  border-color: rgba(162,113,255,.55);
  box-shadow: 0 0 0 3px rgba(126,74,255,.08);
}
.style-field {
  height: 42px;
}
.auto-row {
  margin-top: 15px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(126,74,255,.16), rgba(84,63,147,.07));
  border-color: rgba(176,137,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.auto-row b {
  color: #f4efff;
  font-weight: 650;
}
.auto-row small {
  color: #aaa4b7;
}
.cta {
  margin-top: 16px;
}
.cta .btn {
  min-width: 148px;
  min-height: 38px;
}
.home-projects {
  max-width: 1180px;
  margin: 48px auto 0;
}
.home-projects h2 {
  font-size: 16px;
  margin-bottom: 16px;
}
.strip {
  gap: 14px;
}
.proj {
  width: 216px;
  padding: 9px 9px 14px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(194,204,241,.055), transparent 38%), rgba(21,20,28,.84);
  border: 1px solid rgba(255,255,255,.065);
  box-shadow: 0 12px 34px rgba(0,0,0,.09);
}
.proj:hover {
  background: linear-gradient(140deg, rgba(194,204,241,.08), rgba(25,24,34,.94));
  border-color: rgba(184,155,255,.18);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,.17);
}
.proj .thumb {
  height: 128px;
  border-radius: 13px;
}
.proj-title {
  margin-top: 11px;
  font-weight: 580;
}
.fab {
  left: 29px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, #7443e9, #a451ff);
  border: 1px solid rgba(221,199,255,.34);
  box-shadow: 0 12px 32px rgba(118,58,235,.38), inset 0 1px 0 rgba(255,255,255,.22);
}

/* ===== Film landing page replica (tiaoyue.com /creative/drama/home-b) ===== */
.home .topbar {
  position: sticky;
  height: 64px;
  padding: 0 29px;
  background: rgba(11, 11, 16, .92);
  border-bottom: 0;
}
.home .topbar .step {
  height: 38px;
  padding: 0 17px;
  background: rgba(255,255,255,.075);
  border: 0;
  font-size: 13px;
}
.home .topbar .step:hover {
  background: rgba(255,255,255,.11);
}
.home .credit {
  height: 38px;
  border-radius: 19px;
}
.home .bell {
  width: 38px;
  height: 38px;
}
.home .avatar {
  width: 34px;
  height: 34px;
  border: 0;
}
.home .rail {
  left: 16px;
  top: 80px;
  width: 64px;
  max-height: calc(100vh - 217px);
  padding: 3px;
  border-radius: 36px;
  overflow-y: auto;
  overflow-x: visible;
  background: rgba(29,29,39,.96);
  border-color: rgba(255,255,255,.12);
}
.home .rail::-webkit-scrollbar {
  width: 0;
}
.home .rail-item {
  width: 56px;
  height: 72px;
  flex: none;
  border-radius: 28px;
  position: relative;
  font-weight: 550;
}
.home .rail-item svg {
  width: 21px;
  height: 21px;
}
.home .rail-item span {
  font-size: 12px;
}
.home .rail-item.on {
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.rail-tip {
  display: none;
  position: fixed;
  left: 92px;
  top: 182px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  align-items: center;
  color: #b8b4c0;
  background: rgba(25,24,31,.94);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  font: normal 12px/1 var(--font);
  white-space: nowrap;
  pointer-events: none;
}
.rail-item.on .rail-tip {
  display: inline-flex;
}
.home-main {
  margin-left: 0;
  padding: 57px 40px 90px 120px;
  position: relative;
  overflow: hidden;
}
.home-main::before {
  content: "";
  position: absolute;
  left: 82px;
  top: 30px;
  width: 330px;
  height: 300px;
  opacity: .54;
  pointer-events: none;
  background: radial-gradient(circle, rgba(148,77,255,.62) 0 1px, transparent 1.4px) 0 0 / 5px 5px, radial-gradient(closest-side, rgba(115,52,219,.26), transparent);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0, rgba(0,0,0,.75) 38%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 0, rgba(0,0,0,.75) 38%, transparent 74%);
}
.home-hero {
  padding-top: 0;
  position: relative;
  left: -5px;
  z-index: 1;
}
.home .switcher {
  width: 366px;
  height: 46px;
  padding: 3px;
  border-radius: 25px;
  background: linear-gradient(95deg, rgba(45,43,57,.94), rgba(36,50,82,.88));
  border: 1px solid rgba(255,255,255,.05);
}
.home .switcher button {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: 22px;
  justify-content: center;
  color: #9f9ba7;
  font-size: 14px;
  white-space: nowrap;
}
.home .switcher button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.home .switcher button.on {
  color: #fff;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.74);
}
.home-hero h1 {
  margin: 24px 0;
  font-size: 25px;
  font-weight: 640;
  line-height: 1.3;
  letter-spacing: .005em;
  background: linear-gradient(96deg, #f7f5fb 0%, #f3f0f7 26%, #c79bff 54%, #f8f4fa 82%);
  -webkit-background-clip: text;
  background-clip: text;
}
.home .upload-card {
  width: min(726px, 100%);
  min-height: 247px;
  padding: 28px;
  gap: 11px;
  border-radius: 22px;
  background: rgba(22,21,28,.9);
  border: 1px solid rgba(183,124,255,.55);
  box-shadow: none;
}
.home .upload-card .source-tabs {
  display: none;
}
.home.is-pasting .upload-card .source-tabs {
  display: flex;
}
.home .upload-card .file-ico {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,.035), rgba(255,255,255,.015)), #25242b;
  border-color: rgba(255,255,255,.055);
  box-shadow: -10px 4px 0 -2px rgba(44,43,50,.72), 10px 4px 0 -2px rgba(44,43,50,.72);
}
.home .upload-card .lead {
  margin-top: 2px;
  font-size: 14px;
}
.home .upload-card .sub {
  color: #66626d;
}
.home .upload-card .btn {
  height: 40px;
  padding: 0 22px;
  font-size: 13px;
}
.home .upload-card .btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.home .upload-card .btn.primary {
  color: #242129;
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}
.home .upload-card .btn.primary:hover {
  color: #17151c;
  background: #f4f3f6;
}
.home .upload-card .btn:not(.primary) {
  background: rgba(255,255,255,.075);
}
.home .upload-pane textarea {
  width: min(680px, 100%);
}
.home .creator {
  width: min(980px, 100%);
  position: relative;
  z-index: 1;
}
.home-projects,
.home-showcase {
  width: min(726px, 100%);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.home-projects {
  margin-top: 48px;
}
.home-projects h2,
.home-showcase h2 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 650;
  color: #f2f0f5;
}
.home-projects h2 a {
  font-size: 13px;
  color: #e8e5ed;
}
.home .strip {
  gap: 16px;
}
.home .proj {
  width: 165px;
  padding: 8px 12px 12px;
  border-radius: 15px;
  background: rgba(23,22,29,.92);
  border-color: rgba(255,255,255,.035);
  box-shadow: none;
}
.home .proj:hover {
  background: #1b1a22;
  border-color: rgba(255,255,255,.09);
  transform: translateY(-2px);
  box-shadow: none;
}
.home .proj .thumb {
  height: 77px;
  border-radius: 10px;
}
.home .proj-title {
  margin-top: 10px;
  font-size: 14px;
}
.home .proj-mid {
  margin-top: 7px;
  color: #9a96a1;
  font-size: 11px;
}
.home .proj-sub {
  margin-top: 7px;
  color: #68646f;
  font-size: 11px;
}
.home-showcase {
  margin-top: 43px;
}
.show-tabs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.show-tabs::-webkit-scrollbar {
  height: 0;
}
.show-tabs button {
  height: 38px;
  padding: 0 17px;
  flex: none;
  border-radius: 10px;
  color: #cac6d0;
  font-size: 13px;
  font-weight: 560;
}
.show-tabs button:hover {
  background: rgba(255,255,255,.045);
}
.show-tabs button.on {
  color: #fff;
  background: rgba(255,255,255,.09);
}
.show-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}
.show-card {
  min-width: 0;
  color: inherit;
  text-align: left;
  border-radius: 17px;
  overflow: hidden;
  background: rgba(23,22,29,.88);
  border: 1px solid rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.show-card:hover {
  transform: translateY(-3px);
  border-color: rgba(179,131,255,.22);
  background: #1b1a22;
}
.show-card[hidden] {
  display: none;
}
.show-poster {
  display: block;
  height: 294px;
  position: relative;
  overflow: hidden;
  background: #24222b;
}
.show-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(10,9,14,.18) 64%, rgba(10,9,14,.86));
}
.show-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(.92) contrast(1.03);
}
.show-poster.warm {
  background: #6b3e2d;
}
.show-poster.storm {
  background: #23325f;
}
.show-poster.dusk {
  background: #4a362d;
}
.show-poster.gold {
  background: #6b5632;
}
.show-poster.cold {
  background: #213848;
}
.show-poster.rose {
  background: #624050;
}
.show-poster.green {
  background: #263b31;
}
.show-poster.noir {
  background: #252532;
}
.show-poster i {
  position: absolute;
  left: 10px;
  top: 11px;
  z-index: 2;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7e49ea, #bf5cff);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}
.show-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10,9,14,.58);
  border: 1px solid rgba(255,255,255,.3);
  opacity: 0;
  transform: translate(-50%,-45%);
  transition: opacity .18s ease, transform .18s ease;
}
.show-card:hover .show-play {
  opacity: 1;
  transform: translate(-50%,-50%);
}
.show-card > .show-kind,
.show-card > strong,
.show-card > small {
  display: block;
  padding-left: 13px;
  padding-right: 13px;
}
.show-card > .show-kind {
  margin-top: 11px;
  color: #8f8a97;
  font-size: 11px;
}
.show-card > strong {
  margin-top: 5px;
  color: #f0edf4;
  font-size: 14px;
  font-weight: 620;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.show-card > small {
  margin: 5px 0 14px;
  color: #77727e;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.home .fab {
  left: 19px;
  bottom: 23px;
  width: 57px;
  height: 100px;
  padding: 12px 4px 9px;
  border-radius: 31px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(180deg, #7448ff, #5960ff);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 10px 30px rgba(59,45,190,.34), inset 0 1px 0 rgba(255,255,255,.2);
}
.home .fab i {
  position: absolute;
  right: -5px;
  top: -8px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  background: #ff6b78;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.home .fab span {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 620;
}
.home .fab b {
  width: 30px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7661ff;
  background: rgba(255,255,255,.86);
  font-size: 10px;
}

@media (max-width: 820px) {
  .home .topbar {
    height: 70px;
    padding: 0 16px;
  }
  .home .rail {
    left: 50%;
    top: auto;
    bottom: 12px;
    width: min(94vw, 540px);
    max-height: 66px;
    height: 66px;
    padding: 4px 8px;
    border-radius: 33px;
    overflow-x: auto;
    overflow-y: hidden;
    transform: translateX(-50%);
    flex-direction: row;
  }
  .home .rail-item {
    width: 58px;
    height: 56px;
    flex: none;
  }
  .rail-tip {
    display: none !important;
  }
  .home-main {
    margin-left: 0;
    padding: 38px 18px 104px;
  }
  .home-main::before {
    left: -120px;
  }
  .home-hero {
    left: 0;
  }
  .home .switcher {
    width: min(100%, 400px);
  }
  .home-hero h1 {
    font-size: 24px;
  }
  .home .upload-card {
    min-height: 300px;
  }
  .home-projects,
  .home-showcase {
    width: 100%;
  }
  .home .proj {
    width: 180px;
  }
  .show-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .show-poster {
    height: 250px;
  }
  .home .fab {
    display: none;
  }
}
