:root {
  --space: #070326;
  --deep: #100844;
  --blue: #145cff;
  --blue-soft: #2e8cff;
  --cyan: #35e8ff;
  --violet: #8c46ff;
  --purple: #5728db;
  --pink: #b052ff;
  --text: #edf5ff;
  --muted: #a7b5d8;
  --dim: #65739b;
  --panel: rgba(18, 18, 72, 0.58);
  --panel-strong: rgba(21, 23, 88, 0.76);
  --line: rgba(94, 149, 255, 0.24);
  --line-strong: rgba(53, 232, 255, 0.5);
  --glow: 0 0 42px rgba(46, 140, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 22% 18%, rgba(140, 70, 255, 0.34), transparent 22rem),
    radial-gradient(circle at 83% 13%, rgba(20, 92, 255, 0.42), transparent 27rem),
    radial-gradient(circle at 78% 62%, rgba(53, 232, 255, 0.14), transparent 20rem),
    linear-gradient(135deg, #05021c 0%, #130955 48%, #06113d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(53, 232, 255, 0.72) 0 1px, transparent 1.5px);
  background-position: 0 0, 26px 34px;
  background-size: 92px 92px, 128px 128px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  width: min(1260px, calc(100% - 34px));
  margin: 28px auto 118px;
  overflow: hidden;
  border: 1px solid rgba(118, 146, 255, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 7, 42, 0.82), rgba(6, 5, 28, 0.94)),
    rgba(6, 5, 28, 0.88);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.56), 0 0 80px rgba(46, 140, 255, 0.12);
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-shell::before {
  inset: -160px -120px auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 108, 255, 0.42), transparent 62%);
}

.site-shell::after {
  right: -120px;
  top: 80px;
  width: 460px;
  height: 760px;
  border-radius: 50%;
  border: 1px solid rgba(78, 116, 255, 0.18);
  background: linear-gradient(145deg, rgba(59, 74, 255, 0.2), transparent 58%);
  transform: rotate(18deg);
}

.tech-shape,
.orbit-line {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hex {
  width: 86px;
  height: 78px;
  background: linear-gradient(135deg, rgba(53, 232, 255, 0.82), rgba(140, 70, 255, 0.82));
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  filter: drop-shadow(0 0 26px rgba(86, 128, 255, 0.42));
  opacity: 0.72;
}

.hex.small {
  width: 42px;
  height: 38px;
  opacity: 0.9;
}

.hex-one {
  top: 96px;
  right: 150px;
}

.hex-two {
  top: 155px;
  left: 44%;
  transform: rotate(24deg);
}

.hex-three {
  top: 64px;
  left: 36%;
  transform: rotate(-15deg);
}

.orbit-line {
  right: -130px;
  top: 135px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(93, 126, 255, 0.24);
  border-radius: 50%;
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(118, 146, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(53, 232, 255, 0.54);
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(53, 232, 255, 0.08);
  box-shadow: var(--glow);
  font-weight: 900;
}

.site-title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.top-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.top-info span,
.top-info a,
.filter-chip {
  border: 1px solid rgba(118, 146, 255, 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
}

.top-info a {
  color: var(--text);
  border-color: rgba(140, 70, 255, 0.4);
  background: rgba(140, 70, 255, 0.18);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 390px;
  padding: 42px 42px 28px;
}

.avatar-stage {
  position: relative;
  min-height: 315px;
}

.profile-card {
  position: absolute;
  left: 20px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 250px;
  min-height: 300px;
  border: 1px solid rgba(53, 232, 255, 0.22);
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.18), transparent 7rem),
    linear-gradient(180deg, rgba(92, 105, 255, 0.22), rgba(80, 74, 180, 0.1));
  filter: drop-shadow(0 0 40px rgba(67, 98, 255, 0.28));
}

.profile-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(53, 232, 255, 0.3);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.22), transparent 4rem),
    linear-gradient(135deg, rgba(30, 43, 255, 0.48), rgba(53, 232, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo span {
  display: grid;
  min-width: 112px;
  min-height: 46px;
  padding: 0 16px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #1e2bff, #35e8ff);
  box-shadow: 0 0 35px rgba(53, 232, 255, 0.26);
}

.profile-name {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.profile-photo-actions .button {
  padding: 8px 11px;
  font-size: 0.8rem;
}

.stage-card {
  position: absolute;
  right: 20px;
  bottom: 36px;
  width: 210px;
  border: 1px solid rgba(53, 232, 255, 0.24);
  border-radius: 20px;
  padding: 16px;
  background: rgba(15, 20, 76, 0.56);
  backdrop-filter: blur(16px);
}

.kicker {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.25rem, 4.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.65rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.78;
}

.hero-actions,
.review-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
.dock-button,
.video-action,
.media-action {
  border: 1px solid rgba(53, 232, 255, 0.42);
  border-radius: 4px;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(90deg, #1478ff, #35e8ff);
  box-shadow: 0 0 32px rgba(20, 120, 255, 0.25);
  cursor: pointer;
  font-weight: 900;
}

.button.secondary,
.video-action.secondary,
.media-action.secondary,
.dock-button {
  border-color: rgba(140, 70, 255, 0.42);
  background: rgba(140, 70, 255, 0.16);
}

.button:disabled,
.dock-button:disabled,
.video-action:disabled,
.media-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 252px 1fr;
  border-top: 1px solid rgba(118, 146, 255, 0.18);
}

.sidebar {
  padding: 24px;
  border-right: 1px solid rgba(118, 146, 255, 0.18);
  background: rgba(6, 9, 36, 0.42);
}

.side-title {
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.category-list {
  display: grid;
  gap: 10px;
}

.category {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(118, 146, 255, 0.22);
  border-radius: 5px;
  padding: 12px 14px 12px 38px;
  color: #dfe8ff;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(53, 232, 255, 0.14), transparent 22%),
    rgba(255, 255, 255, 0.038);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
}

.category::before {
  content: attr(data-index);
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--cyan);
  font-size: 0.7rem;
  transform: translateY(-50%);
}

.category.active {
  color: #fff;
  border-color: rgba(53, 232, 255, 0.62);
  background: linear-gradient(90deg, rgba(20, 92, 255, 0.85), rgba(53, 232, 255, 0.55));
  box-shadow: 0 0 30px rgba(20, 92, 255, 0.25);
}

.category.review {
  margin-top: 14px;
  border-color: rgba(176, 82, 255, 0.7);
  background: linear-gradient(90deg, rgba(140, 70, 255, 0.95), rgba(176, 82, 255, 0.62));
}

.content {
  padding: 26px 24px 24px;
}

.content-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.filter-chip {
  color: var(--cyan);
  border-color: rgba(53, 232, 255, 0.34);
  background: rgba(53, 232, 255, 0.06);
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  border: 1px solid rgba(118, 146, 255, 0.22);
  border-radius: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 10%, rgba(53, 232, 255, 0.1), transparent 12rem),
    rgba(13, 18, 62, 0.46);
}

.pager-actions {
  display: flex;
  gap: 10px;
}

.pager-button {
  border: 1px solid rgba(53, 232, 255, 0.38);
  border-radius: 5px;
  padding: 9px 13px;
  color: var(--text);
  background: rgba(53, 232, 255, 0.08);
  cursor: pointer;
  font-weight: 900;
}

.pager-button.add-work {
  background: linear-gradient(90deg, #1478ff, #35e8ff);
  box-shadow: 0 0 28px rgba(20, 120, 255, 0.22);
}

.pager-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pager-info {
  color: var(--muted);
  font-size: 0.92rem;
}

.work-card {
  overflow: hidden;
  border: 1px solid rgba(118, 146, 255, 0.2);
  border-radius: 8px;
  background: rgba(13, 18, 62, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.thumb {
  position: relative;
  display: grid;
  min-height: 172px;
  overflow: hidden;
  color: rgba(237, 245, 255, 0.72);
  border-bottom: 1px solid rgba(118, 146, 255, 0.2);
  background:
    radial-gradient(circle at 28% 20%, rgba(53, 232, 255, 0.22), transparent 9rem),
    radial-gradient(circle at 75% 70%, rgba(140, 70, 255, 0.34), transparent 10rem),
    linear-gradient(135deg, rgba(20, 92, 255, 0.24), rgba(9, 8, 44, 0.92));
}

.thumb-placeholder,
.video-box,
.media-box {
  display: grid;
  min-height: 172px;
  place-items: center;
  padding: 18px;
}

.thumb-placeholder::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 70px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  border: 1px solid rgba(53, 232, 255, 0.28);
  background: rgba(53, 232, 255, 0.035);
}

.thumb-placeholder span {
  z-index: 1;
}

.media-box img,
.video-box video {
  width: 100%;
  max-height: 236px;
  border-radius: 6px;
  background: #000;
}

.media-box img {
  height: 100%;
  min-height: 172px;
  object-fit: cover;
}

.work-info {
  padding: 16px;
}

.work-info p {
  margin-bottom: 0;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.work-meta span {
  border: 1px solid rgba(53, 232, 255, 0.24);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--cyan);
  background: rgba(53, 232, 255, 0.055);
  font-size: 0.78rem;
}

.video-tools,
.media-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.video-action,
.media-action {
  padding: 8px 10px;
  font-size: 0.78rem;
}

.review-section {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 24px;
  border-top: 1px solid rgba(118, 146, 255, 0.18);
}

.sample-only-section {
  grid-template-columns: minmax(320px, 720px);
  justify-content: center;
}

.sample-only-card {
  width: 100%;
}

.review-panel,
.review-output {
  border: 1px solid rgba(118, 146, 255, 0.22);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 10%, rgba(53, 232, 255, 0.14), transparent 12rem),
    rgba(13, 18, 62, 0.58);
}

.review-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.review-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.review-form .full {
  grid-column: 1 / -1;
}

.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid rgba(118, 146, 255, 0.24);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  outline: none;
  background: rgba(255, 255, 255, 0.055);
}

.review-form input:focus,
.review-form textarea:focus {
  border-color: rgba(53, 232, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(53, 232, 255, 0.12);
}

.checkbox-line {
  display: flex !important;
  align-items: start;
  gap: 10px;
}

.checkbox-line input {
  width: auto;
  margin-top: 6px;
  accent-color: var(--cyan);
}

.confirmation-card {
  min-height: 260px;
  margin-top: 16px;
  border: 1px solid rgba(53, 232, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  color: var(--text);
  background: rgba(4, 5, 22, 0.62);
  line-height: 1.72;
  white-space: pre-wrap;
}

.sample-viewer {
  min-height: 260px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(53, 232, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 20%, rgba(53, 232, 255, 0.14), transparent 12rem),
    rgba(4, 5, 22, 0.72);
}

.sample-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.sample-video-wrap {
  position: relative;
  background: #02030d;
}

.sample-video-wrap video {
  display: block;
  width: 100%;
  max-height: 360px;
  background: #000;
}

.sample-watermark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(53, 232, 255, 0.32);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(237, 245, 255, 0.78);
  background: rgba(3, 4, 18, 0.62);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.tip {
  margin: 18px 0 0;
  font-size: 0.9rem;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 18px 30px;
  color: var(--muted);
  border-top: 1px solid rgba(118, 146, 255, 0.18);
  background: rgba(5, 6, 25, 0.72);
  font-size: 0.92rem;
  line-height: 1.7;
}

.editor-dock {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  border: 1px solid rgba(118, 146, 255, 0.28);
  border-radius: 16px;
  padding: 12px;
  background: rgba(5, 6, 25, 0.86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.dock-button {
  padding: 9px 12px;
  font-size: 0.84rem;
}

.dock-button.primary {
  border-color: rgba(53, 232, 255, 0.68);
  background: linear-gradient(135deg, rgba(20, 92, 255, 0.34), rgba(53, 232, 255, 0.18));
  color: var(--text);
}

.dock-button.danger {
  border-color: rgba(255, 80, 130, 0.42);
  background: rgba(255, 80, 130, 0.14);
}

.save-status {
  color: var(--muted);
  font-size: 0.84rem;
}

.save-status.is-warning {
  color: #ffd76a;
}

.save-status.is-success {
  color: #75ffba;
}

.save-status.is-error {
  color: #ff8ba7;
}

body.editing [data-edit] {
  outline: 1px dashed rgba(53, 232, 255, 0.7);
  outline-offset: 4px;
  background: rgba(53, 232, 255, 0.06);
  cursor: text;
}

body.editing [data-edit]:focus {
  outline: 2px solid rgba(53, 232, 255, 0.82);
}

body.public-mode .editor-dock,
body.public-mode .profile-photo-actions,
body.public-mode .media-tools,
body.public-mode .review-actions,
body.public-mode .filter-chip,
body.public-mode [data-add-work],
body.public-mode .content-head p[data-edit="works.intro"],
body.public-mode .sample-only-card > .tip,
body.public-mode .sample-viewer .tip,
body.public-mode .work-info > .tip,
body.public-mode .sample-viewer + .tip {
  display: none !important;
}

body.public-mode [data-edit] {
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .workspace,
  .review-section {
    grid-template-columns: 1fr;
  }

  .top-info {
    justify-content: flex-start;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(118, 146, 255, 0.18);
  }

  .category-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid,
  .review-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 18px);
    margin: 9px auto 140px;
    border-radius: 18px;
  }

  .topbar,
  .hero,
  .content,
  .sidebar,
  .review-section {
    padding: 18px;
  }

  .category-list,
  .work-grid,
  .review-form {
    grid-template-columns: 1fr;
  }

  .work-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .pager-actions {
    width: 100%;
  }

  .pager-button {
    flex: 1;
  }

  .content-head {
    align-items: start;
    flex-direction: column;
  }

  .stage-card {
    display: none;
  }

  .editor-dock {
    justify-content: flex-start;
  }
}
