:root {
  --ink: #17211f;
  --muted: #66716e;
  --paper: #fffaf1;
  --cream: #f5ecdd;
  --line: rgba(23, 33, 31, 0.14);
  --teal: #078f8f;
  --teal-soft: #d9f3ee;
  --gold: #f0b44c;
  --coral: #e86f55;
  --blue: #4d7bd8;
  --dark: #111715;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(245, 236, 221, 0.92), rgba(245, 236, 221, 0.96)),
    url("/assets/story-pattern.png") right top / 760px auto fixed;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 82px;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

#nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.nav-link.active,
.btn.primary {
  border-color: transparent;
  color: #fff;
  background: var(--teal);
}

.btn.dark {
  border-color: transparent;
  color: #fff;
  background: var(--dark);
}

.btn.ghost {
  background: transparent;
}

.btn.warn {
  border-color: transparent;
  color: #fff;
  background: var(--coral);
}

.app {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.login-panel,
.panel,
.work-card,
.upload-panel,
.profile-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 16px 50px rgba(38, 31, 22, 0.08);
}

.hero-copy {
  padding: clamp(26px, 4vw, 54px);
  color: #fffaf1;
  background:
    linear-gradient(120deg, rgba(17, 23, 21, 0.94), rgba(17, 23, 21, 0.72)),
    url("/assets/story-pattern.png") center / cover;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6fd8d1;
  font-size: 12px;
  font-weight: 900;
}

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

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
}

.hero p {
  color: rgba(255, 250, 241, 0.74);
  font-size: 18px;
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.hero-stats div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats b {
  display: block;
  margin-bottom: 8px;
  color: #6fd8d1;
  font-size: 30px;
}

.hero-stats span {
  color: rgba(255, 250, 241, 0.72);
  font-size: 13px;
}

.login-panel {
  padding: 26px;
}

.login-panel h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.login-panel .hint,
.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.demo-accounts {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.account-chip {
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--teal-soft);
  color: #164540;
  font-size: 13px;
  line-height: 1.55;
}

.message {
  margin-top: 12px;
  color: var(--coral);
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 14px;
}

.section-head h2 {
  margin-bottom: 4px;
  font-size: 30px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  overflow: hidden;
}

.work-cover {
  min-height: 190px;
  background: var(--dark) center / cover;
}

.work-body {
  padding: 16px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 900;
}

.pill.pending {
  color: #8b5b08;
  background: #fff0cd;
}

.pill.rejected {
  color: #9f2b19;
  background: #ffe4de;
}

.pill.dark {
  color: #fff;
  background: var(--dark);
}

.work-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.work-card p {
  min-height: 54px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.profile-band,
.upload-panel,
.panel {
  padding: 22px;
}

.profile-band {
  color: #fffaf1;
  background: linear-gradient(135deg, var(--dark), var(--teal));
}

.avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 18px;
  color: #fff;
  background: var(--avatar, var(--teal));
  font-size: 30px;
  font-weight: 900;
}

.profile-band p {
  color: rgba(255, 250, 241, 0.75);
  line-height: 1.7;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat-row div {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
}

.stat-row b {
  display: block;
  font-size: 26px;
}

.stat-row span {
  color: rgba(255, 250, 241, 0.66);
  font-size: 12px;
}

.upload-panel h2 {
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.profile-page {
  display: grid;
  gap: 18px;
}

.public-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-radius: 8px;
  color: #fffaf1;
  background: linear-gradient(120deg, var(--dark), var(--blue));
}

.admin-table {
  display: grid;
  gap: 12px;
}

.review-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffaf1;
}

.review-thumb {
  height: 76px;
  border-radius: 8px;
  background: var(--dark) center / cover;
}

@media (max-width: 920px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  #nav {
    flex-wrap: wrap;
  }

  .hero,
  .dashboard,
  .grid,
  .split {
    grid-template-columns: 1fr;
  }

  .review-item {
    grid-template-columns: 1fr;
  }
}
