:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-soft: #faf7f0;
  --ink: #1f2428;
  --muted: #6c747c;
  --line: #e5ded2;
  --nav: #151a1f;
  --nav-2: #20262d;
  --teal: #1f9d8a;
  --teal-dark: #147868;
  --coral: #ef735f;
  --gold: #c99a3e;
  --shadow: 0 18px 48px rgba(36, 31, 24, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px;
  color: #fff;
  background: linear-gradient(180deg, var(--nav), #101316);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 4px;
  color: #aeb7bf;
  font-size: 12px;
}

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

.nav-item {
  border: 0;
  border-radius: 8px;
  padding: 11px 13px;
  color: #c7d0d8;
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: var(--nav-2);
  box-shadow: inset 3px 0 0 var(--teal);
}

.side-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.side-note span,
.side-note p {
  color: #aeb7bf;
  font-size: 12px;
}

.side-note strong {
  display: block;
  margin: 5px 0 8px;
}

.side-note p {
  margin: 0;
  line-height: 1.65;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow.light {
  color: #c9fff2;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

h2 {
  margin-bottom: 8px;
}

h3 {
  margin-bottom: 10px;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.metric.compact {
  min-width: 118px;
  padding: 9px 12px;
  border-color: var(--line);
  background: var(--surface);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero .metric span {
  color: #c7f8ee;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.metric.compact strong {
  font-size: 22px;
}

.btn {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  white-space: nowrap;
}

.btn.primary {
  color: #fff;
  background: var(--teal);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.btn.dark {
  color: #fff;
  background: #191f25;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
  padding: 30px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(24, 30, 35, 0.96), rgba(31, 157, 138, 0.84)),
    linear-gradient(45deg, rgba(239, 115, 95, 0.28), transparent);
  box-shadow: var(--shadow);
}

.hero h2 {
  max-width: 840px;
  font-size: 36px;
  line-height: 1.18;
  margin-bottom: 14px;
}

.hero p:not(.eyebrow) {
  max-width: 860px;
  color: #e4fff9;
  line-height: 1.8;
}

.hero-actions,
.tool-actions,
.template-actions,
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 22px;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

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

.section-head span,
.muted,
.tool-card p,
.template-body span,
.template-body small,
.work-item span,
.package-item span {
  color: var(--muted);
}

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

.scene-band {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 24px 0 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.scene-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
}

.scene-chip.active,
.scene-chip:hover {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.sample-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.category-card {
  min-height: 122px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(122, 255, 226, 0.16);
  border-radius: 12px;
  padding: 14px;
  color: #eaf7ff;
  background:
    radial-gradient(circle at 90% 0%, rgba(32, 211, 190, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(14, 20, 34, 0.96), rgba(26, 35, 52, 0.92));
  text-align: left;
  box-shadow: 0 14px 36px rgba(7, 12, 20, 0.18);
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 255, 221, 0.58);
  box-shadow: 0 20px 48px rgba(13, 148, 136, 0.22);
}

.category-card.active {
  border-color: rgba(114, 255, 227, 0.72);
  background:
    radial-gradient(circle at 90% 0%, rgba(114, 255, 227, 0.28), transparent 36%),
    linear-gradient(145deg, rgba(8, 28, 39, 0.98), rgba(23, 41, 62, 0.94));
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.26);
}

.category-card span {
  color: #72ffe3;
  font-size: 12px;
  font-weight: 900;
}

.category-card strong {
  font-size: 19px;
}

.category-card em {
  color: #9fb1c5;
  font-style: normal;
  line-height: 1.45;
  font-size: 13px;
}

.category-card b {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #061316;
  background: linear-gradient(90deg, #72ffe3, #8ab4ff);
  font-size: 11px;
}

.quick-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
}

.quick-tool {
  min-height: 116px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(122, 255, 226, 0.15);
  border-radius: 12px;
  color: #eaf7ff;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(18, 29, 46, 0.92)),
    radial-gradient(circle at 80% 10%, rgba(96, 255, 221, 0.16), transparent 40%);
  box-shadow: 0 14px 36px rgba(7, 12, 20, 0.16);
}

.quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #061316;
  background: linear-gradient(135deg, #72ffe3, #8ab4ff 55%, #ff7d6b);
  font-weight: 900;
}

.quick-copy {
  min-width: 0;
}

.quick-copy div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-copy h3 {
  overflow: hidden;
  margin-bottom: 4px;
  color: #f8fbff;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-copy span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #72ffe3;
  background: rgba(114, 255, 227, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.quick-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #9fb1c5;
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.quick-action {
  grid-column: 1 / -1;
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  color: #061316;
  background: linear-gradient(90deg, #72ffe3, #8ab4ff);
  font-weight: 900;
}

.case-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.case-filter {
  min-height: 36px;
  border: 1px solid #e8edf3;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--muted);
  background: #fff;
}

.case-filter.active,
.case-filter:hover {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

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

.case-card {
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.case-video {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 9 / 16;
  min-height: 0;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(7, 12, 20, 0.1), rgba(7, 12, 20, 0.82)),
    linear-gradient(135deg, #121826, #1f9d8a 52%, #ef735f);
}

.case-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.74;
  background: #07121c;
}

.case-media-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

.case-media-placeholder b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

.case-media-placeholder small {
  font-size: 12px;
}

.case-video span,
.case-video strong,
.case-video em,
.sample-preview span,
.sample-preview strong {
  position: relative;
  z-index: 1;
}

.case-video span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #17322e;
  background: #c9fff2;
  font-size: 12px;
  font-weight: 900;
}

.case-video em {
  color: #d8fff7;
  font-style: normal;
  font-size: 12px;
}

.case-body {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.case-body p,
.case-body small {
  color: var(--muted);
  line-height: 1.6;
}

.creator-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}

.composer-step {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.composer-step-title,
.prompt-advanced summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.composer-step-title span,
.prompt-advanced summary span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #101827, #1f9d8a);
  font-size: 12px;
  font-weight: 900;
}

.composer-step-title strong,
.prompt-advanced summary strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
}

.composer-step-title small,
.prompt-advanced summary small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  line-height: 1.5;
}

.prompt-advanced summary {
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

.prompt-advanced[open] summary {
  margin-bottom: 12px;
}

.prompt-advanced summary::-webkit-details-marker {
  display: none;
}

.composer-case-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(31, 157, 138, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.74), rgba(255, 255, 255, 0.94));
}

.case-demo-copy strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
}

.case-demo-copy span,
.case-demo-copy li {
  display: block;
  margin-top: 6px;
  color: #64748b;
  line-height: 1.6;
}

.case-demo-copy ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.case-demo-phone {
  position: relative;
  width: 150px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  justify-self: end;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #07121c;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.case-demo-phone video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07121c;
}

.creator-options label {
  margin: 0;
}

.sample-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sample-preview {
  position: relative;
  width: min(100%, 180px);
  aspect-ratio: 9 / 16;
  min-height: 0;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 14px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(21, 26, 31, 0.18), rgba(21, 26, 31, 0.78)),
    linear-gradient(135deg, var(--teal), var(--coral));
}

.sample-card:nth-child(2n) .sample-preview {
  background:
    linear-gradient(160deg, rgba(21, 26, 31, 0.14), rgba(21, 26, 31, 0.78)),
    linear-gradient(135deg, #2f6f9f, var(--gold));
}

.sample-card:nth-child(3n) .sample-preview {
  background:
    linear-gradient(160deg, rgba(21, 26, 31, 0.12), rgba(21, 26, 31, 0.76)),
    linear-gradient(135deg, #8257a8, #e2865c);
}

.sample-preview span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #17322e;
  background: #c9fff2;
  font-size: 12px;
  font-weight: 900;
}

.sample-preview strong {
  align-self: flex-end;
  font-size: 42px;
  line-height: 1;
  opacity: 0.82;
}

.sample-preview .case-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.88;
  background: #07121c;
}

.sample-preview video.case-media {
  cursor: pointer;
}

.sample-preview:has(video.case-media)::after {
  content: "点击播放";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 12, 20, 0.45);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.sample-copy {
  padding: 12px 14px 14px;
}

.sample-copy h3 {
  margin-bottom: 6px;
}

.sample-copy p {
  min-height: 38px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tool-card,
.template-card,
.panel,
.empty,
.work-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 196px;
  padding: 18px;
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  font-weight: 900;
}

.tool-body {
  display: grid;
  gap: 10px;
}

.tool-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.tool-card header span,
.work-item b {
  height: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #136b5d;
  background: #e7f7f3;
  font-size: 12px;
  font-weight: 800;
}

.tool-card p {
  min-height: 48px;
  line-height: 1.65;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--surface);
}

.segmented button.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.template-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 18px 0 14px;
}

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

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  font-weight: 800;
}

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

.template-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 300px;
  overflow: hidden;
}

.template-card.image-card {
  min-height: 240px;
}

.template-media {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(31, 36, 40, 0.94), rgba(31, 157, 138, 0.82)),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, 0.12) 10px 20px);
}

.template-media span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #17322e;
  background: #c9fff2;
  font-size: 12px;
  font-weight: 800;
}

.template-media strong {
  font-size: 18px;
}

.template-media em {
  color: #d8fff7;
  font-size: 12px;
  font-style: normal;
}

.template-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.template-body p {
  margin-bottom: 0;
  line-height: 1.74;
}

.template-body small {
  line-height: 1.6;
}

.two-col,
.provider-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 16px;
}

.tool-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.composer-panel {
  min-height: 520px;
}

.composer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cost-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #17322e;
  background: #c9fff2;
  font-weight: 900;
  white-space: nowrap;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.mode-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: #fff;
}

.mode-row button.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.upload-zone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  margin: 14px 0;
  border: 1px dashed #c9bda9;
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(250, 247, 240, 0.92), rgba(231, 247, 243, 0.76)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(31, 157, 138, 0.08) 12px 24px);
}

.upload-zone strong {
  color: var(--ink);
}

.material-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.upload-tile {
  position: relative;
  min-height: 168px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  border: 1px dashed rgba(31, 157, 138, 0.36);
  border-radius: 8px;
  color: #0f766e;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 253, 245, 0.8)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(31, 157, 138, 0.06) 12px 24px);
  text-align: center;
  cursor: pointer;
}

.upload-tile.wide {
  grid-column: 1 / -1;
}

.upload-tile b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #101827, #1f9d8a);
  font-size: 30px;
  line-height: 1;
}

.upload-tile strong,
.upload-tile span {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 18px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-tile span {
  color: #64748b;
  font-size: 12px;
}

.upload-tile.filled {
  border-style: solid;
  border-color: #dce7ef;
  color: #fff;
  background: #07121c;
}

.upload-tile.filled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 28, 0.08), rgba(7, 18, 28, 0.78));
}

.upload-tile.filled img,
.upload-tile.filled video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-tile.filled span {
  color: rgba(255, 255, 255, 0.82);
}

.tile-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.material-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fff;
}

.material-item img,
.material-item video {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #111827;
}

.material-item strong,
.material-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.light-btn {
  color: #eaffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.custom-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.custom-form,
.custom-output {
  position: relative;
  overflow: hidden;
}

.custom-form::before,
.custom-output::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(26, 214, 190, 0.09), transparent 42%),
    linear-gradient(315deg, rgba(37, 99, 235, 0.08), transparent 50%);
}

.custom-step-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.custom-step-head span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #eaffff;
  font-weight: 900;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.custom-step-head h3 {
  margin: 0;
}

.custom-step-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.custom-form > *,
.custom-output > * {
  position: relative;
  z-index: 1;
}

.custom-actions,
.custom-submit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.custom-output textarea {
  min-height: 220px;
}

.custom-copywriting {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 8px;
  background: rgba(248, 252, 255, 0.78);
}

.custom-copywriting:empty::before {
  content: "生成后的短视频文案会显示在这里。";
}

.custom-submit-row {
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.custom-submit-row span {
  color: var(--muted);
  font-size: 13px;
}

.custom-result-panel {
  min-height: 260px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(19, 78, 74, 0.86)),
    #111827;
}

.composer-result-panel {
  margin-top: 16px;
}

.result-empty,
.result-running,
.result-mock {
  min-height: 260px;
}

.result-empty,
.result-running {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 26px;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.result-empty strong,
.result-running strong,
.result-meta strong {
  display: block;
  color: #fff;
}

.result-empty span,
.result-running span,
.result-meta span {
  display: block;
  margin-top: 6px;
  color: rgba(235, 248, 255, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.result-empty.error strong {
  color: #fecaca;
}

.result-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #5eead4;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.custom-result-video {
  display: block;
  width: min(280px, calc(100% - 28px));
  aspect-ratio: 9 / 16;
  max-height: 560px;
  margin: 14px auto;
  border-radius: 12px;
  object-fit: contain;
  background: #020617;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.result-mock {
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto;
}

.result-mock-screen {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #dffcf8;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(96, 165, 250, 0.16), transparent 45%);
}

.result-mock-screen span {
  padding: 5px 9px;
  border: 1px solid rgba(94, 234, 212, 0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.result-mock-screen strong {
  color: #fff;
  font-size: 24px;
}

.result-mock-screen em {
  max-width: 280px;
  color: rgba(235, 248, 255, 0.7);
  font-style: normal;
  text-align: center;
}

.result-meta {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.38);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-aside {
  align-self: start;
}

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

.mini-template {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
  text-align: left;
}

.mini-template:hover {
  border-color: var(--teal);
  background: #effbf8;
}

.mini-template strong,
.mini-template span {
  display: block;
}

.mini-template span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.panel {
  padding: 20px;
}

.output-panel {
  min-height: 340px;
}

.structured-output {
  display: grid;
  gap: 10px;
  line-height: 1.7;
}

.structured-output:empty::before {
  content: "等待生成。";
  color: var(--muted);
}

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

.package-list,
.work-list {
  display: grid;
  gap: 12px;
}

.package-item,
.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.package-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.package-item:last-child {
  border-bottom: 0;
}

.package-item strong,
.package-item span {
  display: block;
}

.package-item b,
.package-item em {
  display: block;
  text-align: right;
}

.package-item b {
  color: var(--teal-dark);
}

.package-item em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.work-item,
.empty {
  padding: 16px;
}

.work-item strong,
.work-item span {
  display: block;
}

.work-item span {
  margin-top: 5px;
}

.message {
  min-height: 22px;
  color: var(--teal-dark);
}

.message.error {
  color: #ce3f2f;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.table {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
}

.steps {
  margin: 0;
  padding-left: 22px;
  line-height: 1.9;
}

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

.check-list span {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 460px;
  gap: 16px;
}

.admin-form-panel {
  align-self: start;
}

.admin-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-title h3 {
  margin-bottom: 4px;
}

.admin-panel-title span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.admin-grid label {
  margin: 0;
}

.lock-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.lock-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #e8edf3;
  border-radius: 999px;
  background: #fff;
}

.lock-grid input {
  width: auto;
}

.admin-upload {
  min-height: 120px;
}

.admin-list-filter {
  margin-bottom: 12px;
}

.admin-case-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.admin-case-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
}

.admin-case-thumb {
  position: relative;
  width: 86px;
  height: 58px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #061316;
  background: linear-gradient(135deg, #72ffe3, #8ab4ff 55%, #ff7d6b);
  font-weight: 900;
}

.admin-case-thumb .case-media {
  position: static;
  opacity: 1;
}

.admin-case-item strong,
.admin-case-item span,
.admin-case-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-case-item span,
.admin-case-item small {
  color: var(--muted);
  font-size: 12px;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
}

.admin-card-panel {
  margin-top: 16px;
}

.admin-card-output {
  min-height: 120px;
  margin-top: 10px;
  font-family: Consolas, "Courier New", monospace;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.card-stats div {
  padding: 12px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
}

.card-stats strong,
.card-stats span {
  display: block;
}

.card-stats strong {
  color: var(--teal);
  font-size: 24px;
}

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

.admin-card-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.admin-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
}

.admin-card-row strong,
.admin-card-row span,
.admin-card-row small {
  display: block;
}

.admin-card-row span,
.admin-card-row small {
  color: var(--muted);
  font-size: 12px;
}

.admin-card-row b {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  color: #087461;
  background: #d9fff5;
  font-size: 12px;
}

.admin-card-row b.used {
  color: #8a4b13;
  background: #fff0d7;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 19, 22, 0.56);
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 26, 31, 0.94);
  box-shadow: var(--shadow);
  z-index: 30;
}

/* Visual refresh: turn the admin-like sidebar into a tool marketplace header. */
.app-shell {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(31, 157, 138, 0.16), transparent 28%),
    radial-gradient(circle at 80% 8%, rgba(239, 115, 95, 0.12), transparent 30%),
    #f7f8fb;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e8edf3;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  padding: 0;
  border-bottom: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #101827, #1f9d8a 58%, #ef735f);
}

.brand span {
  color: #6b7280;
}

.nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px;
}

.nav-item {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 13px;
  color: #4b5563;
  background: transparent;
  text-align: center;
}

.nav-item:hover,
.nav-item.active {
  color: #0f172a;
  background: #eef7f5;
  box-shadow: inset 0 0 0 1px rgba(31, 157, 138, 0.18);
}

.side-note {
  display: none;
}

.main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(12px);
}

.hero {
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 430px;
  align-items: end;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.84), rgba(7, 12, 20, 0.2)),
    radial-gradient(circle at 74% 30%, rgba(31, 157, 138, 0.82), transparent 22%),
    radial-gradient(circle at 86% 72%, rgba(239, 115, 95, 0.72), transparent 24%),
    linear-gradient(135deg, #111827, #253040);
}

.hero h2 {
  font-size: clamp(34px, 4vw, 58px);
  max-width: 940px;
}

.hero p:not(.eyebrow) {
  max-width: 760px;
}

.hero-panel {
  align-self: stretch;
  align-content: end;
}

.hero .metric {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.section-head {
  margin-top: 30px;
}

.tool-card {
  min-height: 168px;
  border-color: #e8edf3;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.tool-card:hover,
.template-card:hover,
.sample-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.11);
}

.tool-card,
.template-card,
.sample-card,
.category-card,
.case-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sample-wall {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
}

.sample-card {
  min-height: 0;
  border-color: #e8edf3;
}

.sample-preview {
  min-height: 0;
}

.material-item-clickable {
  cursor: pointer;
}

.material-item-clickable:hover {
  border-color: rgba(31, 157, 138, 0.28);
  background: rgba(236, 253, 245, 0.55);
}

.material-empty-action {
  width: 100%;
  min-height: 68px;
  border: 1px dashed rgba(31, 157, 138, 0.35);
  border-radius: 8px;
  color: #0f766e;
  background: rgba(236, 253, 245, 0.5);
  font-weight: 800;
  cursor: pointer;
}

.template-card {
  border-color: #e8edf3;
}

.tool-detail-layout {
  grid-template-columns: minmax(0, 1.1fr) 420px;
}

.composer-panel,
.detail-aside {
  border-color: #e8edf3;
}

@media (max-width: 1100px) {
  .tool-grid,
  .template-grid,
  .sample-wall,
  .category-grid,
  .case-grid,
  .quick-rail {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

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

@media (max-width: 700px) {
  .sample-wall,
  .category-grid,
  .case-grid,
  .quick-rail,
  .creator-options {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) {
  .category-grid,
  .quick-rail {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-card,
  .quick-tool {
    min-width: 156px;
  }
}

@media (max-width: 860px) {
  .app-shell,
  .hero,
  .two-col,
  .provider-grid,
  .custom-workbench,
  .tool-detail-layout,
  .admin-layout,
  .script-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
    position: sticky;
  }

  .main {
    padding: 16px;
  }

  .topbar,
  .account-bar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 22px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .template-card {
    grid-template-columns: 1fr;
  }

  .template-media {
    min-height: 180px;
  }

  .admin-grid,
  .admin-case-item {
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .composer-case-demo {
    grid-template-columns: 1fr;
  }

  .case-demo-phone {
    justify-self: center;
  }
}

.admin-service-panel {
  margin-top: 18px;
  border: 1px solid rgba(31, 157, 138, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.9)),
    #fff;
}

.service-desk-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.service-desk-stats div {
  border: 1px solid #e8edf3;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.service-desk-stats strong {
  display: block;
  color: #0f766e;
  font-size: 22px;
}

.service-desk-stats span {
  color: #64748b;
  font-size: 13px;
}

.service-task-list {
  display: grid;
  gap: 12px;
}

.service-task-item {
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.service-task-item.processing {
  border-color: rgba(14, 165, 233, 0.35);
}

.service-task-item.done {
  border-color: rgba(22, 163, 74, 0.35);
}

.service-task-item.failed {
  border-color: rgba(239, 68, 68, 0.35);
}

.service-task-head,
.task-actions,
.task-param-row,
.task-image-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.service-task-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.service-task-head strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
}

.service-task-head span,
.task-image-row span {
  color: #64748b;
  font-size: 13px;
}

.service-task-head b,
.task-param-row span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
}

.task-param-row {
  margin-bottom: 10px;
}

.task-prompt {
  min-height: 92px;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.55;
  background: #f8fafc;
}

.task-image-row {
  margin-bottom: 10px;
}

.task-result-video {
  width: min(360px, 100%);
  max-height: 260px;
  border-radius: 8px;
  background: #0f172a;
}

.btn.mini {
  padding: 6px 10px;
  font-size: 12px;
}

.btn.danger {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.24);
}

.service-task-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(31, 157, 138, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.service-task-popup strong,
.service-task-popup span {
  display: block;
  margin-bottom: 8px;
}

.service-task-popup span {
  color: #64748b;
  font-size: 13px;
}

.manual-result .result-spinner {
  border-top-color: #0f766e;
}

@media (max-width: 700px) {
  .service-desk-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile H5 polish: desktop styles stay unchanged. */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 116px;
  }

  body {
    background: #f6f8fb;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: block;
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand strong {
    font-size: 15px;
    line-height: 1.1;
  }

  .brand span {
    font-size: 11px;
  }

  .nav {
    display: flex;
    gap: 8px;
    margin: 0 -12px;
    padding: 3px 12px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
  }

  .main {
    padding: 12px;
  }

  .topbar {
    display: none;
  }

  .hero {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .hero h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .hero p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions,
  .composer-actions,
  .custom-actions,
  .template-actions,
  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .btn,
  .quick-action,
  button {
    min-height: 44px;
  }

  .section-head {
    gap: 8px;
    margin: 22px 0 12px;
  }

  .section-head h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .section-head span {
    font-size: 13px;
    line-height: 1.6;
  }

  .category-grid,
  .quick-rail {
    display: flex;
    gap: 10px;
    margin: 0 -12px;
    padding: 0 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-grid::-webkit-scrollbar,
  .quick-rail::-webkit-scrollbar {
    display: none;
  }

  .category-card,
  .quick-tool {
    flex: 0 0 82%;
    min-height: 132px;
  }

  .sample-wall,
  .case-grid,
  .tool-grid,
  .template-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sample-card,
  .case-card,
  .tool-card,
  .template-card,
  .panel {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  }

  .sample-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 210px;
  }

  .sample-preview {
    width: 112px;
    margin: 12px auto;
    border-radius: 14px;
  }

  .sample-copy {
    padding: 14px 14px 14px 0;
    align-content: center;
  }

  .sample-copy h3 {
    font-size: 17px;
    line-height: 1.25;
  }

  .sample-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 13px;
  }

  .sample-copy .btn {
    width: 100%;
    margin-top: 4px;
  }

  .case-video {
    width: min(72vw, 230px);
    border-radius: 16px;
  }

  .tool-detail-layout,
  .custom-workbench,
  .two-col,
  .provider-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .composer-panel {
    padding: 14px;
  }

  .composer-head {
    align-items: flex-start;
    gap: 10px;
  }

  .composer-head h3 {
    font-size: 20px;
  }

  .mode-row {
    display: flex;
    gap: 8px;
    margin: 0 -2px 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mode-row::-webkit-scrollbar {
    display: none;
  }

  .mode-row button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .composer-step {
    padding: 13px;
    border-radius: 14px;
  }

  .composer-step-title,
  .prompt-advanced summary {
    align-items: flex-start;
  }

  .composer-step-title span,
  .prompt-advanced summary span {
    width: 32px;
    height: 32px;
  }

  .composer-case-demo {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .case-demo-phone {
    width: min(58vw, 210px);
    justify-self: center;
  }

  .case-demo-copy strong {
    font-size: 17px;
  }

  .case-demo-copy span,
  .case-demo-copy li {
    font-size: 13px;
  }

  .material-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .upload-tile {
    min-height: 156px;
    border-radius: 14px;
  }

  .upload-tile.wide {
    grid-column: 1 / -1;
    min-height: 132px;
  }

  .creator-options,
  .admin-grid,
  .script-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }

  textarea {
    min-height: 128px;
  }

  .detail-aside {
    display: none;
  }

  #submitComposer,
  #submitCustomVideo {
    min-height: 50px;
    font-size: 16px;
    font-weight: 900;
  }

  .custom-result-panel {
    min-height: 240px;
    border-radius: 16px;
  }

  .custom-result-video {
    width: min(72vw, 260px);
    max-height: 70vh;
  }

  .work-item,
  .admin-card-row,
  .service-task-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-desk-stats,
  .card-stats {
    grid-template-columns: 1fr 1fr;
  }

  .toast {
    width: calc(100% - 28px);
    bottom: 18px;
    border-radius: 14px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .sample-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .sample-preview {
    width: 96px;
  }

  .material-preview {
    grid-template-columns: 1fr;
  }
}

/* Mobile mini-program visual refresh */
@media (max-width: 860px) {
  :root {
    --bg: #02060b;
    --surface: #15191f;
    --surface-soft: #101820;
    --ink: #f5f8fb;
    --muted: #9ba5b2;
    --line: rgba(255, 255, 255, 0.08);
    --teal: #63f5d5;
    --teal-dark: #21d8d1;
    --coral: #2d93ff;
    --gold: #9fd9ff;
    --shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
  }

  html {
    background: #02060b;
  }

  body {
    color: #f6f8fb;
    background:
      radial-gradient(circle at 18% 0%, rgba(42, 255, 212, 0.22), transparent 28%),
      radial-gradient(circle at 88% 5%, rgba(42, 137, 255, 0.24), transparent 32%),
      linear-gradient(180deg, #03110f 0%, #02070d 36%, #03060a 100%);
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    padding-bottom: 92px;
    background: transparent;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 70px;
    display: block;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(1, 8, 14, 0.96), rgba(1, 8, 14, 0.72));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
  }

  .brand {
    height: 46px;
    padding: 0;
    border: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #62f7d5 0%, #2e9bff 100%);
    color: #001110;
    box-shadow: 0 0 24px rgba(55, 223, 241, 0.32);
  }

  .brand strong {
    color: #fff;
    font-size: 15px;
    line-height: 1;
  }

  .brand span {
    color: rgba(222, 234, 245, 0.68);
    font-size: 11px;
  }

  .side-note {
    display: none;
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: 78px;
    padding: 10px 28px max(12px, env(safe-area-inset-bottom));
    background: rgba(8, 10, 13, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(18px);
  }

  .nav-item {
    display: none;
  }

  .nav-item[data-view="home"],
  .nav-item[data-view="video"],
  .nav-item[data-view="works"] {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 52px;
    padding: 0;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    box-shadow: none;
    font-size: 0;
    text-align: center;
  }

  .nav-item[data-view="home"]::before {
    content: "首页";
  }

  .nav-item[data-view="video"]::before {
    content: "AI工具";
  }

  .nav-item[data-view="works"]::before {
    content: "我的";
  }

  .nav-item[data-view="home"]::before,
  .nav-item[data-view="video"]::before,
  .nav-item[data-view="works"]::before {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .nav-item.active {
    color: #fff;
  }

  .nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    width: 34px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6af7d7, #2897ff);
    box-shadow: 0 0 18px rgba(72, 207, 255, 0.65);
  }

  .main {
    padding: 12px 14px 18px;
  }

  .topbar {
    min-height: 20px;
    margin: 0 0 8px;
  }

  .topbar > div:first-child {
    display: none;
  }

  .account-bar {
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
  }

  .metric.compact {
    min-width: 74px;
    padding: 6px 9px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
  }

  .metric.compact span {
    display: none;
  }

  .metric.compact strong {
    margin: 0;
    font-size: 16px;
  }

  .account-bar .btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
  }

  .view.active {
    animation: mobileFadeIn 0.28s ease both;
  }

  @keyframes mobileFadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero {
    position: relative;
    display: block;
    min-height: 168px;
    margin: 8px 2px 18px;
    padding: 22px 20px;
    overflow: hidden;
    border: 1px solid rgba(87, 225, 255, 0.22);
    border-radius: 18px;
    color: #fff;
    background:
      linear-gradient(135deg, rgba(13, 55, 255, 0.96), rgba(23, 178, 255, 0.78) 55%, rgba(82, 255, 214, 0.58)),
      radial-gradient(circle at 82% 36%, rgba(255, 255, 255, 0.5), transparent 18%);
    box-shadow: 0 22px 55px rgba(0, 80, 255, 0.28);
  }

  .hero::before {
    content: "";
    position: absolute;
    right: 18px;
    top: 22px;
    width: 82px;
    height: 82px;
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02)),
      radial-gradient(circle, rgba(115, 255, 232, 0.8), rgba(21, 130, 255, 0.2) 58%, transparent 60%);
    transform: rotate(9deg);
    box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.16), 0 18px 35px rgba(0, 0, 0, 0.24);
  }

  .hero::after {
    content: "▶";
    position: absolute;
    right: 44px;
    top: 48px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #6df7d8, #2198ff);
    box-shadow: 0 0 32px rgba(71, 226, 255, 0.72);
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 75%;
  }

  .hero-copy .eyebrow {
    display: none;
  }

  .hero-copy h2 {
    max-width: 9em;
    margin: 0 0 14px;
    color: #fff;
    font-size: 29px;
    line-height: 1.18;
    font-weight: 900;
  }

  .hero-copy h2::before {
    content: attr(data-kicker);
    display: block;
    margin-bottom: 4px;
  }

  .hero-copy p {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 8px 12px;
    overflow: hidden;
    color: #01252a;
    background: rgba(139, 255, 231, 0.92);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
    transform: skew(-8deg);
  }

  .hero-copy p::before {
    content: attr(data-line);
  }

  .hero-copy p,
  .hero-copy p * {
    color: transparent;
  }

  .hero-copy p::before {
    color: #03313b;
  }

  .hero-actions,
  .hero-panel {
    display: none;
  }

  .section-head {
    margin: 22px 2px 12px;
    color: #fff;
  }

  .section-head h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
  }

  .section-head span,
  .muted {
    color: rgba(218, 229, 240, 0.62);
  }

  .section-head .btn {
    display: none;
  }

  .quick-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 2px 22px;
    padding: 0;
    overflow: visible;
  }

  .quick-tool {
    position: relative;
    min-height: 86px;
    padding: 16px 14px;
    overflow: hidden;
    border: 1px solid rgba(81, 213, 255, 0.18);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(21, 74, 92, 0.92), rgba(10, 20, 31, 0.96)),
      radial-gradient(circle at 88% 80%, rgba(72, 228, 255, 0.4), transparent 24%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px rgba(0, 0, 0, 0.26);
  }

  .quick-tool:nth-child(n + 5) {
    display: none;
  }

  .quick-tool::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(107, 255, 214, 0.95), rgba(36, 150, 255, 0.55));
    filter: blur(0.2px);
    opacity: 0.8;
    transform: rotate(-12deg);
  }

  .quick-icon {
    display: none;
  }

  .quick-copy h3 {
    color: #fff;
    font-size: 22px;
    line-height: 1.08;
  }

  .quick-copy span {
    display: none;
  }

  .quick-copy p {
    margin: 8px 0 0;
    color: rgba(231, 238, 246, 0.62);
    font-size: 14px;
    line-height: 1.35;
  }

  .quick-action {
    position: absolute;
    inset: 0;
    opacity: 0;
  }

  .category-grid {
    display: flex;
    gap: 10px;
    margin: 0 -14px 20px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-card {
    flex: 0 0 auto;
    min-height: 42px;
    width: auto;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
  }

  .category-card.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(104, 247, 216, 0.28), rgba(45, 151, 255, 0.22));
    box-shadow: inset 0 0 0 1px rgba(122, 245, 225, 0.22);
  }

  .category-card span,
  .category-card em,
  .category-card b {
    display: none;
  }

  .category-card strong {
    color: inherit;
    font-size: 15px;
    white-space: nowrap;
  }

  .sample-wall {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 2px;
  }

  .sample-card {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #0c1117;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
  }

  .sample-preview {
    width: 100%;
    aspect-ratio: 9 / 16;
    margin: 0;
    border-radius: 18px;
    background: linear-gradient(160deg, #172431, #05080d);
  }

  .sample-preview video,
  .case-media,
  .case-media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }

  .case-media-placeholder {
    display: grid;
    place-items: center;
    padding: 14px;
    color: rgba(255, 255, 255, 0.7);
    background:
      radial-gradient(circle at 50% 18%, rgba(74, 206, 255, 0.28), transparent 24%),
      linear-gradient(160deg, #172332, #05080d);
  }

  .case-media-placeholder b {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: #001516;
    background: linear-gradient(135deg, #6cf6d7, #2b9bff);
    font-size: 28px;
  }

  .case-media-placeholder small {
    position: absolute;
    bottom: 54px;
    left: 12px;
    right: 12px;
    text-align: center;
  }

  .sample-preview span,
  .sample-preview strong {
    display: none;
  }

  .sample-copy {
    position: absolute;
    inset: auto 10px 12px;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .sample-copy h3,
  .sample-copy p {
    display: none;
  }

  .sample-copy .btn {
    width: 100%;
    min-height: 44px;
    margin: 0;
    border: 0;
    border-radius: 12px;
    color: rgba(0, 0, 0, 0.72);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    font-size: 18px;
    font-weight: 900;
    backdrop-filter: blur(10px);
  }

  .tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 14px 2px;
    padding: 18px 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(14, 57, 62, 0.88), rgba(16, 20, 34, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 42px rgba(0, 0, 0, 0.34);
  }

  #video .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    gap: 14px;
    background: transparent;
    box-shadow: none;
  }

  .tool-card {
    min-height: 106px;
    padding: 14px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  #video .tool-card {
    position: relative;
    min-height: 126px;
    overflow: hidden;
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(21, 74, 92, 0.9), rgba(10, 20, 31, 0.96)),
      radial-gradient(circle at 85% 80%, rgba(84, 216, 255, 0.35), transparent 28%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  }

  .tool-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    border-radius: 12px;
    color: #effbff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.84);
    font-size: 18px;
  }

  #video .tool-icon {
    width: 48px;
    height: 48px;
    border: 0;
    color: #001313;
    background: linear-gradient(135deg, #6df7d8, #259aff);
  }

  .tool-body header {
    display: block;
  }

  .tool-body h3 {
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
  }

  #video .tool-body h3 {
    font-size: 20px;
  }

  .tool-body header span,
  .tool-body p,
  .tool-actions {
    display: none;
  }

  .template-toolbar,
  .template-grid {
    display: none;
  }

  .tool-detail-layout,
  .custom-workbench,
  .two-col,
  .provider-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .panel,
  .composer-step,
  .prompt-advanced,
  .custom-form,
  .custom-output {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(26, 28, 32, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  }

  .tool-detail-layout .panel {
    border-radius: 18px;
  }

  .composer-panel {
    padding: 14px;
  }

  .composer-head {
    display: flex;
    align-items: center;
  }

  .composer-head .eyebrow {
    color: #63eaff;
  }

  .composer-head h3 {
    color: #fff;
    font-size: 24px;
  }

  .cost-pill {
    border: 0;
    color: #001419;
    background: linear-gradient(90deg, #6cf6d7, #2899ff);
  }

  .mode-row {
    display: flex;
    gap: 24px;
    margin: 0 -14px 16px;
    padding: 6px 14px 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mode-row button {
    flex: 0 0 auto;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.48);
    background: transparent;
    font-size: 18px;
    font-weight: 900;
  }

  .mode-row button.active {
    position: relative;
    color: #fff;
    background: transparent;
    box-shadow: none;
  }

  .mode-row button.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 28px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #65f5d6, #2b9bff);
    transform: translateX(-50%);
  }

  .composer-step {
    margin-bottom: 14px;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .composer-step-title span,
  .prompt-advanced summary span {
    color: #001419;
    background: linear-gradient(135deg, #70f7da, #2d9dff);
  }

  .composer-step-title strong,
  .prompt-advanced summary strong {
    color: #fff;
    font-size: 19px;
  }

  .composer-step-title small,
  .prompt-advanced summary small {
    color: rgba(226, 234, 242, 0.62);
  }

  .composer-case-demo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .case-demo-phone {
    order: -1;
    width: min(72vw, 260px);
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
  }

  .case-demo-copy {
    padding: 0;
  }

  .case-demo-copy strong {
    color: #fff;
  }

  .case-demo-copy span,
  .case-demo-copy li {
    color: rgba(224, 233, 243, 0.68);
  }

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

  .upload-tile,
  .material-card {
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #101216;
  }

  .upload-tile {
    display: grid;
    place-items: center;
    border: 1px dashed rgba(91, 229, 255, 0.26);
  }

  .upload-tile::before {
    content: "+";
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #001316;
    background: linear-gradient(135deg, #6af7d8, #289bff);
    font-size: 30px;
    font-weight: 900;
  }

  .upload-tile strong,
  .upload-tile span,
  .upload-tile small,
  .upload-zone span {
    color: rgba(226, 234, 242, 0.68);
  }

  .creator-options,
  .admin-grid,
  .script-grid {
    gap: 0;
  }

  .creator-options label,
  .admin-grid label,
  .script-grid label {
    display: grid;
    grid-template-columns: minmax(86px, 35%) minmax(0, 1fr);
    align-items: center;
    min-height: 68px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
  }

  input,
  select,
  textarea {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.05);
  }

  select {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }

  textarea {
    min-height: 150px;
    border-radius: 18px;
    background: rgba(6, 8, 12, 0.7);
  }

  .prompt-advanced textarea,
  #composerPrompt {
    min-height: 220px;
    font-size: 17px;
    line-height: 1.75;
  }

  .composer-actions,
  .custom-submit-row {
    display: grid;
    gap: 10px;
  }

  .btn.primary,
  #submitComposer,
  #submitCustomVideo {
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, #67f4d4 0%, #2a98ff 100%);
    box-shadow: 0 16px 34px rgba(41, 151, 255, 0.32);
  }

  #submitComposer,
  #submitCustomVideo {
    min-height: 58px;
    border-radius: 16px;
    font-size: 18px;
  }

  .btn.ghost {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }

  .custom-workbench {
    gap: 14px;
  }

  .custom-step-head span {
    color: #001419;
    background: linear-gradient(135deg, #70f7da, #2d9dff);
  }

  .custom-step-head h3 {
    color: #fff;
  }

  .custom-step-head p {
    color: rgba(226, 234, 242, 0.62);
  }

  .upload-zone.admin-upload {
    border-color: rgba(91, 229, 255, 0.22);
    background: rgba(4, 11, 16, 0.55);
  }

  .custom-result-panel,
  .composer-result-panel {
    min-height: 260px;
    border-radius: 18px;
    background: linear-gradient(145deg, #071522, #0b3b3d);
  }

  .result-empty,
  .result-running,
  .result-mock {
    color: #fff;
  }

  .work-list,
  .package-list,
  .table {
    color: #fff;
  }

  .work-item,
  .package-card,
  .admin-card-row,
  .service-task-item {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.05);
  }

  #works::before {
    content: "";
    display: block;
    width: 86px;
    height: 86px;
    margin: 24px auto 12px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 42% 38%, #fff 0 8%, transparent 9%),
      linear-gradient(135deg, #e8f2ff, #1d2b56 58%, #070a10);
    border: 4px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 34px rgba(67, 205, 255, 0.28);
  }

  #works .section-head {
    text-align: center;
  }

  #works .section-head h2::before {
    content: "手机用户";
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 22px;
  }

  #works .work-list {
    margin-top: 18px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
  }

  .toast {
    z-index: 120;
    bottom: 92px;
    color: #fff;
    background: rgba(10, 12, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    pointer-events: none;
  }

  .brand {
    display: none;
  }

  .nav {
    position: static;
    pointer-events: auto;
  }

  .quick-copy h3,
  .quick-copy p {
    display: block;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }

  .quick-tool {
    display: block;
    min-width: 0;
  }

  .quick-copy {
    position: relative;
    z-index: 1;
    width: calc(100% - 46px);
    min-width: 0;
  }

  .quick-copy div {
    display: block;
  }

  .quick-copy h3 {
    margin: 0 0 8px;
  }

  .quick-copy p {
    max-height: 40px;
    overflow: hidden;
    color: rgba(231, 238, 246, 0.7);
  }
}

@media (max-width: 390px) {
  .hero-copy h2 {
    font-size: 25px;
  }

  .quick-copy h3 {
    font-size: 19px;
  }

  .sample-wall {
    gap: 10px;
  }

  .sample-copy .btn {
    min-height: 40px;
    font-size: 16px;
  }

  .tool-grid {
    padding: 14px 6px;
  }
}
