:root {
  --paper: #f4f1ea;
  --paper-deep: #ebe6db;
  --card: #fffdf8;
  --ink: #171915;
  --muted: #77766f;
  --line: rgba(23, 25, 21, 0.12);
  --accent: #e65a42;
  --accent-dark: #c94731;
  --green: #315f4b;
  --green-soft: #dfe8de;
  --blue: #466672;
  --gold: #b47b2f;
  --shadow: 0 24px 60px rgba(39, 34, 23, 0.11);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-sans: "Aptos", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
    sans-serif;
  --font-display: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 2%, rgba(230, 90, 66, 0.08), transparent 28rem),
    linear-gradient(135deg, #f8f5ef 0%, var(--paper) 46%, #f0ede4 100%);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.auth-gate {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 8px 0 28px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.auth-error {
  margin: 12px 0 0;
  color: #b4362a;
  font-size: 13px;
}

body:not(.authenticated) .app-shell,
body:not(.authenticated) .sidebar-backdrop,
body:not(.authenticated) .toast,
body:not(.authenticated) .prompt-dialog {
  display: none;
}

body.authenticated .auth-gate {
  display: none;
}

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

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(230, 90, 66, 0.22);
  outline-offset: 2px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(23, 25, 21, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::after {
  position: absolute;
  inset: 42px;
  content: "";
  border: 1px solid rgba(23, 25, 21, 0.045);
  border-radius: inherit;
}

.ambient-one {
  top: 10vh;
  right: -210px;
}

.ambient-two {
  bottom: -260px;
  left: 32%;
  width: 620px;
  height: 620px;
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  max-width: 1660px;
  min-height: 100vh;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 34px 22px 26px;
  border-right: 1px solid var(--line);
  background: rgba(250, 248, 242, 0.7);
  backdrop-filter: blur(18px);
}

.sidebar-backdrop {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(230, 90, 66, 0.24);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  content: "";
  border: 2px solid #fff9ef;
}

.brand-mark::before {
  inset: 11px 10px 8px;
  border-radius: 2px;
}

.brand-mark::after {
  top: 8px;
  left: 16px;
  width: 10px;
  height: 5px;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.brand-mark span {
  top: 19px;
  left: 16px;
  width: 10px;
  height: 5px;
  border-width: 0 0 2px;
}

.brand p {
  margin: 0;
}

.brand-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.brand-name {
  margin-top: 1px !important;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.sidebar-label {
  margin: 50px 10px 14px;
  color: #99978f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.category-nav {
  display: grid;
  gap: 5px;
}

.category-button {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  border: 0;
  border-radius: 12px;
  background: transparent;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.category-button:hover {
  background: rgba(255, 255, 255, 0.62);
  transform: translateX(2px);
}

.category-button.active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(23, 25, 21, 0.14);
}

.category-dot {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.68;
}

.category-button.active .category-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.category-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-count {
  min-width: 24px;
  padding: 2px 7px;
  color: var(--muted);
  text-align: center;
  border-radius: 99px;
  background: rgba(23, 25, 21, 0.055);
  font-size: 11px;
  font-weight: 700;
}

.category-button.active .category-count {
  color: var(--ink);
  background: #fff;
}

.sidebar-note {
  position: relative;
  margin: auto 4px 20px;
  padding: 20px 16px 17px;
  overflow: hidden;
  color: #f8f3e9;
  border-radius: 18px;
  background: var(--green);
}

.sidebar-note::after {
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 96px;
  height: 96px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.05);
}

.note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  color: #f1b75c;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.note-icon svg {
  width: 16px;
  height: 16px;
}

.sidebar-note p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.72;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 4px;
}

.sidebar-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 650;
}

.sidebar-action:hover {
  color: var(--ink);
  background: #fff;
}

.sidebar-action svg {
  width: 15px;
  height: 15px;
}

.storage-caption {
  margin: 12px 0 0;
  color: #aaa79f;
  font-size: 10px;
  text-align: center;
}

.main {
  min-width: 0;
  padding: 0 42px 70px;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 92px;
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.mobile-menu span {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 4px 0;
  background: var(--ink);
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  max-width: 590px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(23, 25, 21, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 6px 24px rgba(35, 31, 20, 0.03);
  backdrop-filter: blur(12px);
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(230, 90, 66, 0.4);
  background: #fff;
}

.search-box svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #8b8982;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #9f9c94;
}

.search-box kbd {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #8f8d86;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f4ee;
  font-family: inherit;
  font-size: 9px;
  box-shadow: 0 1px 0 rgba(23, 25, 21, 0.08);
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
}

.primary-button {
  color: #fff;
  border: 1px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(230, 90, 66, 0.18);
}

.primary-button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.primary-button svg {
  width: 17px;
  height: 17px;
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.secondary-button:hover {
  background: rgba(23, 25, 21, 0.045);
}

.danger-button {
  color: #b3392a;
  border: 1px solid rgba(179, 57, 42, 0.2);
  background: #fff2ee;
}

.danger-button:hover {
  border-color: rgba(179, 57, 42, 0.4);
  background: #ffe8e2;
}

.top-add {
  margin-left: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  min-height: 440px;
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 21, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(105deg, rgba(255, 253, 248, 0.96) 0 53%, rgba(236, 231, 220, 0.4) 53%),
    #fffdf8;
  box-shadow: 0 20px 55px rgba(44, 38, 27, 0.06);
}

.hero::before {
  position: absolute;
  top: -120px;
  right: 26%;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(23, 25, 21, 0.07);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 58px 26px 64px 58px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.22em;
}

.eyebrow span {
  display: inline-block;
  width: 19px;
  height: 1.5px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(43px, 4.2vw, 66px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 500;
}

.hero-copy > p {
  margin: 22px 0 28px;
  color: #686760;
  font-size: 14px;
  line-height: 1.8;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 9px 9px 9px 18px;
  color: #f8f4ea;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.hero-button:hover {
  gap: 25px;
}

.hero-button svg {
  width: 33px;
  height: 33px;
  padding: 8px;
  color: var(--ink);
  border-radius: 50%;
  background: #f3efe6;
  transition: transform 160ms ease;
}

.hero-button:hover svg {
  transform: rotate(-18deg);
}

.hero-board {
  position: relative;
  min-height: 430px;
  background:
    linear-gradient(rgba(23, 25, 21, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 21, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}

.board-card {
  position: absolute;
  border: 1px solid rgba(23, 25, 21, 0.12);
  box-shadow: var(--shadow);
}

.board-back {
  top: 64px;
  right: 190px;
  width: 150px;
  height: 205px;
  padding: 20px;
  background: #e9b84b;
  transform: rotate(-8deg);
}

.board-back::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  content: "";
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.board-back span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.board-back strong {
  display: block;
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.08;
}

.board-main {
  top: 35px;
  right: 44px;
  width: 270px;
  padding: 13px;
  background: #fffdf8;
  transform: rotate(3deg);
}

.board-topline,
.board-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #77756e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.board-visual {
  position: relative;
  height: 270px;
  margin: 12px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 252, 232, 0.95), transparent 28%),
    linear-gradient(145deg, #d8e3d4, #eef0dc 50%, #d8c6a8);
}

.board-visual::before {
  position: absolute;
  bottom: -64px;
  left: -42px;
  width: 260px;
  height: 140px;
  content: "";
  border-radius: 50%;
  background: rgba(58, 82, 63, 0.28);
  transform: rotate(-13deg);
}

.board-visual::after {
  position: absolute;
  top: 20px;
  right: 23px;
  width: 110px;
  height: 170px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 60px 60px 6px 6px;
  transform: rotate(-15deg);
}

.board-orb {
  position: absolute;
  top: 58px;
  left: 35px;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
}

.board-product {
  position: absolute;
  z-index: 2;
  top: 69px;
  left: 89px;
  width: 86px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 7px 7px 11px 11px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(160deg, #7e927f, #425345);
  box-shadow: 18px 20px 30px rgba(45, 54, 43, 0.28);
  transform: rotate(5deg);
}

.board-product::before {
  position: absolute;
  top: -25px;
  left: 26px;
  width: 31px;
  height: 31px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #334238;
}

.board-product span {
  position: absolute;
  top: 56px;
  left: 14px;
  width: 54px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(245, 239, 219, 0.72);
}

.board-caption {
  letter-spacing: 0;
}

.board-caption b {
  font-size: 9px;
}

.board-stamp {
  position: absolute;
  right: 86px;
  bottom: 29px;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: var(--accent);
  text-align: center;
  border: 1px solid rgba(230, 90, 66, 0.55);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(10deg);
}

.hero-stats {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 58px;
  display: flex;
  align-items: center;
  gap: 0;
}

.hero-stats > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 6px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.hero-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.hero-stats span {
  color: var(--muted);
  font-size: 10px;
}

.library {
  padding-top: 48px;
}

.library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.library h2,
.dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.library-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-tabs {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.filter-tab {
  min-height: 32px;
  padding: 0 13px;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.filter-tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 25, 21, 0.08);
}

.select-wrap select {
  min-height: 40px;
  padding: 0 32px 0 12px;
  color: #66645d;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.view-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.view-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: #8b8982;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.view-button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 25, 21, 0.08);
}

.view-button svg {
  width: 16px;
  height: 16px;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-top: 8px;
}

.result-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.text-button {
  padding: 0;
  color: var(--accent);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

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

.prompt-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 21, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 8px 24px rgba(37, 31, 21, 0.035);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  animation: card-in 400ms both;
}

.prompt-card:hover {
  border-color: rgba(23, 25, 21, 0.16);
  box-shadow: 0 18px 42px rgba(37, 31, 21, 0.095);
  transform: translateY(-4px);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-cover {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: var(--paper-deep);
}

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

.cover-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cover-art::before {
  position: absolute;
  top: -60px;
  right: -34px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.08);
}

.cover-art::after {
  position: absolute;
  bottom: -74px;
  left: -34px;
  width: 230px;
  height: 170px;
  content: "";
  border-radius: 50%;
  background: rgba(23, 25, 21, 0.15);
  transform: rotate(-12deg);
}

.cover-art.category-商品主图 {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.38), transparent 35%),
    #d98b72;
}

.cover-art.category-场景图 {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), transparent 38%),
    #7d9c84;
}

.cover-art.category-模特图 {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 38%),
    #78929e;
}

.cover-art.category-细节图 {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.45), transparent 38%),
    #c3a16a;
}

.cover-art.category-促销海报 {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.25), transparent 38%),
    #33352e;
}

.cover-art.category-其他 {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 38%),
    #8b8c84;
}

.art-symbol {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 90px;
  height: 120px;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 48% 48% 15px 15px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 18px 22px 30px rgba(23, 25, 21, 0.18);
  font-family: var(--font-display);
  font-size: 38px;
  transform: translate(-50%, -47%) rotate(4deg);
  backdrop-filter: blur(5px);
}

.cover-art.category-促销海报 .art-symbol {
  width: 115px;
  height: 82px;
  border-radius: 5px;
  transform: translate(-50%, -48%) rotate(-4deg);
}

.cover-art.category-细节图 .art-symbol {
  width: 108px;
  height: 108px;
  border-radius: 50%;
}

.cover-labels {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.card-chip {
  padding: 5px 9px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  background: rgba(20, 24, 19, 0.55);
  font-size: 9px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.card-chip.status-best {
  color: #201d13;
  border-color: rgba(255, 255, 255, 0.3);
  background: #f0c664;
}

.favorite-button {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(20, 24, 19, 0.42);
  backdrop-filter: blur(8px);
}

.favorite-button:hover svg {
  transform: scale(1.12);
}

.favorite-button.is-favorite {
  color: #f3c455;
  background: rgba(20, 24, 19, 0.72);
}

.favorite-button.is-favorite svg {
  fill: currentColor;
}

.favorite-button svg {
  width: 16px;
  height: 16px;
  transition: transform 140ms ease;
}

.card-body {
  padding: 16px 16px 14px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-ratio {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.card-meta span {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #afa99e;
}

.card-prompt {
  display: -webkit-box;
  min-height: 59px;
  margin: 13px 0 12px;
  overflow: hidden;
  color: #5f5d56;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-tags {
  display: flex;
  min-height: 24px;
  gap: 5px;
  overflow: hidden;
}

.tag {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #69675f;
  border-radius: 5px;
  background: rgba(23, 25, 21, 0.045);
  font-size: 9px;
  font-weight: 650;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 25, 21, 0.075);
}

.card-date {
  margin-right: auto;
  color: #9a978f;
  font-size: 9px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 31px;
  padding: 0 10px;
  color: #625f58;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.card-action:hover {
  color: var(--ink);
  background: #f3efe6;
}

.card-action.copy-action {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.card-action.copy-action:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.card-action svg {
  width: 14px;
  height: 14px;
}

.prompt-grid.list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}

.list-view .prompt-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.list-view .card-cover {
  height: 100%;
  min-height: 160px;
}

.list-view .card-body {
  display: flex;
  flex-direction: column;
}

.list-view .card-footer {
  margin-top: auto;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-art {
  position: relative;
  display: grid;
  width: 75px;
  height: 75px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(230, 90, 66, 0.3);
  border-radius: 50%;
}

.empty-art span {
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(230, 90, 66, 0.22);
  border-radius: 50%;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 550;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.prompt-dialog {
  width: min(1120px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(23, 25, 21, 0.12);
  border-radius: 24px;
  background: #fbf8f1;
  box-shadow: 0 32px 100px rgba(23, 25, 21, 0.26);
}

.prompt-dialog::backdrop {
  background: rgba(27, 26, 22, 0.48);
  backdrop-filter: blur(6px);
}

.prompt-dialog form {
  display: flex;
  max-height: calc(100vh - 36px);
  flex-direction: column;
}

.dialog-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  font-size: 26px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.icon-button:hover {
  background: rgba(23, 25, 21, 0.05);
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  padding: 22px 28px;
  overflow-y: auto;
}

.form-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 15px;
}

.cover-field {
  position: relative;
}

.cover-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 198px;
  overflow: hidden;
  border: 1px dashed rgba(23, 25, 21, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(rgba(23, 25, 21, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 21, 0.03) 1px, transparent 1px),
    #f6f2e9;
  background-size: 18px 18px;
  cursor: pointer;
}

.cover-upload:hover,
.cover-upload.is-dragging {
  border-color: var(--accent);
  background-color: #fff8f3;
}

.cover-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

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

.cover-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #7b7971;
  text-align: center;
}

.cover-placeholder > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--accent);
}

.cover-placeholder strong {
  color: #55534d;
  font-size: 12px;
}

.cover-placeholder small {
  margin-top: 5px;
  font-size: 10px;
}

.remove-cover {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  background: rgba(23, 25, 21, 0.72);
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.field {
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label,
.label-line label {
  display: block;
  margin: 0 0 7px 1px;
  color: #56544e;
  font-size: 10px;
  font-weight: 750;
}

.field label span {
  color: var(--accent);
}

.label-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-line > span {
  color: #a09d95;
  font-size: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(23, 25, 21, 0.12);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-size: 12px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.field input,
.field select {
  height: 40px;
  padding: 0 11px;
}

.field textarea {
  display: block;
  min-height: 92px;
  padding: 11px;
  line-height: 1.65;
  resize: vertical;
}

.prompt-column #fieldPrompt {
  min-height: 241px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa79f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(230, 90, 66, 0.52);
  background: #fff;
}

.field input.invalid,
.field textarea.invalid {
  border-color: #d95845;
  background: #fff9f7;
}

.dialog-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  background: rgba(250, 247, 240, 0.96);
}

.dialog-footer .danger-button svg {
  width: 16px;
  height: 16px;
}

.footer-spacer {
  flex: 1;
}

.save-button {
  min-width: 122px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #20231d;
  box-shadow: 0 14px 40px rgba(23, 25, 21, 0.22);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #a3392d;
}

@media (min-width: 1500px) {
  .prompt-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .main {
    padding-right: 52px;
    padding-left: 52px;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero {
    grid-template-columns: 1fr 360px;
  }

  .hero-copy {
    padding-left: 42px;
  }

  .hero-stats {
    left: 42px;
  }

  .board-main {
    right: 26px;
  }

  .board-back {
    right: 150px;
  }

  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: min(280px, 84vw);
    padding: 28px 20px;
    box-shadow: 20px 0 60px rgba(23, 25, 21, 0.16);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 49;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(23, 25, 21, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  .sidebar.open + .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-note {
    margin-top: auto;
  }

  .main {
    padding: 0 20px 60px;
  }

  .mobile-menu {
    display: block;
  }

  .topbar {
    height: 80px;
  }

  .top-add {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 50px 36px 110px;
  }

  .hero-stats {
    bottom: 24px;
    left: 36px;
  }

  .hero-board {
    display: none;
  }

  .dialog-body {
    grid-template-columns: 1fr;
  }

  .prompt-column #fieldPrompt {
    min-height: 190px;
  }

  .list-view .prompt-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .main {
    padding: 0 14px 50px;
  }

  .topbar {
    gap: 8px;
  }

  .search-box {
    min-height: 43px;
  }

  .search-box kbd {
    display: none;
  }

  .hero {
    border-radius: 22px;
  }

  .hero-copy {
    padding: 38px 24px 116px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy > p {
    font-size: 12px;
  }

  .desktop-break {
    display: none;
  }

  .hero-stats {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .hero-stats > div {
    flex: 1;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 10px;
    text-align: center;
  }

  .hero-stats strong {
    font-size: 21px;
  }

  .library {
    padding-top: 36px;
  }

  .library-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .filter-tabs {
    flex: 1;
  }

  .filter-tab {
    flex: 1;
  }

  .select-wrap {
    flex: 1;
  }

  .select-wrap select {
    width: 100%;
  }

  .prompt-grid,
  .prompt-grid.list-view {
    grid-template-columns: 1fr;
  }

  .list-view .prompt-card {
    display: block;
  }

  .list-view .card-cover {
    height: 172px;
    min-height: 0;
  }

  .card-cover {
    height: 178px;
  }

  .prompt-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 18px;
  }

  .prompt-dialog form {
    max-height: calc(100vh - 18px);
  }

  .dialog-head {
    padding: 18px;
  }

  .dialog-head h2 {
    font-size: 23px;
  }

  .dialog-body {
    gap: 18px;
    padding: 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .cover-upload {
    height: 170px;
  }

  .dialog-footer {
    padding: 12px 14px;
  }

  .dialog-footer .danger-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 0;
  }

  .dialog-footer .secondary-button,
  .dialog-footer .save-button {
    flex: 1;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}

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