:root {
  --bg: #090d15;
  --bg-2: #141b2d;
  --surface: rgba(20, 27, 44, 0.78);
  --surface-strong: rgba(26, 35, 56, 0.92);
  --surface-deep: rgba(10, 14, 24, 0.92);
  --line: rgba(241, 199, 84, 0.28);
  --line-strong: rgba(242, 205, 101, 0.48);
  --text: #f8f7f5;
  --muted: #beb5a5;
  --muted-2: #948976;
  --blue: #eebb2e;
  --blue-bright: #f1c858;
  --cyan: #67dbcc;
  --green: #37e694;
  --orange: #ffd257;
  --red: #e7836a;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --glow: 0 0 28px rgba(238, 189, 52, 0.35);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 22%, rgba(237, 181, 29, 0.24), transparent 34%),
    radial-gradient(circle at 18% 10%, rgba(238, 186, 44, 0.26), transparent 28%),
    linear-gradient(135deg, #070a11 0%, #131a2b 52%, #0c111d 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(242, 205, 101, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 205, 101, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 86%);
}

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

button,
a,
input,
textarea,
select,
.panel,
.login-card,
.status-pill,
.agent-info,
.chat-messages,
  .chat-bubble,
  .image-preview,
  .video-preview,
  .deck-text,
  .sidebar-note,
  .source-card,
  .hero-metrics div,
  .feature-card,
  .download-box a,
  .project-item,
  .preset-button,
  .video-history-item,
  .usage-item,
.account-item,
  .onboarding-modal,
  .pricing-grid div {
  border-radius: 8px;
}

.script-page {
  min-height: 100vh;
}

.script-header {
  grid-template-columns: minmax(240px, 1fr) auto;
}

.script-model-pill {
  justify-self: end;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--green);
  border: 1px solid rgba(55, 230, 148, 0.45);
  background: rgba(9, 36, 33, 0.78);
  box-shadow: 0 0 22px rgba(55, 230, 148, 0.2);
}

.script-main {
  padding-top: 70px;
}

.script-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 84px 48px 62px;
}

.script-hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}

.script-hero-content h1 {
  max-width: 920px;
  font-size: clamp(38px, 4.4vw, 64px);
}

.script-hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.script-workbench {
  width: min(1180px, calc(100% - 48px));
  margin: -34px auto 72px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.script-input-panel,
.script-output-panel {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(16, 22, 37, 0.92);
  box-shadow: var(--shadow);
}

.script-input-panel label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.script-input-panel textarea {
  width: 100%;
  min-height: 156px;
  resize: vertical;
}

.script-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.script-actions .large-button {
  flex: 1;
}

.ghost-button,
.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(16, 22, 38, 0.72);
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.script-output-panel {
  display: grid;
  gap: 14px;
}

.script-status {
  min-height: 58px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 26, 0.74);
}

.script-status .status-dot {
  grid-row: 1 / span 2;
}

.script-status strong {
  line-height: 1.2;
}

.script-status small {
  color: var(--muted);
}

.script-status.queued .status-dot,
.script-status.generating .status-dot {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 210, 87, 0.9);
}

.script-status.done .status-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(55, 230, 148, 0.9);
}

.script-status.error .status-dot {
  background: var(--red);
  box-shadow: 0 0 12px rgba(231, 131, 106, 0.9);
}

.script-result {
  min-height: 430px;
  max-height: 64vh;
  margin: 0;
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #fbfbfa;
  line-height: 1.76;
  border: 1px solid rgba(241, 199, 84, 0.24);
  background: rgba(8, 11, 20, 0.82);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 70px;
  display: grid;
  grid-template-columns: 260px minmax(260px, 520px) auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(9, 13, 21, 0.86);
  border-bottom: 1px solid rgba(241, 200, 86, 0.22);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px);
}

.brand,
.sidebar-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 132px;
  height: auto;
  display: block;
}

.brand strong,
.sidebar-logo strong {
  display: block;
  line-height: 1.1;
  font-size: 16px;
}

.brand small,
.sidebar-logo small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ai-badge {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, #eeb927, #69dccd);
  border: 1px solid rgba(245, 215, 132, 0.7);
  box-shadow: 0 0 22px rgba(239, 191, 59, 0.72);
}

.top-search {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  background: rgba(10, 15, 26, 0.7);
  box-shadow: inset 0 0 22px rgba(222, 174, 43, 0.12);
}

.top-search::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 10px rgba(245, 215, 132, 0.75);
}

.user-bar {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  background: rgba(17, 23, 38, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
}

.customer-hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: center;
  gap: 36px;
  padding: 118px 48px 64px;
  overflow: hidden;
}

.customer-page.is-authenticated .customer-hero {
  display: none;
}

.customer-page.is-authenticated .public-feature-overview {
  display: none;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.12) contrast(1.06);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 13, 21, 0.97) 0%, rgba(15, 22, 36, 0.86) 42%, rgba(18, 26, 46, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 13, 21, 0.3) 0%, rgba(9, 13, 21, 0.8) 100%),
    radial-gradient(circle at 76% 34%, rgba(103, 219, 204, 0.2), transparent 38%);
}

.hero-content,
.login-card {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.02;
  font-weight: 820;
  text-shadow: 0 0 34px rgba(242, 201, 89, 0.34);
}

h2 {
  font-size: 24px;
  line-height: 1.22;
}

.hero-content p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: #e6e4e0;
  font-size: 21px;
  line-height: 1.65;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
  margin-top: 30px;
}

.hero-metrics div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(21, 29, 48, 0.72);
  box-shadow: inset 0 0 28px rgba(238, 185, 41, 0.13);
}

.hero-metrics strong {
  display: block;
  font-size: 26px;
  color: #f5d680;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.public-feature-overview {
  width: min(1500px, calc(100% - 44px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: -30px auto 72px;
  position: relative;
  z-index: 2;
}

.feature-card {
  min-height: 210px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(243, 205, 101, 0.34);
  background:
    linear-gradient(180deg, rgba(25, 35, 56, 0.9), rgba(11, 16, 28, 0.88));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(244, 209, 115, 0.08);
  backdrop-filter: blur(18px);
}

.feature-card span {
  width: max-content;
  padding: 5px 9px;
  color: #a4eae0;
  font-size: 12px;
  font-weight: 760;
  border: 1px solid rgba(103, 219, 204, 0.28);
  background: rgba(103, 219, 204, 0.08);
  border-radius: 999px;
}

.feature-card h2 {
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: #e6e4e0;
  line-height: 1.7;
}

.feature-card small {
  color: #78ffc0;
  line-height: 1.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 9, 15, 0.72);
  backdrop-filter: blur(16px);
}

.onboarding-modal {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(244, 209, 115, 0.45);
  background:
    linear-gradient(180deg, rgba(25, 35, 56, 0.96), rgba(11, 16, 28, 0.97));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58), inset 0 0 42px rgba(239, 189, 53, 0.14);
}

.onboarding-modal h2 {
  font-size: 28px;
}

.onboarding-modal p {
  margin: 10px 0 0;
  color: #e6e4e0;
  line-height: 1.75;
}

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

.pricing-grid div {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(242, 203, 96, 0.3);
  background: rgba(10, 15, 26, 0.66);
}

.pricing-grid strong {
  display: block;
  color: #f8f7f5;
  font-size: 17px;
}

.pricing-grid span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-note {
  padding: 12px 14px;
  border: 1px solid rgba(55, 230, 148, 0.24);
  color: #bdf8dc !important;
  background: rgba(11, 45, 41, 0.42);
}

.login-card,
.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(26, 35, 56, 0.88), rgba(13, 18, 30, 0.88));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(244, 212, 124, 0.08);
  backdrop-filter: blur(18px);
}

.login-card {
  align-self: start;
  margin-top: 22px;
  padding: 24px;
}

.workspace,
.admin-shell {
  width: min(1500px, calc(100% - 44px));
  margin: 0 auto;
  padding: 96px 0 56px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.app-sidebar {
  position: sticky;
  top: 92px;
  min-height: calc(100vh - 118px);
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(11, 16, 28, 0.84);
  box-shadow: var(--shadow), inset 0 0 28px rgba(238, 185, 39, 0.16);
}

.sidebar-logo {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(242, 204, 98, 0.2);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.sidebar-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #eae8e4;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(23, 31, 51, 0.5);
}

.sidebar-nav a:hover {
  color: #ffffff;
  border-color: var(--line-strong);
  background: linear-gradient(90deg, rgba(238, 187, 46, 0.48), rgba(228, 177, 37, 0.24));
  box-shadow: 0 0 18px rgba(238, 188, 50, 0.26);
}

.sidebar-note {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.78);
}

.sidebar-note span,
.sidebar-note strong {
  display: block;
}

.sidebar-note span {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-note strong {
  margin-top: 5px;
  color: #efeeeb;
  font-size: 13px;
  line-height: 1.55;
}

.app-content {
  min-width: 0;
}

.admin-shell {
  padding-top: 108px;
}

.admin-header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(19, 26, 43, 0.82);
  box-shadow: var(--shadow);
}

.admin-header h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.panel {
  position: relative;
  margin-bottom: 20px;
  padding: 22px;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 199, 84, 0.8), transparent);
}

.intro-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.panel-title {
  margin-bottom: 18px;
}

.panel-title p,
.hint,
.agent-info span,
.usage-item small,
.project-item small,
.status-pill small,
.admin-header p,
.intro-panel p,
.slide-card span {
  color: var(--muted);
}

.panel-title p,
.intro-panel p {
  margin: 7px 0 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(11, 16, 28, 0.78);
  box-shadow: inset 0 0 20px rgba(238, 187, 46, 0.13);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px rgba(255, 210, 87, 0.75);
}

.status-dot.ready {
  background: var(--green);
  box-shadow: 0 0 14px rgba(55, 230, 148, 0.75);
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: #edece9;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 16px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(242, 203, 96, 0.32);
  background: rgba(10, 14, 24, 0.76);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #968b78;
}

input:disabled,
select:disabled {
  background: rgba(15, 19, 28, 0.74);
  color: var(--muted-2);
}

label.is-muted {
  color: var(--muted);
}

textarea {
  resize: vertical;
  line-height: 1.65;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(242, 201, 89, 0.9);
  box-shadow: 0 0 0 3px rgba(238, 187, 46, 0.18), 0 0 18px rgba(238, 187, 46, 0.18);
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button {
  border-color: rgba(243, 208, 111, 0.72);
  background: linear-gradient(180deg, #efbd34, #ecb51e);
  color: white;
  box-shadow: 0 0 22px rgba(238, 187, 46, 0.34);
}

.primary-button:hover {
  background: linear-gradient(180deg, #f0c348, #eeb928);
}

.secondary-button {
  background: rgba(20, 28, 47, 0.9);
  color: #d4d0c9;
}

.danger-button {
  border-color: rgba(231, 131, 106, 0.48);
  background: rgba(81, 29, 16, 0.82);
  color: #e7836a;
}

.danger-button:hover {
  border-color: rgba(231, 131, 106, 0.78);
  box-shadow: 0 0 18px rgba(231, 131, 106, 0.18);
}

.large-button {
  min-height: 50px;
  padding: 0 24px;
  font-size: 17px;
}

.action-row,
.chat-input-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.progress {
  height: 8px;
  background: rgba(211, 169, 54, 0.92);
  margin: 18px 0 10px;
  overflow: hidden;
  border: 1px solid rgba(242, 204, 100, 0.22);
}

#progressBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  box-shadow: 0 0 16px rgba(103, 219, 204, 0.62);
  transition: width 0.3s ease;
}

.agent-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.agent-sidebar {
  padding-right: 18px;
  border-right: 1px solid rgba(242, 203, 96, 0.2);
}

.agent-info {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(10, 15, 26, 0.64);
  border: 1px solid var(--line);
}

.chat-box {
  display: grid;
  grid-template-rows: minmax(320px, 460px) auto;
  gap: 14px;
}

.chat-messages {
  overflow: auto;
  padding: 16px;
  background: rgba(10, 14, 24, 0.68);
  border: 1px solid rgba(242, 203, 96, 0.24);
}

.chat-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.chat-message {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.chat-message.user {
  justify-items: end;
}

.chat-message.assistant {
  justify-items: start;
}

.chat-bubble {
  max-width: min(720px, 88%);
  padding: 12px 14px;
  line-height: 1.7;
  border: 1px solid var(--line);
  background: rgba(25, 35, 56, 0.92);
}

.chat-message.user .chat-bubble {
  border-color: rgba(243, 208, 111, 0.78);
  background: linear-gradient(180deg, #efbd34, #edb51d);
  color: white;
}

.chat-input-row {
  align-items: stretch;
}

.chat-input-row textarea {
  flex: 1;
  min-height: 78px;
  margin: 0;
}

.chat-input-row button {
  width: 112px;
}

.image-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.video-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.compact-grid {
  gap: 12px;
}

.image-result,
.video-result {
  display: grid;
  gap: 12px;
}

.image-preview,
.video-preview,
.loading-box {
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10, 14, 24, 0.72);
  color: var(--muted);
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #080c14;
}

.video-preview video {
  display: block;
  width: 100%;
  max-height: 560px;
  background: #080c14;
}

.source-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 26, 0.64);
}

.source-card > strong,
.source-card > span {
  grid-column: 1 / -1;
}

.source-card img {
  width: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #080c14;
}

.source-card div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.source-card span {
  color: var(--muted);
  line-height: 1.6;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.preset-button {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(242, 203, 96, 0.34);
  background: rgba(24, 33, 54, 0.78);
  color: #d4d0c9;
}

.download-box small {
  color: var(--muted);
}

.image-history,
.video-history {
  margin-top: 18px;
  color: var(--muted);
}

.image-history-grid,
.video-history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.image-history-item,
.video-history-item {
  min-height: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
  background: rgba(18, 25, 43, 0.78);
  border-color: var(--line);
  text-align: left;
}

.video-history-item {
  min-height: 110px;
  align-content: space-between;
  padding: 12px;
}

.video-history-item strong {
  color: var(--text);
  line-height: 1.5;
  max-height: 48px;
  overflow: hidden;
}

.video-history-item span {
  color: var(--muted);
  font-size: 13px;
}

.image-history-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: #080c14;
}

.image-history-item span {
  height: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
}

.deck-text {
  max-height: 560px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.7;
  padding: 16px;
  background: rgba(10, 14, 24, 0.72);
  border: 1px solid var(--line);
  color: #f0eeeb;
}

.download-box,
.project-list,
.usage-list,
.account-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.download-box a,
.project-item,
.usage-item,
.account-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(18, 25, 43, 0.76);
  color: var(--text);
  text-align: left;
  text-decoration: none;
}

.download-box a:hover,
.project-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

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

.usage-summary div {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(18, 25, 43, 0.76);
}

.usage-summary strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: #f5d682;
}

.usage-summary span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.usage-item {
  grid-template-columns: minmax(0, 1fr) 120px 120px 120px;
  align-items: center;
}

.account-item {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
}

.quota-editor {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
}

.quota-editor small {
  grid-column: 1 / -1;
}

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

.slide-card {
  border: 1px solid var(--line);
  background: rgba(18, 25, 43, 0.76);
  padding: 8px;
}

.slide-card img,
.slide-card object {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #080c14;
}

.slide-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 240px minmax(160px, 1fr) auto;
  }

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

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

  .login-card {
    max-width: 460px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    min-height: 0;
  }

  .sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agent-layout,
  .image-tool-layout,
  .video-tool-layout,
  .split,
  .form-grid.four {
    grid-template-columns: 1fr;
  }

  .agent-sidebar {
    padding-right: 0;
    border-right: 0;
  }

  .script-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    height: auto;
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }

  .top-search {
    display: none;
  }

  .brand small,
  .user-bar span {
    display: none;
  }

  .customer-hero {
    padding: 96px 18px 42px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-metrics,
  .public-feature-overview,
  .sidebar-nav,
  .form-grid.two,
  .usage-summary,
  .usage-item,
  .account-item,
  .slides-grid,
  .image-history-grid,
  .video-history-grid,
  .pricing-grid,
  .admin-header,
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .workspace,
  .admin-shell {
    width: min(100% - 28px, 1500px);
    padding-top: 84px;
  }

  .public-feature-overview {
    width: min(100% - 28px, 1500px);
  }

  .public-feature-overview {
    margin-top: -18px;
    margin-bottom: 42px;
  }

  .intro-panel {
    display: grid;
  }

  .chat-input-row button {
    width: 100%;
  }

  .quota-editor {
    grid-template-columns: 1fr;
  }

  .script-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .script-model-pill {
    justify-self: stretch;
    min-height: 34px;
    justify-content: center;
    font-size: 13px;
  }

  .script-main {
    padding-top: 98px;
  }

  .script-hero {
    min-height: 360px;
    padding: 52px 18px 46px;
  }

  .script-hero-content h1 {
    font-size: 38px;
  }

  .script-hero-content p:not(.eyebrow) {
    font-size: 16px;
  }

  .script-workbench {
    width: min(100% - 28px, 1180px);
    margin-top: -22px;
    margin-bottom: 42px;
  }

  .script-input-panel,
  .script-output-panel {
    padding: 16px;
  }

  .script-actions {
    flex-direction: column;
  }

  .script-result {
    min-height: 360px;
    max-height: none;
    font-size: 15px;
  }
}


/* 繁星暖金: hero 区暖色兜底 */
.hero-bg{filter:saturate(1.06) brightness(.86) contrast(1.02);}

/* 智能体对话: 复制/下载按钮 */
.chat-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.chat-act {
  font-size: 12px; padding: 3px 12px; border-radius: 7px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; transition: all .15s; line-height: 1.6;
}
.chat-act:hover { color: var(--blue); border-color: var(--blue-bright); background: rgba(238,187,46,.08); }
.chat-act:active { transform: translateY(1px); }

/* 智能体对话: 附件上传 */
.chat-attach-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.attach-btn {
  font-size: 13px; padding: 5px 12px; border-radius: 8px;
  border: 1px dashed var(--line-strong); color: var(--muted);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.attach-btn:hover { color: var(--blue); border-color: var(--blue); background: rgba(238,187,46,.06); }
.attach-list { font-size: 12px; color: var(--muted-2); }
.attach-list.has-files { color: var(--blue-bright); }

/* 方案文案改为可编辑 textarea */
textarea.deck-text { width: 100%; resize: vertical; min-height: 340px; line-height: 1.7; }

/* 注册 / 图形验证码 */
.switch-line { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.link-btn { color: var(--blue); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--blue-bright); }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-img { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #f3eee2; min-width: 100px; min-height: 40px; font-size: 12px; color: #888; }
.captcha-img svg { display: block; }

/* 未登录落地页（往下翻） */
.public-feature-overview { display: block; grid-template-columns: none; padding: 30px 0 60px; max-width: 1280px; margin: 0 auto; }
.landing-intro { text-align: center; max-width: 760px; margin: 8px auto 30px; padding: 0 20px; }
.landing-intro .eyebrow { color: var(--blue-bright); }
.landing-intro h2 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0; line-height: 1.3; }
.landing-intro > p { color: var(--muted); }
.landing-block { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 30px 24px; }
.landing-block.reverse { grid-template-columns: 1.15fr 1fr; }
.landing-block.reverse .landing-text { order: 2; }
.landing-block.column { grid-template-columns: 1fr; }
.landing-num { display: inline-block; font-family: monospace; font-size: 14px; color: var(--blue-bright); border: 1px solid var(--line); border-radius: 20px; padding: 3px 14px; margin-bottom: 12px; }
.landing-text h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 6px 0 14px; }
.landing-text p { color: var(--muted); line-height: 1.85; font-size: 15px; }
.landing-text.center { text-align: center; max-width: 720px; margin: 0 auto; }
.landing-media img, .landing-media video { width: 100%; border-radius: 16px; box-shadow: var(--shadow); display: block; }
.landing-media.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.landing-media.triple figure { margin: 0; }
.landing-media.triple figcaption { text-align: center; font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.landing-media.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.landing-cta { text-align: center; max-width: 640px; margin: 36px auto 10px; padding: 44px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.landing-cta h3 { font-size: 24px; margin: 0 0 10px; }
.landing-cta p { color: var(--muted); margin: 0 0 22px; }
@media (max-width: 760px) {
  .landing-block, .landing-block.reverse { grid-template-columns: 1fr; gap: 22px; }
  .landing-block.reverse .landing-text { order: 0; }
  .landing-media.grid6 { grid-template-columns: repeat(2, 1fr); }
}

/* 调整v2：放大配图 + hero柔和过渡 + 两组图 + 视频对比 */
.landing-block { max-width: 1240px; gap: 50px; }
.landing-block:not(.column) { grid-template-columns: 0.82fr 1.3fr; }
.landing-block.reverse:not(.column) { grid-template-columns: 1.3fr 0.82fr; }
.landing-media img, .landing-media video { border-radius: 18px; }
.img-group { display: flex; flex-direction: column; gap: 20px; max-width: 1180px; margin: 24px auto 0; }
.img-group .triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.img-group figure, .video-pair figure { margin: 0; }
.img-group figcaption, .video-pair figcaption { text-align: center; font-size: 13px; color: var(--muted-2); margin-top: 8px; }
.img-group img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.video-pair { display: grid; grid-template-columns: 1fr 1.45fr; gap: 20px; align-items: center; }
.video-pair img, .video-pair video { width: 100%; border-radius: 16px; box-shadow: var(--shadow); display: block; }
.landing-media.grid6 { gap: 16px; margin-top: 26px; max-width: 1180px; margin-left: auto; margin-right: auto; }
.customer-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 1; }
.customer-hero .hero-content, .customer-hero .login-card { position: relative; z-index: 2; }
@media (max-width: 760px) {
  .landing-block:not(.column), .landing-block.reverse:not(.column) { grid-template-columns: 1fr; }
  .img-group .triple { grid-template-columns: 1fr; }
  .video-pair { grid-template-columns: 1fr; }
}

/* 视频模块放大（上下布局，图和视频占满约放大一倍） */
.landing-block.column .video-pair { max-width: 1180px; margin: 28px auto 0; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.landing-block.column .video-pair figcaption { font-size: 14px; margin-top: 10px; }
.landing-media.single { max-width: 920px; margin: 24px auto 0; }
@media (max-width: 760px) {
  .landing-block.column .video-pair { grid-template-columns: 1fr; }
}

/* ============================================================
   繁星 v2 · JustAI 浅灰极简换肤（覆盖层，原暗金样式保留在上方）
   只改视觉，不动结构与逻辑；如需回退删掉本段即可
   ============================================================ */
:root{
  --bg:#F7F8F9; --bg-2:#FFFFFF;
  --surface:#FFFFFF; --surface-strong:#FFFFFF; --surface-deep:#FFFFFF;
  --line:#ECEEF0; --line-strong:#DCDFE3;
  --text:#191919; --muted:#6B6F76; --muted-2:#9AA0A6;
  --blue:#5B5BF0; --blue-bright:#6E6EF6; --cyan:#5B5BF0;
  --green:#16A34A; --orange:#F59E0B; --red:#E5484D;
  --shadow:0 1px 2px rgba(17,17,26,.04),0 6px 20px rgba(17,17,26,.06);
  --glow:0 6px 18px rgba(91,91,240,.18);
  --ink:#191919; --accent:#5B5BF0; --soft:#ECECFE;
}
body{ background:#F7F8F9 !important; color:var(--text); }
body::before{ display:none !important; }

/* 统一圆角加大 */
button,a,input,textarea,select,.panel,.login-card,.status-pill,.agent-info,.chat-messages,
.chat-bubble,.image-preview,.video-preview,.deck-text,.sidebar-note,.source-card,.hero-metrics div,
.feature-card,.download-box a,.project-item,.preset-button,.video-history-item,.usage-item,
.account-item,.onboarding-modal,.pricing-grid div{ border-radius:14px; }

/* 头部 */
.site-header{ background:rgba(247,248,249,.85) !important; border-bottom:1px solid var(--line) !important;
  box-shadow:0 1px 0 rgba(0,0,0,.03) !important; backdrop-filter:saturate(160%) blur(10px); }
.ai-badge{ background:linear-gradient(135deg,#5B5BF0,#8E7BF6) !important; border:none !important;
  box-shadow:0 4px 12px rgba(91,91,240,.35) !important; border-radius:10px !important; }
.top-search{ background:#fff !important; border:1px solid var(--line) !important; box-shadow:none !important; color:var(--muted-2) !important; }
.top-search::before{ background:var(--muted-2) !important; box-shadow:none !important; }
.user-bar{ background:#fff !important; border:1px solid var(--line) !important; box-shadow:var(--shadow) !important; }
.text-button{ color:var(--accent) !important; }

/* 卡片/面板统一白底浅边 */
.login-card,.panel,.feature-card,.onboarding-modal,.app-sidebar,.agent-info,.sidebar-note,.source-card,
.hero-metrics div,.status-pill,.chat-messages,.image-preview,.video-preview,.loading-box,.deck-text,
.download-box a,.project-item,.usage-item,.account-item,.usage-summary div,.slide-card,.image-history-item,
.video-history-item,.pricing-grid div,.chat-bubble{
  background:#fff !important; border-color:var(--line) !important; box-shadow:var(--shadow) !important; backdrop-filter:none !important;
}
.panel::before{ display:none !important; }

/* hero 照片横幅：保留照片，弱化暗金、文案保持白字可读 */
.hero-shade{ background:linear-gradient(90deg,rgba(18,18,28,.72),rgba(18,18,28,.34) 60%,rgba(18,18,28,.08)) !important; }
.hero-content h1{ text-shadow:none !important; }
.eyebrow{ color:var(--accent) !important; }
.hero-content .eyebrow{ color:#cfd0ff !important; }
.hero-metrics div{ background:rgba(255,255,255,.12) !important; border-color:rgba(255,255,255,.3) !important; box-shadow:none !important; }
.hero-metrics strong{ color:#fff !important; }
.hero-metrics span{ color:rgba(255,255,255,.85) !important; }

/* 按钮：主按钮黑胶囊 */
button{ border-radius:9999px !important; }
.primary-button{ background:var(--ink) !important; color:#fff !important; border:1px solid var(--ink) !important; box-shadow:none !important; }
.primary-button:hover{ background:#000 !important; box-shadow:0 8px 20px rgba(0,0,0,.18) !important; }
.secondary-button,.ghost-button{ background:#fff !important; border:1px solid var(--line) !important; color:var(--text) !important; }
.large-button{ border-radius:9999px !important; }

/* 输入框 */
input,textarea,select{ background:#fafbfc !important; border:1px solid var(--line) !important; color:var(--text) !important; border-radius:12px !important; }
input::placeholder,textarea::placeholder{ color:var(--muted-2) !important; }
input:focus,textarea:focus,select:focus{ border-color:#c9c9fb !important; box-shadow:0 0 0 3px rgba(91,91,240,.12) !important; }

/* 侧栏导航 */
.sidebar-nav a{ background:#fff !important; border:1px solid var(--line) !important; color:var(--text) !important; }
.sidebar-nav a:hover{ background:var(--soft) !important; border-color:#c9c9fb !important; color:var(--accent) !important; box-shadow:none !important; }
.sidebar-logo small{ color:var(--muted) !important; }

/* 聊天气泡 */
.chat-message.user .chat-bubble{ background:var(--ink) !important; color:#fff !important; border-color:var(--ink) !important; }

/* 进度条 */
.progress{ background:#eef0f2 !important; border:none !important; border-radius:9999px !important; }
#progressBar{ background:linear-gradient(90deg,#5B5BF0,#8E7BF6) !important; box-shadow:none !important; }
.status-dot.ready{ background:var(--green) !important; box-shadow:none !important; }

/* 能力卡角标 */
.feature-card span{ color:var(--accent) !important; border-color:#c9c9fb !important; background:var(--soft) !important; }

/* 落地页强调色 */
.landing-intro .eyebrow,.landing-num{ color:var(--accent) !important; border-color:var(--line) !important; }
.landing-text p,.landing-intro>p{ color:var(--muted) !important; }
.landing-cta{ background:#fff !important; border:1px solid var(--line) !important; }

/* 注册 / 验证码 / 预设按钮 */
.link-btn{ color:var(--accent) !important; }
.captcha-img{ background:#f3f4f6 !important; }
.preset-button{ background:#fafbfc !important; border:1px solid var(--line) !important; color:var(--muted) !important; }
.preset-button:hover{ color:var(--accent) !important; border-color:#c9c9fb !important; background:var(--soft) !important; }

/* 数字强调 */
.usage-summary strong{ color:var(--accent) !important; }
/* hero 照片横幅文案保持白色（叠在深色蒙版照片上） */
.hero-content h1,.hero-content p:not(.eyebrow){ color:#fff !important; }

/* v2 增强：侧栏分页 active 态 + 预算滑块 */
.sidebar-nav a.active{ background:var(--soft)!important; border-color:#c9c9fb!important; color:var(--accent)!important; font-weight:700; }
.rng{ -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:9999px;
  background:linear-gradient(90deg,#5B5BF0,#c9c9fb); outline:none; margin:6px 0 4px; padding:0; border:none; }
.rng::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%;
  background:#fff; border:3px solid #5B5BF0; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.18); }
.rng-row{ display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--muted-2); margin-top:2px; }
.rng-row b{ font-size:17px; color:var(--accent); font-weight:800; }

/* ============ v2 增强：首页 / 个人中心 / 会员页 ============ */
#home,#profile,#vip{ background:transparent!important; border:none!important; box-shadow:none!important; padding:0!important; overflow:visible!important; margin:0!important; }
#home::before,#profile::before,#vip::before{ display:none!important; }
/* 首页 */
.home-hero{ text-align:center; padding:26px 0 6px; }
.home-ava{ width:72px;height:72px;border-radius:50%;margin:0 auto 14px;display:grid;place-items:center;color:#fff;font-size:28px;font-weight:800;background:linear-gradient(135deg,#5B5BF0,#8E7BF6);box-shadow:0 10px 26px rgba(91,91,240,.3); }
.home-hero h2{ font-size:28px; }
.home-hero p{ color:var(--muted); margin-top:10px; }
.home-quick{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:22px 0 8px; }
.hq{ background:#fff!important; border:1px solid var(--line)!important; border-radius:14px!important; padding:18px 12px!important; text-align:center; cursor:pointer; min-height:auto; font-weight:400; transition:.18s; }
.hq:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.hq-i{ font-size:24px; display:block; margin-bottom:8px; }
.hq b{ display:block; font-size:14px; color:var(--text); }
.hq small{ display:block; color:var(--muted-2); font-size:12px; margin-top:3px; }
.home-feed-head{ display:flex; align-items:center; gap:12px; margin:30px 0 16px; }
.home-feed-head h3{ font-size:17px; margin:0; }
.home-feed-head span{ font-size:12px; color:var(--muted-2); }
.home-feed{ columns:4; column-gap:16px; }
@media(max-width:1180px){ .home-feed{columns:3} .home-quick{grid-template-columns:repeat(2,1fr)} }
@media(max-width:760px){ .home-feed{columns:2} }
.fcard{ break-inside:avoid; margin-bottom:16px; background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow); }
.fcover{ position:relative; color:#fff; min-height:150px; padding:16px; display:flex; flex-direction:column; justify-content:flex-end; }
.fk{ font-size:11px; opacity:.9; letter-spacing:1px; margin-bottom:6px; }
.fb{ font-size:18px; font-weight:800; line-height:1.3; text-shadow:0 1px 8px rgba(0,0,0,.2); }
.fw{ position:absolute; right:-6px; bottom:-14px; font-size:66px; font-weight:900; opacity:.14; }
.fmeta{ display:flex; align-items:center; gap:7px; padding:10px 13px; font-size:12px; color:var(--muted); }
.fav{ width:20px;height:20px;border-radius:50%;background:var(--soft);color:var(--accent);display:grid;place-items:center;font-size:11px;font-weight:700; }
.fct{ margin-left:auto; color:var(--muted-2); }
.fg1{background:linear-gradient(135deg,#5B5BF0,#8E7BF6)} .fg2{background:linear-gradient(135deg,#0EA5A4,#22C7B8)} .fg3{background:linear-gradient(135deg,#F97316,#FBBF50)} .fg4{background:linear-gradient(135deg,#EC4899,#F9A8D4)} .fg5{background:linear-gradient(135deg,#1E293B,#475569)} .fg6{background:linear-gradient(135deg,#2563EB,#60A5FA)} .fg7{background:linear-gradient(135deg,#16A34A,#86EFAC)} .fg8{background:linear-gradient(135deg,#9333EA,#C084FC)}
/* 个人中心 */
.pf-card{ background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:22px 24px; margin-bottom:16px; }
.pf-top{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.pf-ava{ width:58px;height:58px;border-radius:16px;background:linear-gradient(135deg,#FFB347,#FF8A5B);display:grid;place-items:center;color:#fff;font-size:24px;font-weight:800; }
.pf-id strong{ font-size:18px; }
.vtag,.vtag2{ font-size:11px;background:var(--soft);color:var(--accent);padding:3px 10px;border-radius:9999px;font-weight:700;margin-left:6px; }
.pf-id p{ color:var(--muted-2); font-size:12.5px; margin:6px 0 0; }
.pf-top>.primary-button{ margin-left:auto; }
.pf-h{ font-size:15px; margin:0 0 14px; }
.pf-points{ display:flex; align-items:flex-end; gap:30px; flex-wrap:wrap; }
.pf-big{ font-size:42px; font-weight:800; line-height:1; color:var(--accent); }
.pf-big small{ font-size:14px; color:var(--muted-2); font-weight:600; }
.pf-pp{ font-size:13px; color:var(--muted); } .pf-pp b{ display:block; font-size:18px; color:var(--text); margin-top:3px; }
.pf-bar{ height:8px; border-radius:9999px; background:#eef0f2; margin-top:18px; overflow:hidden; } .pf-bar i{ display:block; height:100%; background:linear-gradient(90deg,#5B5BF0,#8E7BF6); }
.pf-rate{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; } .pf-rate span{ font-size:12px;background:#f3f4f6;color:var(--muted);padding:6px 12px;border-radius:9999px; }
.pf-code{ display:flex;align-items:center;justify-content:space-between;border:1px dashed #c9c9fb;background:var(--soft);border-radius:12px;padding:12px 16px;font-size:14px;color:var(--accent);font-weight:700; } .pf-copy{ cursor:pointer;font-size:12px; }
.pf-logout{ width:100%;border:1px solid var(--line)!important;background:#fff!important;color:#E5484D!important;border-radius:12px!important;padding:13px!important;font-weight:600; }
.pf-logout:hover{ border-color:#f3c2c4!important;background:#fff5f5!important; }
/* 会员页 */
.vip-head{ text-align:center; margin:6px 0 24px; } .vip-head h2{ font-size:26px; } .vip-head p{ color:var(--muted); margin-top:10px; }
.vip-plans{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; align-items:start; }
@media(max-width:900px){ .vip-plans{grid-template-columns:1fr} }
.vplan{ position:relative; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:24px 22px; }
.vplan.pop{ border:1.5px solid var(--accent); box-shadow:0 12px 36px rgba(91,91,240,.16); }
.vtag2{ position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--accent); color:#fff; margin:0; }
.vname{ font-size:16px; font-weight:800; }
.vprice{ margin:14px 0 2px; } .vprice b{ font-size:34px; font-weight:800; } .vprice span{ font-size:13px; color:var(--muted-2); }
.vsub{ font-size:12px; color:var(--muted-2); min-height:32px; }
.vip-cta{ width:100%; margin:14px 0 6px; border-radius:9999px!important; }
.vfeat{ list-style:none; padding:14px 0 0; margin:12px 0 0; border-top:1px solid var(--line); display:grid; gap:8px; }
.vfeat li{ font-size:13px; color:#33373d; padding-left:20px; position:relative; }
.vfeat li::before{ content:"✓"; position:absolute; left:0; color:var(--accent); font-weight:800; }

/* v2 增强：首页对话框 + 真实头像 + 登录卡头像 */
img.home-ava{ object-fit:cover; object-position:50% 12%; }
.home-composer{ max-width:620px; margin:18px auto 0; display:flex; align-items:flex-end; gap:10px; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:10px 10px 10px 18px; }
.home-composer textarea{ flex:1; border:none!important; outline:none!important; resize:none; background:transparent!important; font-size:15px; line-height:1.6; max-height:140px; min-height:26px; padding:6px 0!important; margin:0!important; box-shadow:none!important; }
.home-send{ width:42px!important; height:42px; min-height:42px!important; border-radius:50%!important; border:none!important; background:var(--ink)!important; color:#fff!important; font-size:18px; flex:0 0 auto; cursor:pointer; padding:0!important; }
.home-send:hover{ background:#000!important; }
.login-ava2{ width:64px; height:64px; border-radius:16px; object-fit:cover; object-position:50% 12%; display:block; margin:2px auto 12px; background:linear-gradient(135deg,#9d8cff,#5B5BF0); }

/* ============ v3：登录页 1:1 原型（居中分栏卡片） ============ */
.customer-hero{ grid-template-columns:1fr!important; place-items:center; }
.customer-hero .hero-content{ display:none!important; }
.customer-hero .hero-shade{ background:rgba(14,14,22,.6)!important; }
.login-split{ position:relative; z-index:2; width:min(860px,100%); display:flex!important; padding:0!important;
  overflow:hidden; background:#fff!important; border:none!important; border-radius:22px!important;
  box-shadow:0 30px 80px rgba(0,0,0,.42)!important; margin:0 auto!important; align-self:center; backdrop-filter:none!important; }
.login-split .login-left{ width:340px; flex:0 0 340px; color:#fff;
  background:linear-gradient(150deg,#5B5BF0,#8E7BF6 58%,#A78BFA); padding:34px 30px; display:flex; flex-direction:column; }
.login-split .login-left .ll-brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:15px; color:#fff; }
.login-split .login-left .ll-brand .ai-badge{ width:28px; height:28px; border-radius:8px;
  background:rgba(255,255,255,.2)!important; box-shadow:none!important; border:none!important; font-size:13px; }
.login-ava-big{ width:92px; height:92px; border-radius:22px; object-fit:cover; object-position:50% 12%;
  margin:22px 0 2px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); }
.login-split .login-left h2{ font-size:24px; font-weight:800; line-height:1.4; margin-top:14px; color:#fff; }
.login-split .ll-points{ list-style:none; margin:18px 0 0; padding:0; }
.login-split .ll-points li{ font-size:13.5px; line-height:1.6; padding:7px 0; opacity:.96; }
.login-split .ll-foot{ margin-top:auto; font-size:12px; opacity:.85; padding-top:18px; border-top:1px solid rgba(255,255,255,.22); }
.login-split .login-right{ flex:1; min-width:0; padding:34px 34px 28px; }
.login-split .login-right .panel-title h2{ font-size:22px; }
.login-split .login-right label{ margin-bottom:14px; }
@media(max-width:760px){
  .login-split{ flex-direction:column; max-width:440px; }
  .login-split .login-left{ width:auto; flex:none; padding:24px; }
  .login-split .login-left h2{ font-size:20px; }
  .login-ava-big{ width:64px; height:64px; }
}

/* ============ v4：我的资料 聚合库 ============ */
#assets.assets-panel{ background:transparent!important; border:none!important; box-shadow:none!important; padding:0!important; overflow:visible!important; margin:0!important; }
#assets .panel-title{ padding:0 4px; }
.assets-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 18px; }
.atab{ font-size:13.5px; padding:8px 18px; border-radius:9999px!important; background:#fff!important; border:1px solid var(--line)!important; color:var(--muted)!important; cursor:pointer; min-height:auto; font-weight:600; }
.atab.active{ background:var(--ink)!important; color:#fff!important; border-color:var(--ink)!important; }
.assets-group{ margin-bottom:24px; }
.ag-h{ font-size:15px; font-weight:800; margin:0 0 12px; padding:0 4px; }
.ag-note{ background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); padding:18px; color:var(--muted); font-size:13.5px; line-height:1.7; }
#assetsPlanMount > .panel{ margin-bottom:0; }
#assetsImageMount .image-history, #assetsVideoMount .video-history{ margin-top:0; }
#assetsImageMount .image-history:empty::after, #assetsVideoMount .video-history:empty::after{ content:"暂无内容"; color:var(--muted-2); }
/* 个人中心头像换真实形象 */
img.pf-ava{ object-fit:cover; object-position:50% 12%; }

/* v5：我的资料·文案卡片 */
.text-cards{ columns:2; column-gap:16px; }
@media(max-width:760px){ .text-cards{columns:1} }
.tcard{ break-inside:avoid; margin-bottom:16px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); padding:14px 16px; }
.tc-top{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.tc-agent{ font-size:12px; font-weight:700; color:var(--accent); background:var(--soft); padding:3px 10px; border-radius:9999px; }
.tc-time{ margin-left:auto; font-size:11px; color:var(--muted-2); }
.tc-body{ font-size:13.5px; line-height:1.7; color:#33373d; max-height:220px; overflow:auto; }
.tc-copy{ margin-top:10px; font-size:12px; color:var(--muted); background:#fff!important; border:1px solid var(--line)!important; border-radius:9999px!important; padding:5px 14px!important; cursor:pointer; min-height:auto!important; }
.tc-copy:hover{ color:var(--accent); border-color:#c9c9fb!important; }

/* v6：登录协议勾选 + 协议弹窗 */
.agree-row{ display:flex!important; align-items:flex-start; gap:8px; font-size:12.5px; color:var(--muted); margin:2px 0 14px!important; line-height:1.5; font-weight:400; cursor:pointer; }
.agree-row input{ width:auto!important; margin:2px 0 0!important; accent-color:var(--accent); flex:0 0 auto; box-shadow:none!important; }
.agree-row a{ color:var(--accent); cursor:pointer; }
.doc-mask{ position:fixed; inset:0; background:rgba(17,17,26,.45); backdrop-filter:blur(3px); display:none; place-items:center; z-index:300; padding:20px; }
.doc-mask.open{ display:grid; }
.doc-modal{ width:min(680px,100%); max-height:84vh; background:#fff; border-radius:18px; box-shadow:0 30px 80px rgba(0,0,0,.3); display:flex; flex-direction:column; overflow:hidden; }
.doc-head{ display:flex; align-items:center; padding:18px 22px; border-bottom:1px solid var(--line); }
.doc-head h3{ font-size:18px; margin:0; }
.doc-head button{ margin-left:auto; width:32px!important; height:32px; min-height:auto!important; border:none!important; background:#f3f4f6!important; border-radius:50%!important; font-size:18px; cursor:pointer; color:var(--muted); padding:0!important; }
.doc-body{ padding:18px 22px; overflow:auto; font-size:13.5px; line-height:1.85; color:#33373d; }
.doc-body h4{ font-size:14.5px; margin:16px 0 6px; color:var(--ink); }
.doc-body p{ margin:0 0 8px; }
.doc-body em{ color:var(--muted-2); font-style:normal; font-size:12px; }
.doc-foot{ padding:14px 22px; border-top:1px solid var(--line); text-align:right; }

/* v7：工作台更宽 + 首页对话框加大带工具 + 定制技能 */
.workspace{ width:min(1760px, calc(100% - 48px))!important; }
.home-composer{ max-width:760px; display:block!important; padding:14px 16px!important; }
.home-composer textarea{ display:block; width:100%; border:none!important; outline:none!important; resize:none; background:transparent!important; font-size:16px; line-height:1.6; min-height:52px; max-height:200px; padding:6px 0!important; margin:0!important; box-shadow:none!important; }
.hc-tools{ display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }
.hc-tool{ font-size:13px; padding:7px 14px!important; min-height:auto!important; border:1px solid var(--line)!important; background:#fafbfc!important; color:var(--muted)!important; border-radius:9999px!important; cursor:pointer; font-weight:600; }
.hc-tool:hover{ color:var(--accent)!important; border-color:#c9c9fb!important; background:var(--soft)!important; }
.home-send{ margin-left:auto!important; }
.custom-card{ background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:22px 24px; max-width:680px; }
.emoji-pick{ display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.emoji-pick span{ width:40px; height:40px; border-radius:10px; border:1px solid var(--line); display:grid; place-items:center; font-size:19px; cursor:pointer; }
.emoji-pick span.sel{ border-color:var(--accent); background:var(--soft); }

/* v8：侧栏可折叠 + 左下角个人中心 */
.sidebar-logo{ position:relative; }
.sb-toggle{ position:absolute; top:2px; right:0; width:28px; height:28px; min-height:auto!important; border:1px solid var(--line)!important; background:#fff!important; border-radius:8px!important; color:var(--muted); cursor:pointer; font-size:15px; padding:0!important; line-height:1; }
.sb-toggle:hover{ color:var(--accent); border-color:#c9c9fb!important; }
.app-sidebar{ display:flex!important; flex-direction:column; }
.sidebar-note{ margin-top:auto!important; }
.sb-user{ display:flex; align-items:center; gap:10px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; margin-top:12px; }
.sb-user:hover{ box-shadow:var(--shadow); border-color:#c9c9fb; }
.sb-uava{ width:34px; height:34px; border-radius:50%; object-fit:cover; object-position:50% 12%; background:linear-gradient(135deg,#9d8cff,#5B5BF0); flex:0 0 auto; }
.sb-uinfo b{ font-size:13px; display:block; }
.sb-uinfo small{ font-size:11px; color:var(--muted-2); }
.sb-reopen{ display:none; position:fixed; top:80px; left:14px; z-index:45; width:40px; height:40px; border:1px solid var(--line); background:#fff; border-radius:10px; box-shadow:var(--shadow); cursor:pointer; font-size:18px; place-items:center; color:var(--ink); }
body.sb-collapsed .app-sidebar{ display:none!important; }
body.sb-collapsed .app-shell{ grid-template-columns:1fr!important; }
body.sb-collapsed .sb-reopen{ display:grid; }

/* v9：智能体对话界面（仿 JustAI 简洁全屏聊天） */
#agents.jc{ display:flex; flex-direction:column; height:calc(100vh - 150px); padding:16px 24px 18px!important; margin-bottom:0!important; }
.jc-topbar{ display:flex; align-items:center; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--line); flex:0 0 auto; }
.jc-new{ border:1px solid var(--line)!important; background:#fff!important; color:var(--ink)!important; border-radius:9999px!important; padding:8px 16px!important; min-height:auto!important; font-weight:600; cursor:pointer; font-size:13.5px; }
.jc-new:hover{ border-color:#c9c9fb!important; color:var(--accent)!important; }
.jc-agentsel{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); margin:0!important; font-weight:600; }
.jc-agentsel select{ width:auto; min-width:200px; }
.jc-info{ margin-left:auto; max-width:38%; font-size:12px; color:var(--muted-2)!important; background:transparent!important; border:none!important; box-shadow:none!important; padding:0!important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block; }
.jc-messages{ flex:1 1 auto; overflow:auto; padding:22px 0!important; background:transparent!important; border:none!important; box-shadow:none!important; }
.jc-messages .chat-empty{ height:100%; }
.jc-messages .chat-message{ max-width:780px; margin:0 auto 22px!important; width:100%; }
.jc-messages .chat-message.assistant .chat-bubble{ background:transparent!important; border:none!important; padding:0!important; max-width:100%!important; color:var(--ink); font-size:15px; line-height:1.85; }
.jc-messages .chat-message.user .chat-bubble{ background:#f3f4f6!important; color:var(--ink)!important; border:none!important; border-radius:16px!important; padding:12px 16px!important; max-width:80%!important; }
.jc-composer{ flex:0 0 auto; max-width:820px; margin:0 auto!important; width:100%; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:12px 14px; }
.jc-composer textarea{ width:100%; border:none!important; outline:none!important; resize:none; background:transparent!important; font-size:15px; line-height:1.6; min-height:46px; max-height:200px; padding:4px 2px!important; margin:0!important; box-shadow:none!important; }
.jc-bar{ display:flex; align-items:center; gap:10px; margin-top:6px; }
.jc-attach{ width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; cursor:pointer; font-size:15px; color:var(--muted); }
.jc-attach:hover{ border-color:#c9c9fb; color:var(--accent); }
.jc-attachlist{ font-size:12px; color:var(--muted-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jc-send{ margin-left:auto; width:40px; height:40px; min-height:auto!important; border:none!important; background:var(--ink)!important; color:#fff!important; border-radius:50%!important; font-size:18px; cursor:pointer; padding:0!important; }
.jc-send:hover{ background:#000!important; }
@media(max-width:760px){ #agents.jc{ height:calc(100vh - 130px); } .jc-info{ display:none; } .jc-agentsel select{ min-width:130px; } }

/* v11：我的资料 自渲染网格 + 预览弹窗 + 方案生成中浮标 */
.ai-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.ai-card{ position:relative; padding:0!important; border:1px solid var(--line)!important; background:#fff!important; border-radius:12px!important; overflow:hidden; cursor:pointer; min-height:auto!important; text-align:left; display:block; }
.ai-card:hover{ box-shadow:var(--shadow); border-color:#c9c9fb!important; }
.ai-card img{ width:100%; aspect-ratio:1/1; object-fit:cover; display:block; background:#f3f4f6; }
.ai-card.vid{ aspect-ratio:1/1; display:grid; place-items:center; background:linear-gradient(135deg,#1E293B,#475569)!important; color:#fff; }
.ai-card.vid .ai-play{ font-size:26px; width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.9);color:#191919;display:grid;place-items:center; }
.ai-card.vid .ai-vtag{ position:absolute; left:8px; bottom:30px; font-size:11px; background:rgba(0,0,0,.5); padding:2px 8px; border-radius:8px; }
.ai-card span:not(.ai-play):not(.ai-vtag){ display:block; padding:8px 10px; font-size:12px; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ai-card.vid span:not(.ai-play):not(.ai-vtag){ position:absolute; left:0; right:0; bottom:0; background:rgba(0,0,0,.5); color:#fff; }
.ap-card{ display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:10px; box-shadow:var(--shadow); }
.ap-info b{ font-size:14px; display:block; } .ap-info small{ font-size:12px; color:var(--muted-2); }
.ap-dls{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.ap-dl{ font-size:12.5px; color:var(--accent); border:1px solid #c9c9fb; background:var(--soft); border-radius:9999px; padding:6px 12px; text-decoration:none; white-space:nowrap; }
.ap-dl:hover{ background:#e3e3fd; }
.ap-pending{ font-size:12px; color:var(--muted-2); }
.asset-prev-mask{ position:fixed; inset:0; background:rgba(17,17,26,.6); backdrop-filter:blur(3px); display:none; place-items:center; z-index:320; padding:24px; }
.asset-prev-mask.open{ display:grid; }
.asset-prev{ position:relative; background:#fff; border-radius:16px; padding:18px; max-width:90vw; box-shadow:0 30px 80px rgba(0,0,0,.35); display:flex; flex-direction:column; align-items:center; gap:14px; }
.asset-prev-body img,.asset-prev-body video{ max-width:100%; max-height:72vh; border-radius:12px; display:block; }
.asset-prev-close{ position:absolute; top:10px; right:12px; width:32px;height:32px;min-height:auto!important; border:none!important; background:#f3f4f6!important; border-radius:50%!important; font-size:18px; cursor:pointer; color:var(--muted); padding:0!important; z-index:2; }
.asset-prev-dl{ background:var(--ink); color:#fff; border-radius:9999px; padding:10px 24px; text-decoration:none; font-size:14px; font-weight:600; }
.asset-prev-dl:hover{ background:#000; }
.plan-busy{ display:none; position:fixed; right:18px; bottom:18px; z-index:200; align-items:center; gap:6px; background:var(--ink); color:#fff; border:none; border-radius:9999px; padding:11px 18px; font-size:13.5px; font-weight:600; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,.25); }
.plan-busy:hover{ background:#000; }

/* v12：思考动画 + 对话居中 + 视频历史整洁 */
.chat-message.thinking .think-bubble{ display:inline-flex!important; align-items:center; gap:10px; color:var(--muted)!important; background:transparent!important; border:none!important; padding:0!important; }
.think-dots{ display:inline-flex; gap:5px; }
.think-dots i{ width:7px; height:7px; border-radius:50%; background:var(--accent); display:inline-block; animation:thinkblink 1.2s infinite ease-in-out; }
.think-dots i:nth-child(2){ animation-delay:.2s; } .think-dots i:nth-child(3){ animation-delay:.4s; }
@keyframes thinkblink{ 0%,80%,100%{ opacity:.25; transform:translateY(0);} 40%{ opacity:1; transform:translateY(-3px);} }
.think-txt{ font-size:14px; }
.jc-messages{ padding:22px 24px!important; }
.jc-messages .chat-message{ max-width:820px; margin-left:auto!important; margin-right:auto!important; }
.video-history-grid{ grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important; }
.video-history-item{ border-radius:12px!important; min-height:auto!important; padding:12px 14px!important; display:block!important; text-align:left; }
.video-history-item strong{ display:-webkit-box!important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:13px; line-height:1.5; max-height:none!important; }
.video-history-item span{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; font-size:12px; color:var(--muted-2); margin-top:6px; word-break:break-word; }

/* v13：彻底去掉"思考中"气泡的矩形框 */
.jc-messages .chat-message.thinking .chat-bubble,
.chat-message.thinking .think-bubble,
.chat-message.thinking .chat-bubble{ background:transparent!important; border:none!important; box-shadow:none!important; padding:0!important; }

/* v14：去掉智能体对话区外层的大白卡，让对话直接落在页面上 */
#agents.jc{ background:transparent!important; border:none!important; box-shadow:none!important; }
#agents.jc::before{ display:none!important; }

/* v17：智能体消息彻底去掉气泡——用户+助手都只留纯文字，无背景/圆角/阴影/边框 */
.jc-messages .chat-bubble,
.jc-messages .chat-message.user .chat-bubble,
.jc-messages .chat-message.assistant .chat-bubble{
  background:transparent!important;
  border:none!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
  max-width:100%!important;
  color:var(--ink)!important;
}

/* v18：侧栏「历史对话」列表 */
.sidebar-hist{ margin-top:18px; padding-top:14px; border-top:1px solid var(--line, #e5e7eb); }
.sidebar-hist .sh-head{ display:flex; align-items:center; justify-content:space-between; padding:0 4px 8px; }
.sidebar-hist .sh-head span{ font-size:12px; font-weight:600; color:var(--muted, #8a8f99); letter-spacing:.02em; }
.sidebar-hist .sh-list{ max-height:38vh; overflow-y:auto; display:flex; flex-direction:column; gap:4px; }
.sidebar-hist .sh-empty{ font-size:12px; color:var(--muted, #9aa0aa); padding:8px 4px; }
.sidebar-hist .sh-item{
  display:flex; flex-direction:column; gap:2px; width:100%;
  text-align:left; padding:8px 10px; border:1px solid transparent; border-radius:10px;
  background:transparent; cursor:pointer; transition:background .15s,border-color .15s;
}
.sidebar-hist .sh-item:hover{ background:rgba(91,91,240,.07); }
.sidebar-hist .sh-item.active{ background:rgba(91,91,240,.12); border-color:rgba(91,91,240,.35); }
.sidebar-hist .sh-item .sh-t{ font-size:13px; line-height:1.6; color:var(--ink, #191919); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-hist .sh-item .sh-m{ font-size:11px; line-height:1.6; color:var(--muted, #9aa0aa); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* 侧栏收起时隐藏历史区 */
body.sb-collapsed .sidebar-hist{ display:none; }

/* ============ v19：删模型状态后侧栏重排 + 首页隐藏作品流重排 + 手机端优化 ============ */
/* 删掉「模型状态」后：历史区填充剩余空间、底部个人中心卡沉底 */
.sidebar-hist{ flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.sidebar-hist .sh-list{ flex:1 1 auto; min-height:0; max-height:none; overflow-y:auto; }
.sb-user{ margin-top:12px!important; }

/* 首页隐藏「大家都在生成」后：内容居中收敛，避免空旷 */
.home-quick{ max-width:780px; margin-left:auto!important; margin-right:auto!important; }
.home-hero{ padding-top:38px!important; }
.home-panel{ padding-bottom:46px!important; }

/* —— 手机端排版优化 —— */
@media(max-width:760px){
  /* 主体单列：侧栏堆到内容上方 */
  .app-shell{ grid-template-columns:1fr!important; gap:0!important; }
  .app-sidebar{ position:static!important; top:auto!important; min-height:auto!important;
    padding:10px 12px!important; margin-bottom:14px; box-shadow:none!important; }
  .sidebar-logo{ display:none!important; }
  .sb-toggle, .sb-reopen{ display:none!important; }
  /* 导航改横向滚动胶囊条 */
  .app-sidebar .sidebar-nav{ display:flex!important; flex-wrap:nowrap!important; overflow-x:auto;
    gap:8px!important; margin-top:0!important; -webkit-overflow-scrolling:touch; padding-bottom:2px; }
  .app-sidebar .sidebar-nav a{ flex:0 0 auto; white-space:nowrap; min-height:38px; padding:0 16px; border-radius:9999px; }
  /* 历史列表 + 个人中心卡在手机端隐藏，节省空间（个人中心可从导航进入） */
  .sidebar-hist{ display:none!important; }
  .sb-user{ display:none!important; }
  /* 首页与对话区在手机上更紧凑 */
  .home-hero{ padding-top:18px!important; }
  .home-hero h2{ font-size:23px!important; }
  .home-quick{ grid-template-columns:repeat(2,1fr)!important; gap:10px!important; }
  .workspace.app-shell{ padding-top:78px!important; }
  /* 智能体对话在手机端铺满、收发更顺手 */
  #agents.jc{ height:calc(100vh - 150px)!important; }
  .jc-topbar{ flex-wrap:wrap; gap:8px; }
  .jc-messages .chat-message{ max-width:100%!important; }
}

/* ============ v20：侧栏对齐原型设计 + 首页整体放大 ============ */
/* —— 侧栏「＋ 新对话」按钮 —— */
.sb-newchat{ width:100%; margin:16px 0 4px; padding:12px 14px; display:flex; align-items:center; justify-content:center; gap:8px;
  background:var(--ink)!important; color:#fff!important; border:none!important; border-radius:12px!important;
  font-size:14.5px; font-weight:600; cursor:pointer; min-height:auto!important; box-shadow:0 6px 16px rgba(91,91,240,.18); transition:.18s; }
.sb-newchat:hover{ background:#000!important; transform:translateY(-1px); }
/* —— 分组标签 —— */
.sidebar-nav .nav-label{ font-size:11px; color:var(--muted-2,#9aa0aa); letter-spacing:.06em; padding:14px 8px 6px; font-weight:600; }
.sidebar-nav .nav-label:first-child{ padding-top:8px; }
/* —— 扁平导航项（带图标，去掉白盒边框，对齐原型）—— */
.app-sidebar .sidebar-nav{ display:flex!important; flex-direction:column; gap:2px!important; margin-top:4px; }
.app-sidebar .sidebar-nav a{ background:transparent!important; border:1px solid transparent!important; color:var(--text)!important;
  display:flex!important; align-items:center; gap:11px; padding:10px 12px!important; border-radius:11px!important; font-size:14.5px; min-height:auto; }
.app-sidebar .sidebar-nav a .ic{ width:20px; text-align:center; font-size:17px; flex:0 0 auto; opacity:.92; }
.app-sidebar .sidebar-nav a:hover{ background:#fff!important; border-color:transparent!important; color:var(--ink)!important; box-shadow:var(--shadow)!important; }
.app-sidebar .sidebar-nav a.active{ background:#fff!important; border-color:transparent!important; color:var(--ink)!important; font-weight:600; box-shadow:var(--shadow)!important; }
.app-sidebar .sidebar-nav a.active .ic{ color:var(--accent); opacity:1; }
.nav-tag{ margin-left:auto; font-size:10px; background:var(--soft); color:var(--accent); padding:2px 8px; border-radius:9999px; font-weight:700; }
.sidebar-logo{ cursor:pointer; }

/* —— 首页整体放大（对齐 JustAI 舒展排版）—— */
.home-hero{ padding-top:48px!important; }
.home-hero h2{ font-size:42px!important; letter-spacing:-.01em; }
.home-hero p{ font-size:17.5px!important; margin-top:14px!important; }
.home-composer{ max-width:880px!important; padding:18px 20px!important; border-radius:20px!important; }
.home-composer textarea{ font-size:17px!important; min-height:62px!important; line-height:1.7!important; }
.hc-tool{ font-size:13.5px!important; padding:8px 16px!important; }
.home-send{ width:46px!important; height:46px!important; min-height:46px!important; font-size:19px; }
.home-quick{ max-width:880px!important; gap:16px!important; margin-top:26px!important; }
.hq{ padding:24px 16px!important; border-radius:16px!important; }
.hq-i{ font-size:30px!important; margin-bottom:10px!important; }
.hq b{ font-size:16px!important; }
.hq small{ font-size:13px!important; margin-top:5px!important; }

/* —— 手机端：重申横向导航 + 放大适配 —— */
@media(max-width:760px){
  .sb-newchat{ margin:8px 0; }
  .app-sidebar .sidebar-nav{ flex-direction:row!important; flex-wrap:nowrap!important; overflow-x:auto; gap:8px!important; }
  .app-sidebar .sidebar-nav .nav-label{ display:none!important; }
  .app-sidebar .sidebar-nav a{ flex:0 0 auto; white-space:nowrap; border-radius:9999px!important; padding:8px 14px!important; }
  .app-sidebar .sidebar-nav a .ic{ font-size:15px; }
  .nav-tag{ display:none!important; }
  .home-hero h2{ font-size:28px!important; }
  .home-hero p{ font-size:15px!important; }
  .home-composer{ max-width:100%!important; }
  .home-composer textarea{ font-size:16px!important; }
}

/* ============ v21：整体字号上调 + 用户消息恢复气泡 + 消息间距加大 ============ */
/* —— 整体字号上调 —— */
.app-sidebar .sidebar-nav a{ font-size:15.5px!important; }
.sb-newchat{ font-size:15px!important; }
.sidebar-hist .sh-head span{ font-size:12.5px!important; }
.sidebar-hist .sh-item .sh-t{ font-size:14px!important; }
.sidebar-hist .sh-item .sh-m{ font-size:11.5px!important; }
.sb-uinfo b{ font-size:14px!important; } .sb-uinfo small{ font-size:12px!important; }
.jc-composer textarea{ font-size:16.5px!important; line-height:1.7!important; }
.jc-info, .agent-info span{ font-size:14px!important; }
.agent-info strong{ font-size:15.5px!important; }
.atab{ font-size:14.5px!important; }
.tc-body{ font-size:14.5px!important; }
.tc-agent{ font-size:12.5px!important; }
.panel p{ font-size:15px; }
.ag-h{ font-size:16px!important; }
.ag-note{ font-size:14.5px!important; }
.hq small{ font-size:13.5px!important; }
.home-hero p{ font-size:18px!important; }

/* —— 智能体对话：我发的消息恢复气泡背景（助手回复仍为纯文字）—— */
.jc-messages .chat-message.user .chat-bubble{
  background:#eceef2!important; color:var(--ink)!important; border:none!important;
  border-radius:16px!important; padding:12px 16px!important; max-width:80%!important;
  box-shadow:none!important; font-size:16.5px!important; line-height:1.8!important;
}
/* 助手回复纯文字，字号同步放大 */
.jc-messages .chat-message.assistant .chat-bubble{ font-size:16.5px!important; line-height:1.95!important; }

/* —— 我发的消息与系统回复之间间距加大一点点 —— */
.jc-messages .chat-message{ margin-bottom:30px!important; }

/* ============ v22：固定 App 骨架 + 双区独立滚动（登录后·桌面端）============ */
@media(min-width:761px){
  /* 整页不滚动，滚动交给左右两区各自处理 */
  body.is-authenticated{ overflow:hidden!important; }
  /* 工作区改为铺满视口（顶栏下方）的固定骨架，全宽贴边 */
  body.is-authenticated .workspace.app-shell{
    position:fixed!important; top:0!important; left:0!important; right:0!important; bottom:0!important;
    width:auto!important; max-width:none!important; margin:0!important; padding:0!important;
    grid-template-columns:300px minmax(0,1fr)!important; gap:0!important;
    align-items:stretch!important; overflow:hidden!important;
  }
  body.is-authenticated.sb-collapsed .workspace.app-shell{ grid-template-columns:1fr!important; }
  /* 侧栏：铺满高度、贴左边、与顶栏衔接；去掉白卡（边框/圆角/阴影/悬浮感），仅留右侧分隔线 */
  body.is-authenticated .app-sidebar{
    position:static!important; top:auto!important; height:100%!important; min-height:0!important;
    margin:0!important; border:none!important; border-right:1px solid var(--line)!important;
    border-radius:0!important; box-shadow:none!important; background:#fff!important;
    display:flex!important; flex-direction:column; overflow:hidden!important; padding:16px 14px!important;
  }
  /* 侧栏内部：历史对话列表独立滚动，Logo/新对话/菜单/个人中心卡固定不动 */
  body.is-authenticated .sidebar-hist{ flex:1 1 auto!important; min-height:0!important; display:flex; flex-direction:column; }
  body.is-authenticated .sidebar-hist .sh-list{ flex:1 1 auto!important; min-height:0!important; max-height:none!important; overflow-y:auto!important; }
  /* 右侧主内容区：独立滚动，不带动整页 */
  body.is-authenticated .app-content{
    height:100%!important; min-height:0!important; overflow-y:auto!important;
    box-sizing:border-box!important; padding:26px 30px 48px!important;
  }
  /* 智能体对话面板填满主内容区，消息区内部滚动（避免内外双滚动） */
  body.is-authenticated #agents.jc{ height:100%!important; }

  /* 首页内容垂直居中、整体下移（顶栏移除后不再贴顶；内容超高则自动从顶部开始可滚动） */
  body.is-authenticated #home.home-panel{
    min-height:100%!important; display:flex; flex-direction:column;
    justify-content:safe center; padding-top:24px!important; padding-bottom:40px!important;
  }

  /* —— 去掉顶部整条导航条，只保留右上角用户信息 —— */
  body.is-authenticated .site-header{
    background:transparent!important; border:none!important; box-shadow:none!important;
    backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
    pointer-events:none!important; height:auto!important; padding:14px 24px!important; z-index:60!important;
  }
  body.is-authenticated .site-header .brand,
  body.is-authenticated .site-header .top-search{ display:none!important; }
  body.is-authenticated .site-header #userBar{
    pointer-events:auto!important; grid-column:1 / -1!important; justify-self:end!important;
    background:#fff!important; border:1px solid var(--line)!important; border-radius:9999px!important;
    box-shadow:var(--shadow)!important; padding:7px 16px!important;
  }
}

/* v23：修历史对话项被裁切——列表项保持原高不被压缩，超出则滚动 */
.sidebar-hist .sh-list{ overflow-y:auto; }
.sidebar-hist .sh-item{ flex:0 0 auto!important; }

/* ============ v24：全局 hover 微交互动效（鼠标移到哪，哪就有反馈）============ */
/* 统一过渡曲线 */
.hq, .fcard, .hc-tool, .atab, .sb-newchat, .tcard, .sh-item,
.app-sidebar .sidebar-nav a, .home-send, .jc-send, .jc-attach, .nav-tag,
.image-history-item, .video-history-item, .source-card, .feature-card,
.sb-user, .emoji-pick span, .primary-button, .text-button, .tc-copy{
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease !important;
}
/* 卡片：悬停上浮 + 阴影加深 */
.hq:hover, .fcard:hover, .tcard:hover, .feature-card:hover, .source-card:hover{
  transform:translateY(-3px)!important; box-shadow:0 12px 30px rgba(17,17,26,.10)!important;
}
.hq-i{ display:inline-block; transition:transform .18s ease; }
.hq:hover .hq-i{ transform:scale(1.14); }
/* 侧栏菜单项：悬停轻移 + 图标放大 */
.app-sidebar .sidebar-nav a:hover{ transform:translateX(2px); }
.app-sidebar .sidebar-nav a .ic{ transition:transform .18s ease; }
.app-sidebar .sidebar-nav a:hover .ic{ transform:scale(1.18); }
/* 历史对话项：悬停轻移 */
.sidebar-hist .sh-item:hover{ transform:translateX(3px); }
/* 工具胶囊 / 标签页：悬停上抬 */
.hc-tool:hover, .atab:hover, .tc-copy:hover{ transform:translateY(-1px); }
/* 发送按钮：悬停放大 */
.home-send:hover, .jc-send:hover{ transform:scale(1.1)!important; box-shadow:0 8px 20px rgba(91,91,240,.28)!important; }
/* 个人中心卡 / 新对话 / 主按钮：悬停上抬 */
.sb-user:hover, .sb-newchat:hover, .primary-button:hover{ transform:translateY(-1px); }
.sb-user:hover{ box-shadow:0 8px 22px rgba(17,17,26,.10); }
/* 图片 / 视频历史缩略：悬停放大 */
.image-history-item:hover, .video-history-item:hover{ transform:scale(1.03); box-shadow:0 10px 26px rgba(17,17,26,.12); z-index:1; }
/* emoji 选择：悬停放大 */
.emoji-pick span:hover{ transform:scale(1.12); }
/* 右上角用户药丸：悬停上抬 */
body.is-authenticated .site-header #userBar{ transition:transform .18s ease, box-shadow .18s ease; }
body.is-authenticated .site-header #userBar:hover{ transform:translateY(-1px); box-shadow:0 8px 22px rgba(17,17,26,.12)!important; }
/* 输入框聚焦时高亮边框 */
.home-composer:focus-within, .jc-composer:focus-within{ border-color:#c9c9fb!important; box-shadow:0 0 0 3px rgba(91,91,240,.10)!important; }

/* ============ v25：首页中间区留白更舒展（极简风不变，只调间距与留白）============ */
/* 头像 ↔ 标题 */
.home-ava{ margin:0 auto 22px!important; }
.home-hero{ padding-bottom:0!important; }
.home-hero h2{ margin:0 0 4px!important; }
/* 标题 ↔ 引导文字 */
.home-hero p{ margin-top:20px!important; line-height:1.7; }
/* 引导文字/标题 ↔ 输入框（更大垂直间距）+ 输入框内边距更宽松 */
.home-composer{ margin-top:44px!important; padding:22px 24px!important; border-radius:22px!important; }
/* 输入框文字 ↔ 工具行 */
.home-composer .hc-tools{ margin-top:18px!important; gap:12px!important; }
/* 输入框 ↔ 快捷卡片 + 卡片之间水平/垂直间距加大 */
.home-quick{ margin-top:44px!important; gap:24px!important; }
/* 卡片内边距更宽松 */
.hq{ padding:30px 18px!important; }
.hq-i{ margin-bottom:14px!important; }

/* ============ v26：输入框放大约一倍，其余同比例放大（仅桌面端）============ */
@media(min-width:761px){
  /* 头像 */
  .home-ava{ width:104px!important; height:104px!important; margin:0 auto 30px!important; }
  /* 标题 + 引导文字 */
  .home-hero h2{ font-size:54px!important; }
  .home-hero p{ font-size:22px!important; margin-top:26px!important; }
  /* 输入框：撑满容器变长条（width:100% 才会变宽，单靠 max-width 会被 auto 边距收缩成内容宽）；上限 1440 居中 */
  .home-composer{ width:100%!important; max-width:1080px!important; margin-left:auto!important; margin-right:auto!important;
    padding:24px 36px!important; border-radius:24px!important; margin-top:54px!important; }
  .home-composer textarea{ font-size:22px!important; min-height:64px!important; line-height:1.6!important; }
  .home-composer .hc-tools{ margin-top:24px!important; gap:14px!important; }
  .hc-tool{ font-size:16px!important; padding:12px 22px!important; }
  .home-send{ width:62px!important; height:62px!important; min-height:62px!important; font-size:25px!important; }
  /* 快捷卡片：撑满并对齐到与输入框同宽（1440） */
  .home-quick{ width:100%!important; max-width:1080px!important; margin:54px auto 0!important; gap:30px!important; }
  .hq{ padding:42px 24px!important; }
  .hq-i{ font-size:44px!important; margin-bottom:18px!important; }
  .hq b{ font-size:21px!important; }
  .hq small{ font-size:15px!important; margin-top:8px!important; }
}

/* ============ v27：主页「Hi，欢迎回来」进入动效（每次回到主页重新触发）============ */
@keyframes fxWelcomeIn{
  0%{ opacity:0; transform:translateY(20px); filter:blur(8px); }
  100%{ opacity:1; transform:translateY(0); filter:blur(0); }
}
.home-hero.fx-welcome .home-ava{ animation:fxWelcomeIn .6s cubic-bezier(.2,.7,.2,1) both; }
.home-hero.fx-welcome h2{ animation:fxWelcomeIn .7s cubic-bezier(.2,.7,.2,1) .12s both; }
.home-hero.fx-welcome p{ animation:fxWelcomeIn .7s cubic-bezier(.2,.7,.2,1) .26s both; }
@media(prefers-reduced-motion:reduce){
  .home-hero.fx-welcome .home-ava,
  .home-hero.fx-welcome h2,
  .home-hero.fx-welcome p{ animation:none!important; }
}

/* ============ v32：整体再缩小 + 中等宽度/缩放适配 + 收起彻底隐藏 ============ */
@media(min-width:761px){
  /* 【修复】收起侧栏时彻底隐藏（之前被 is-authenticated 的 display:flex 盖住，导致菜单跑到顶部）*/
  body.is-authenticated.sb-collapsed .app-sidebar{ display:none!important; }
  body.is-authenticated.sb-collapsed .workspace.app-shell{ grid-template-columns:1fr!important; }

  /* 首页整体再缩小一点 */
  .home-ava{ width:84px!important; height:84px!important; margin:0 auto 20px!important; }
  .home-hero h2{ font-size:40px!important; }
  .home-hero p{ font-size:17px!important; margin-top:18px!important; }
  .home-composer{ max-width:960px!important; padding:20px 28px!important; margin-top:40px!important; border-radius:22px!important; }
  .home-composer textarea{ font-size:18px!important; min-height:58px!important; }
  .home-composer .hc-tools{ margin-top:16px!important; gap:12px!important; }
  .hc-tool{ font-size:14px!important; padding:9px 16px!important; }
  .home-send{ width:52px!important; height:52px!important; min-height:52px!important; font-size:21px!important; }
  .home-quick{ max-width:960px!important; margin-top:40px!important; gap:22px!important; }
  .hq{ padding:30px 18px!important; }
  .hq-i{ font-size:36px!important; margin-bottom:14px!important; }
  .hq b{ font-size:18px!important; }
  .hq small{ font-size:13px!important; }
}

/* 中等宽度（含浏览器放大/小窗）：侧栏收窄 + 内容随容器自适应，避免挤在一起 */
@media(min-width:761px) and (max-width:1240px){
  body.is-authenticated .workspace.app-shell{ grid-template-columns:240px minmax(0,1fr)!important; }
  body.is-authenticated .app-content{ padding:22px 22px 40px!important; }
  .home-hero h2{ font-size:34px!important; }
  .home-hero p{ font-size:16px!important; }
  .home-composer{ max-width:100%!important; padding:18px 22px!important; }
  .home-quick{ max-width:100%!important; gap:16px!important; }
  .hq{ padding:22px 14px!important; }
}
/* 较窄桌面窗口：快捷卡片两列，避免四列挤压 */
@media(min-width:761px) and (max-width:1040px){
  .home-quick{ grid-template-columns:repeat(2,1fr)!important; }
}

/* ============ v33：对话框右下角「换模型」选择器（仿 GPT/Claude）============ */
.jc-model{
  margin-left:auto; max-width:220px; font-size:13px; font-weight:600; color:var(--ink);
  background:#f5f6f8; border:1px solid var(--line); border-radius:9999px;
  padding:8px 14px; cursor:pointer; min-height:auto; outline:none; box-shadow:none;
  transition:background-color .18s, border-color .18s, box-shadow .18s;
}
.jc-model:hover{ border-color:#c9c9fb; background:#fff; box-shadow:var(--shadow); }
.jc-model:focus{ border-color:var(--accent); }
/* 选择器与发送键成组靠右（发送键紧跟选择器，不再单独 auto 撑开）*/
.jc-bar .jc-send{ margin-left:8px!important; }
@media(max-width:760px){
  .jc-attachlist{ display:none!important; }
  .jc-model{ max-width:160px; font-size:12px; padding:7px 10px; }
}

/* ============ v34：生图页「模型」选择器整行 + 参考图禁用态 ============ */
.img-model-row{ display:block; margin:4px 0 14px; font-size:13px; color:var(--muted); font-weight:600; }
.img-model-row select{ display:block; width:100%; margin-top:6px; }
/* 参考图/比例：不支持时灰掉 + 提示 */
#imageReferenceRow.disabled, #videoAspectRow.disabled{ opacity:.5; }
#imageReferenceRow.disabled input, #videoAspectRow.disabled select{ cursor:not-allowed; pointer-events:none; }
.ref-hint{ display:block; margin-top:6px; font-size:12px; color:#c2410c; font-weight:400; line-height:1.5; }

/* ===== AI 生成方案二（plan2）===== */
#plan2 .style-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:6px 0 4px;}
#plan2 .style-card{display:flex;flex-direction:row;align-items:center;gap:14px;text-align:left;padding:0;border:none;background:transparent;cursor:pointer;transition:.18s;}
#plan2 .sc-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;}
#plan2 .style-card b{font-size:15px;color:#2f2f2c;}
#plan2 .style-card:hover b{color:#b4804c;}
#plan2 .style-card.active b{color:#b4804c;}
#plan2 .style-card small{font-size:12px;line-height:1.55;color:#7a766c;}
#plan2 .sc-swatch{width:100%;height:34px;border-radius:8px;border:1px solid rgba(0,0,0,.05);}
#plan2 .sc-a{background:linear-gradient(120deg,#f7f5ef 0 55%,#c8a766 55% 78%,#b99463 78%);}
#plan2 .sc-b{background:linear-gradient(120deg,#f2f1ef 0 50%,#9ba79a 50% 75%,#8c9ba6 75%);}
#plan2 .sc-c{background:linear-gradient(120deg,#1e1b17 0 55%,#d4af6a 55% 80%,#262019 80%);}
#plan2 .sc-d{background:linear-gradient(120deg,#efe9dd 0 50%,#c8a878 50% 76%,#9caa8c 76%);}
#plan2 .sc-e{background:linear-gradient(120deg,#fafafa 0 50%,#141414 50% 80%,#ff5a2c 80%);}
#plan2 .sc-f{background:linear-gradient(120deg,#f3eee4 0 52%,#4c5a57 52% 78%,#a6794e 78%);}
#plan2 .sc-g{background:linear-gradient(120deg,#f6efe6 0 52%,#c9a06a 52% 78%,#d8b7a6 78%);}
#plan2 .sc-thumb-wrap{position:relative;display:block;flex:0 0 auto;width:210px;max-width:50%;border-radius:10px;overflow:hidden;border:none;}
#plan2 .sc-thumb{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:#eee;transition:transform .28s ease;}
#plan2 .sc-thumb-wrap:hover .sc-thumb{transform:scale(1.14);}
#plan2 .style-card.active .sc-thumb-wrap{outline:2.5px solid #b4804c;outline-offset:2px;}
#plan2 .sc-zoom{position:absolute;right:5px;bottom:5px;background:rgba(0,0,0,.6);color:#fff;font-size:10px;line-height:1;padding:3px 7px;border-radius:6px;cursor:zoom-in;opacity:.9;}
#plan2 .sc-zoom:hover{background:rgba(0,0,0,.82);}
#plan2 .page-pick{display:flex;gap:12px;margin:6px 0 4px;}
#plan2 .page-opt{padding:10px 22px;border:1.5px solid var(--line,#e6e3dc);border-radius:12px;background:#fff;cursor:pointer;font-size:14px;color:#2f2f2c;transition:.18s;}
#plan2 .page-opt:hover{border-color:#c8a766;}
#plan2 .page-opt.active{border-color:#b4804c;background:#fbf7f0;font-weight:600;}
#plan2 .board-wrap{min-height:160px;display:flex;align-items:center;justify-content:center;border:1px dashed #d9d7d0;border-radius:14px;padding:12px;background:#faf9f6;}
#plan2 .board-wrap img{max-width:100%;border-radius:10px;box-shadow:0 6px 24px rgba(0,0,0,.1);}
#plan2 .board-empty{color:#9a958b;font-size:13px;}
#plan2 .board-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap;}
@media (max-width:760px){#plan2 .style-cards{grid-template-columns:1fr;}}

/* ============ v37：手机端整体优化（最终覆盖层，仅 ≤760，桌面零影响）============ */
@media(max-width:760px){
  /* —— 顶栏：紧凑 app-bar，品牌 + 用户名(点进个人中心) + 退出 —— */
  .site-header{ height:auto!important; min-height:52px; padding:8px 14px!important; background:#fff!important;
    border-bottom:1px solid var(--line)!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
    box-shadow:none!important; grid-template-columns:1fr auto!important; }
  .site-header .brand{ display:flex!important; }
  .site-header .brand small{ display:none!important; }
  .top-search{ display:none!important; }
  .site-header .user-bar span{ display:inline!important; }   /* 用户名露出，点它进个人中心 */

  /* —— 工作区：常规文档流、整页滚动（不固定骨架）—— */
  body.is-authenticated{ overflow:auto!important; }
  .workspace.app-shell{ position:static!important; display:block!important; width:100%!important; max-width:none!important;
    margin:0!important; padding:8px 0 36px!important; overflow:visible!important; height:auto!important; }

  /* —— 侧栏：顶部一块（新对话 + 横向滚动菜单）—— */
  .app-sidebar{ position:static!important; height:auto!important; min-height:0!important; border:none!important;
    border-bottom:1px solid var(--line)!important; border-radius:0!important; box-shadow:none!important;
    background:transparent!important; display:block!important; padding:6px 12px 10px!important; margin:0 0 6px!important; }
  .sidebar-logo,.sb-toggle,.sb-reopen,.sidebar-hist{ display:none!important; }
  .sb-newchat{ width:100%!important; margin:4px 0 10px!important; }
  .app-sidebar .sidebar-nav{ display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important;
    overflow-x:auto!important; gap:8px!important; margin:0!important; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
  .app-sidebar .sidebar-nav .nav-label{ display:none!important; }
  .app-sidebar .sidebar-nav a{ flex:0 0 auto!important; white-space:nowrap; padding:8px 14px!important; min-height:auto;
    border-radius:9999px!important; background:#fff!important; border:1px solid var(--line)!important; box-shadow:none!important; font-size:13.5px; }
  .app-sidebar .sidebar-nav a:hover{ transform:none!important; }
  .app-sidebar .sidebar-nav a.active{ background:var(--ink)!important; color:#fff!important; }
  .app-sidebar .sidebar-nav a.active .ic{ color:#fff!important; }
  .nav-tag{ display:none!important; }
  /* 个人中心：底部用户卡保留为入口 */
  .sb-user{ display:flex!important; margin:10px 0 0!important; }

  /* —— 主内容区：常规滚动 + 舒适内边距 —— */
  .app-content{ height:auto!important; overflow:visible!important; padding:2px 14px 24px!important; }

  /* —— 首页：紧凑居中（覆盖之前所有放大规则）；display 不加 !important，避免盖掉路由切换的 display:none —— */
  #home.home-panel{ display:block; min-height:0!important; padding:6px 0 28px!important; }
  .home-ava{ width:64px!important; height:64px!important; margin:6px auto 14px!important; }
  .home-hero{ padding-top:6px!important; }
  .home-hero h2{ font-size:25px!important; }
  .home-hero p{ font-size:14px!important; margin-top:10px!important; }
  .home-composer{ width:100%!important; max-width:100%!important; margin:20px auto 0!important; padding:14px!important; border-radius:16px!important; }
  .home-composer textarea{ font-size:15px!important; min-height:54px!important; }
  .hc-tool{ font-size:12.5px!important; padding:7px 12px!important; }
  .home-send{ width:42px!important; height:42px!important; min-height:42px!important; font-size:18px!important; }
  .home-quick{ width:100%!important; max-width:100%!important; grid-template-columns:repeat(2,1fr)!important; gap:10px!important; margin-top:20px!important; }
  .hq{ padding:18px 12px!important; border-radius:14px!important; }
  .hq-i{ font-size:26px!important; margin-bottom:8px!important; }
  .hq b{ font-size:14px!important; }
  .hq small{ font-size:12px!important; }

  /* —— 生图/生视频：左右分栏改上下堆叠；参数四列改两列 —— */
  .image-tool-layout, .video-tool-layout{ grid-template-columns:1fr!important; gap:14px!important; }
  .form-grid.two, .form-grid.four, .compact-grid{ grid-template-columns:1fr 1fr!important; gap:10px!important; }

  /* —— 智能体对话：占满、消息全宽、底栏可换行 —— */
  #agents.jc{ height:calc(100vh - 210px)!important; min-height:380px; padding:6px 2px 8px!important; }
  .jc-topbar{ flex-wrap:wrap; gap:6px; }
  .jc-info{ display:none!important; }
  .jc-messages .chat-message{ max-width:100%!important; }
  .jc-bar{ flex-wrap:wrap; }
  .jc-model{ max-width:150px; font-size:12px; }
}

/* ============ v39：定制技能资料库徽标 ============ */
.kb-badge{ display:inline-block; margin-left:8px; font-size:12px; font-weight:600;
  color:var(--accent); background:var(--soft); padding:2px 9px; border-radius:9999px; vertical-align:middle; }

/* ===== 新媒体获客团队 · 引导式流程 ===== */
.newmedia-panel .nm-steps{
  display:flex; align-items:center; gap:10px; margin:18px 0 22px; flex-wrap:wrap;
}
.newmedia-panel .nm-step{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:10px 16px; border:1px solid var(--line); border-radius:14px;
  background:var(--surface); color:var(--muted); min-width:116px; transition:.2s;
}
.newmedia-panel .nm-step b{ color:var(--text); font-size:14px; }
.newmedia-panel .nm-step small{ font-size:11px; color:var(--muted-2); }
.newmedia-panel .nm-num{
  width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--bg-2); color:var(--muted); font-size:13px; font-weight:700; margin-bottom:2px;
  border:1px solid var(--line);
}
.newmedia-panel .nm-step.is-active{ border-color:var(--line-strong); box-shadow:var(--glow); }
.newmedia-panel .nm-step.is-active .nm-num{ background:var(--blue); color:#1a1404; border-color:var(--blue); }
.newmedia-panel .nm-step.is-done .nm-num{ background:var(--green); color:#06281a; border-color:var(--green); }
.newmedia-panel .nm-step.is-done .nm-num::after{ content:"✓"; }
.newmedia-panel .nm-step.is-done .nm-num{ font-size:0; }
.newmedia-panel .nm-step.is-done .nm-num::after{ font-size:14px; }
.newmedia-panel .nm-line{ flex:1; height:2px; min-width:24px; background:var(--line); border-radius:2px; }

.newmedia-panel .nm-card{
  border:1px solid var(--line); border-radius:18px; background:var(--surface);
  padding:20px 22px; margin-top:4px;
}
.newmedia-panel .nm-status{ font-size:14px; color:var(--text); margin-bottom:14px; line-height:1.7; }
.newmedia-panel .nm-tip{ font-size:13px; color:var(--muted); line-height:1.7; margin:0 0 12px; }
.newmedia-panel .nm-label{ display:block; font-size:13px; color:var(--muted); margin-bottom:14px; }
.newmedia-panel .nm-label textarea,
.newmedia-panel .nm-label input{
  width:100%; margin-top:7px; padding:11px 13px; border-radius:12px;
  border:1px solid var(--line); background:var(--surface-deep); color:var(--text);
  font-size:14px; font-family:inherit; line-height:1.7; resize:vertical;
}
.newmedia-panel .nm-form{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:720px){ .newmedia-panel .nm-form{ grid-template-columns:1fr; } }
.newmedia-panel .nm-actions{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:8px; }

/* 传记访谈迷你聊天 */
.newmedia-panel .nm-msgs{
  max-height:340px; overflow-y:auto; border:1px solid var(--line); border-radius:14px;
  background:var(--surface-deep); padding:14px; margin-bottom:12px; min-height:80px;
}
.newmedia-panel .nm-msg{ display:flex; margin-bottom:10px; }
.newmedia-panel .nm-msg.user{ justify-content:flex-end; }
.newmedia-panel .nm-bubble{
  max-width:80%; padding:10px 14px; border-radius:14px; font-size:14px; line-height:1.7;
  background:var(--surface-strong); color:var(--text); border:1px solid var(--line);
}
.newmedia-panel .nm-msg.user .nm-bubble{ background:var(--blue); color:#1a1404; border-color:var(--blue); }
.newmedia-panel .nm-msg.thinking .nm-bubble{ color:var(--muted); font-style:italic; }
.newmedia-panel .nm-composer{ display:flex; gap:10px; align-items:flex-end; }
.newmedia-panel .nm-composer textarea{
  flex:1; padding:11px 13px; border-radius:12px; border:1px solid var(--line);
  background:var(--surface-deep); color:var(--text); font-size:14px; font-family:inherit;
  line-height:1.6; resize:vertical;
}
.newmedia-panel .nm-send{
  padding:11px 20px; border-radius:12px; border:none; cursor:pointer; white-space:nowrap;
  background:var(--blue); color:#1a1404; font-weight:600; font-size:14px;
}
.newmedia-panel .nm-send:disabled{ opacity:.5; cursor:not-allowed; }

/* 结果区 */
.newmedia-panel .nm-progress{ margin:14px 0 6px; }
.newmedia-panel .nm-result{ margin-top:16px; border-top:1px solid var(--line); padding-top:16px; }
.newmedia-panel .nm-result-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; flex-wrap:wrap; gap:8px; }
.newmedia-panel .nm-result-head b{ font-size:15px; color:var(--text); }
.newmedia-panel .nm-result-acts{ display:flex; gap:8px; }
.newmedia-panel .nm-copy,.newmedia-panel .nm-dl{
  padding:5px 12px; border-radius:9px; border:1px solid var(--line); cursor:pointer;
  background:var(--surface); color:var(--muted); font-size:12px;
}
.newmedia-panel .nm-copy:hover,.newmedia-panel .nm-dl:hover{ color:var(--text); border-color:var(--line-strong); }
.newmedia-panel .nm-md{
  border:1px solid var(--line); border-radius:14px; background:var(--surface-deep);
  padding:18px 20px; font-size:14px; line-height:1.85; color:var(--text);
  max-height:560px; overflow-y:auto;
}
.newmedia-panel .nm-md h3{ font-size:16px; margin:18px 0 8px; color:var(--blue-bright); }
.newmedia-panel .nm-md h4{ font-size:14px; margin:14px 0 6px; color:var(--text); }
.newmedia-panel .nm-done{ font-size:13px; color:var(--green); }

/* ===== 新媒体获客 · 第一步三来源（调取/上传/新建） ===== */
.newmedia-panel .nm-sources{ display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.newmedia-panel .nm-src-card{
  display:flex; align-items:center; gap:14px; padding:12px 14px;
  border:1px solid var(--line); border-radius:14px; background:var(--surface-deep);
}
.newmedia-panel .nm-src-info{ flex:1; min-width:0; }
.newmedia-panel .nm-src-meta{ display:flex; gap:8px; align-items:center; margin-bottom:4px; }
.newmedia-panel .nm-src-tag{
  font-size:11px; padding:2px 8px; border-radius:6px;
  background:var(--blue); color:#1a1404; font-weight:600;
}
.newmedia-panel .nm-src-time{ font-size:11px; color:var(--muted-2); }
.newmedia-panel .nm-src-prev{ font-size:13px; color:var(--muted); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.newmedia-panel .nm-src-use{ flex:none; white-space:nowrap; padding:8px 16px; font-size:13px; }
.newmedia-panel .nm-source-tabs{ display:flex; gap:12px; flex-wrap:wrap; margin:6px 0 4px; }
.newmedia-panel .nm-sub{ margin-top:14px; border-top:1px solid var(--line); padding-top:16px; }
.newmedia-panel .nm-filebtn{
  display:inline-block; padding:9px 16px; border-radius:11px; cursor:pointer;
  border:1px dashed var(--line-strong); background:var(--surface); color:var(--text); font-size:13px;
}
.newmedia-panel .nm-filebtn:hover{ background:var(--surface-strong); }
.newmedia-panel .nm-filehint{ font-size:12px; color:var(--muted); margin-left:10px; }

/* ===== 新媒体获客 · Step4 分支（直播/投流） ===== */
.newmedia-panel .nm-branch-tabs{ display:flex; gap:10px; margin:10px 0 16px; flex-wrap:wrap; }
.newmedia-panel .nm-branch-tab{
  padding:9px 18px; border-radius:11px; border:1px solid var(--line); cursor:pointer;
  background:var(--surface); color:var(--muted); font-size:14px;
}
.newmedia-panel .nm-branch-tab.is-active{ background:var(--blue); color:#1a1404; border-color:var(--blue); font-weight:600; }

/* ===== GEO 品宣代发 ===== */
.geo-panel .geo-publish{ margin-top:18px; border-top:1px solid var(--line); padding-top:16px; }
.geo-panel .geo-pub-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.geo-panel .geo-pub-head b{ font-size:15px; color:var(--text); }
.geo-panel .geo-balance{ font-size:13px; color:var(--muted); }
.geo-panel .geo-balance b{ color:var(--blue-bright); font-size:15px; }
.geo-panel .geo-plats{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.geo-panel .geo-plat{
  display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:11px;
  border:1px solid var(--line); background:var(--surface-deep); color:var(--text); font-size:14px; cursor:pointer;
}
.geo-panel .geo-plat:hover{ border-color:var(--line-strong); }
.geo-panel .geo-pub-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.geo-panel .geo-orders{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.geo-panel .geo-order{ display:flex; align-items:center; gap:12px; padding:11px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-deep); }
.geo-panel .geo-o-info{ flex:1; min-width:0; }
.geo-panel .geo-o-info b{ font-size:14px; color:var(--text); display:block; }
.geo-panel .geo-o-info small{ font-size:12px; color:var(--muted); }
.geo-panel .geo-st{ flex:none; font-size:11px; padding:3px 9px; border-radius:6px; font-weight:600; }
.geo-panel .geo-st.pending{ background:var(--orange); color:#3a2a00; }
.geo-panel .geo-st.done{ background:var(--green); color:#06281a; }
.geo-panel .geo-done-btn{ flex:none; padding:6px 12px; border-radius:9px; border:1px solid var(--line-strong); background:var(--surface); color:var(--text); font-size:12px; cursor:pointer; }
.geo-panel .geo-admin-grant{ display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; margin-bottom:14px; }
.geo-panel .geo-admin-grant .nm-label{ margin-bottom:0; }

/* ============ v40：会员页改价·活动横幅·原价划线·卡片hover动效 ============ */
.vip-promo{ text-align:center; margin:0 auto 20px; max-width:760px; background:linear-gradient(135deg,#FFF3E0,#FFE0E0);
  color:#c2410c; border:1px solid #ffd9b3; border-radius:14px; padding:12px 18px; font-weight:700; font-size:14.5px; }
.vorig{ font-size:13px!important; color:var(--muted-2)!important; text-decoration:line-through; margin-left:6px; font-weight:600; }
.vip-foot{ text-align:center; color:var(--muted); font-size:13px; margin:18px auto 0; max-width:760px; line-height:1.7; }
/* 会员卡 hover 动效 */
.vplan{ transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.vplan:hover{ transform:translateY(-4px); box-shadow:0 16px 40px rgba(17,17,26,.12); border-color:#c9c9fb; }
.vplan.pop:hover{ box-shadow:0 18px 48px rgba(91,91,240,.24); }
.vplan .vtag2{ transition:transform .18s ease; }
.vplan:hover .vtag2{ transform:translateX(-50%) translateY(-2px); }
.vip-cta{ transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.vip-cta:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(91,91,240,.22); }
.vplan:hover .vprice b{ color:var(--accent); transition:color .18s ease; }
.vip-promo{ animation:fxPromoPulse 2.4s ease-in-out infinite; }
@keyframes fxPromoPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(194,65,12,.0);} 50%{ box-shadow:0 0 0 4px rgba(255,170,90,.18);} }
@media(prefers-reduced-motion:reduce){ .vip-promo{ animation:none; } }

/* ===== 小红书图文 ===== */
.xhs-panel .xhs-floor-prev{margin:8px 0 4px;}
.xhs-panel .xhs-floor-prev img{max-width:240px;max-height:180px;border-radius:10px;border:1px solid var(--line);display:block;}
.xhs-panel .xhs-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:6px;}
.xhs-panel .xhs-img-cell{position:relative;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--surface-deep);cursor:zoom-in;}
.xhs-panel .xhs-img-cell img{width:100%;display:block;}
.xhs-panel .xhs-img-tag{position:absolute;left:6px;top:6px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;padding:2px 8px;border-radius:6px;}

/* ===== 智能报价 ===== */
.quote-panel .qt-tabs{display:flex;gap:10px;margin-bottom:16px;}
.quote-panel .qt-tab{padding:8px 18px;border-radius:11px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:14px;cursor:pointer;}
.quote-panel .qt-tab.is-active{background:var(--blue);color:#1a1404;border-color:var(--blue);font-weight:600;}
.quote-panel .qt-search,.quote-panel .qt-cust{width:100%;padding:10px 13px;border-radius:11px;border:1px solid var(--line);background:var(--surface-deep);color:var(--text);font-size:14px;}
.quote-panel .qt-cust{max-width:280px;}
.quote-panel .qt-prod-list{display:flex;flex-direction:column;gap:8px;max-height:240px;overflow-y:auto;margin:10px 0;}
.quote-panel .qt-prod,.quote-panel .qt-lib-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-deep);}
.quote-panel .qt-prod-img{flex:none;width:46px;height:46px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--surface);}
.quote-panel .qt-prod-img img{width:100%;height:100%;object-fit:cover;}
.quote-panel .qt-noimg{font-size:10px;color:var(--muted-2);}
.quote-panel .qt-prod-info{flex:1;min-width:0;display:flex;flex-direction:column;}
.quote-panel .qt-prod-info b{font-size:14px;color:var(--text);}
.quote-panel .qt-prod-info small{font-size:12px;color:var(--muted);}
.quote-panel .qt-add-btn,.quote-panel .qt-edit,.quote-panel .qt-pdel{flex:none;padding:6px 12px;border-radius:9px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font-size:12px;cursor:pointer;}
.quote-panel .qt-add-btn{background:var(--blue);color:#1a1404;border-color:var(--blue);}
.quote-panel .qt-items-head{display:flex;align-items:center;gap:10px;margin:16px 0 8px;}
.quote-panel .qt-room{margin-bottom:12px;}
.quote-panel .qt-room-h{font-size:13px;color:var(--blue-bright);font-weight:600;margin:6px 0;}
.quote-panel .qt-item{display:flex;align-items:center;gap:10px;padding:7px 10px;border-bottom:1px solid var(--line);flex-wrap:wrap;}
.quote-panel .qt-item-img{flex:none;width:40px;height:40px;border-radius:6px;object-fit:cover;display:flex;align-items:center;justify-content:center;background:var(--surface);}
.quote-panel .qt-item-name{flex:1;min-width:120px;display:flex;flex-direction:column;}
.quote-panel .qt-item-name b{font-size:13px;color:var(--text);}
.quote-panel .qt-item-name small{font-size:11px;color:var(--muted);}
.quote-panel .qt-room-sel{padding:5px 8px;border-radius:8px;border:1px solid var(--line);background:var(--surface-deep);color:var(--text);font-size:12px;}
.quote-panel .qt-qty{width:60px;padding:5px 8px;border-radius:8px;border:1px solid var(--line);background:var(--surface-deep);color:var(--text);font-size:13px;text-align:center;}
.quote-panel .qt-unit{font-size:12px;color:var(--muted);}
.quote-panel .qt-price{font-size:12px;color:var(--muted);min-width:54px;text-align:right;}
.quote-panel .qt-sub{font-size:13px;color:var(--text);font-weight:600;min-width:64px;text-align:right;}
.quote-panel .qt-del{flex:none;width:26px;height:26px;border-radius:7px;border:1px solid var(--line);background:var(--surface);color:var(--red);cursor:pointer;}
.quote-panel .qt-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:14px 0;padding:12px 0;border-top:1px solid var(--line);}
.quote-panel .qt-sum-l{font-size:13px;color:var(--muted);}
.quote-panel .qt-sum-l input{width:90px;padding:5px 8px;border-radius:8px;border:1px solid var(--line);background:var(--surface-deep);color:var(--text);font-size:13px;margin:0 4px;}
.quote-panel .qt-total{margin-left:auto;font-size:15px;color:var(--text);}
.quote-panel .qt-total b{font-size:22px;color:var(--blue-bright);}
.quote-panel .qt-form{border:1px solid var(--line);border-radius:14px;background:var(--surface-deep);padding:16px;margin:12px 0;}
.quote-panel .qt-img-prev img{height:42px;border-radius:6px;vertical-align:middle;margin:0 8px;}
.quote-panel .qt-lib-list{display:flex;flex-direction:column;gap:8px;margin-top:12px;max-height:440px;overflow-y:auto;}

/* 报价单·客户信息 */
.quote-panel .qt-cust-head{font-size:13px;color:var(--blue-bright);font-weight:600;margin:4px 0 8px;}
.quote-panel .qt-customer{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin-bottom:6px;}
.quote-panel .qt-customer input{padding:9px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-deep);color:var(--text);font-size:14px;}

/* ===== 智能报价 v2 增补 ===== */
.quote-panel .qt-note-area{width:100%;margin-top:8px;padding:9px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-deep);color:var(--text);font-size:13px;font-family:inherit;resize:vertical;}
.quote-panel .qt-pick-filters{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap;}
.quote-panel .qt-pick-filters select{padding:9px 10px;border-radius:10px;border:1px solid var(--line);background:var(--surface-deep);color:var(--text);font-size:13px;}
.quote-panel .qt-pick-filters input{flex:1;min-width:160px;padding:9px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-deep);color:var(--text);font-size:14px;}
.quote-panel .qt-pr{color:var(--red);font-weight:600;font-size:12px;}
.quote-panel .qt-add-btn{width:30px;height:30px;border-radius:50%;padding:0;font-size:18px;}
.quote-panel .qt-tpl-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 6px;padding:10px 12px;border:1px dashed var(--line-strong);border-radius:11px;background:var(--surface);}
.quote-panel .qt-tpl-label{font-size:13px;color:var(--muted);}
.quote-panel .qt-tpl-chips{display:flex;gap:8px;flex-wrap:wrap;flex:1;}
.quote-panel .qt-tpl-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:9px;background:var(--blue);color:#1a1404;font-size:13px;cursor:pointer;font-weight:600;}
.quote-panel .qt-tpl-del{font-style:normal;opacity:.6;cursor:pointer;}
.quote-panel .qt-tpl-del:hover{opacity:1;}
.quote-panel .qt-mini-btn{padding:5px 12px;border-radius:9px;border:1px solid var(--line-strong);background:var(--surface-deep);color:var(--text);font-size:12px;cursor:pointer;}
.quote-panel .qt-item-main{flex:1;min-width:150px;display:flex;flex-direction:column;}
.quote-panel .qt-item-main b{font-size:13px;color:var(--text);}
.quote-panel .qt-item-main small{font-size:11px;color:var(--muted);}
.quote-panel .qt-note{margin-top:4px;font-size:11px;color:var(--muted);border:none;border-bottom:1px dashed var(--line);background:transparent;padding:1px 2px;width:180px;}
.quote-panel .qt-up{min-width:78px;text-align:right;color:var(--muted);font-size:12px;}
.quote-panel .qt-step{width:24px;height:24px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;cursor:pointer;}
.quote-panel .qt-qty-in{width:48px;text-align:center;padding:4px;border:1px solid var(--line);border-radius:6px;background:var(--surface-deep);color:var(--text);}
.quote-panel .qt-mask{position:fixed;inset:0;background:rgba(10,14,24,.55);display:none;align-items:center;justify-content:center;z-index:120;}
.quote-panel .qt-mask.on{display:flex;}
.quote-panel .qt-modal{background:var(--surface-strong);border:1px solid var(--line);border-radius:16px;padding:22px;width:480px;max-width:92vw;max-height:86vh;overflow-y:auto;}
.quote-panel .qt-modal h3{margin:0 0 6px;color:var(--text);}
.quote-panel .qt-rooms{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 16px;}
.quote-panel .qt-rchip{padding:7px 14px;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-size:13px;color:var(--text);background:var(--surface-deep);}
.quote-panel .qt-rchip.on{background:var(--blue);color:#1a1404;border-color:var(--blue);font-weight:600;}
.quote-panel .qt-modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:8px;}
.quote-panel .qt-doc{width:660px;background:#fff;color:#222;}
.quote-panel .qt-doc .qd-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:10px;}
.quote-panel .qt-doc .qd-info{font-size:12px;color:#555;margin-bottom:10px;line-height:1.9;}
.quote-panel .qt-doc table th,.quote-panel .qt-doc table td{border:1px solid #ddd;padding:6px 8px;}
.quote-panel .qt-doc table th{background:#f3f5f9;}

/* ===== 视频代剪 ===== */
#edit .ed-link-row{display:flex;gap:8px;margin-bottom:8px;}
#edit .ed-link-row .ed-link-url{flex:2;}
#edit .ed-link-row .ed-link-note{flex:1;}
#edit .ed-link-row input{padding:9px 11px;border:1px solid #e5e7eb;border-radius:8px;font-size:13px;min-width:0;}
#edit .ed-link-del{flex:0 0 auto;border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:0 12px;cursor:pointer;color:#999;}
#edit .ed-checks{display:flex;gap:20px;margin:4px 0 8px;}
#edit .ed-check{display:flex;align-items:center;gap:6px;font-size:13px;cursor:pointer;}
#edit .ed-order .ed-finals,#edit .ed-order .ed-raws,#edit .ed-order .ed-revnote{margin-top:6px;font-size:12px;line-height:1.7;}
#edit .ed-order .ed-revnote{color:#c2410c;}
#edit .ed-link{color:#2563eb;text-decoration:none;word-break:break-all;}
#edit .ed-link.ed-dl{font-weight:600;}
#edit .ed-acts{display:flex;flex-direction:column;gap:6px;flex:0 0 auto;}
#edit .ed-act{border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:6px 12px;cursor:pointer;font-size:12px;white-space:nowrap;}
#edit .ed-act.ed-confirm{background:#16a34a;color:#fff;border-color:#16a34a;}
#edit .ed-act.ed-deliver{background:#2563eb;color:#fff;border-color:#2563eb;}

/* ===== 我的空间 · 定制功能图文卡（2026-06-17 v2） ===== */
.space-panel{ max-width:none; }
.space-head h2{ margin:0 0 4px; }
.space-head p{ color:#6b7280; margin:0 0 20px; font-size:14px; }
.space-sub{ font-size:15px; font-weight:700; color:var(--ink,#191919); margin:4px 0 16px; }
.space-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.space-card{ display:flex; flex-direction:column; padding:0; overflow:hidden; background:#fff; border:1px solid var(--line,#ececec); border-radius:8px !important; box-shadow:var(--shadow,0 1px 3px rgba(0,0,0,.05)); cursor:pointer; transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; text-align:left; }
.space-card:hover{ transform:translateY(-3px); box-shadow:0 12px 28px rgba(91,91,240,.14); border-color:#c9c9fb; }
.space-card .sc-cover{ display:block; width:100%; aspect-ratio:16/10; overflow:hidden; background:var(--soft,#ECECFE); }
.space-card .sc-cover img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.space-card:hover .sc-cover img{ transform:scale(1.04); }
.space-card .sc-body{ padding:12px 14px 15px; display:flex; flex-direction:column; gap:4px; }
.space-card .sc-tt{ font-size:15.5px; font-weight:700; color:var(--ink,#191919); }
.space-card .sc-dc{ font-size:12.5px; color:#6b7280; line-height:1.55; }
@media (max-width:640px){
  .space-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .space-card .sc-body{ padding:10px 11px 12px; }
  .space-card .sc-tt{ font-size:14px; }
  .space-card .sc-dc{ font-size:11.5px; }
}


/* ===== AI 智能体：左侧智能体列表（2026-06-17） ===== */
.jc-body{ display:flex; gap:16px; flex:1 1 auto; min-height:0; }
.jc-main{ flex:1 1 auto; display:flex; flex-direction:column; min-width:0; min-height:0; }
.agent-list{ flex:0 0 234px; width:234px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:14px 8px 8px 0; }
.agent-item{ display:flex!important; gap:10px; align-items:center; text-align:left; width:100%; padding:11px 13px!important; border:1px solid var(--line)!important; background:#fff!important; border-radius:12px!important; cursor:pointer; min-height:auto!important; transition:border-color .15s, background .15s; }
.agent-item:hover{ border-color:#c9c9fb!important; background:var(--soft)!important; }
.agent-item.active{ border-color:#5B5BF0!important; background:var(--soft)!important; box-shadow:0 0 0 1px #5B5BF0 inset; }
.agent-item .ai-ic{ font-size:18px; flex:0 0 auto; line-height:1.35; }
.agent-item .ai-meta{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.agent-item .ai-nm{ font-size:14px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.agent-item .ai-ds{ display:none!important; }
.jc-agentsel{ display:none!important; }
@media(max-width:760px){
  .jc-body{ flex-direction:column; gap:10px; }
  .agent-list{ flex:0 0 auto; width:100%; flex-direction:row; overflow-x:auto; overflow-y:hidden; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); }
  .agent-item{ flex:0 0 auto; width:auto; max-width:210px; }
  .agent-item .ai-ds{ display:none; }
}


/* ===== 生图/生视频结果点击放大（2026-06-17） ===== */
#imagePreview img, #coverPreview img{ cursor:zoom-in; }
#videoPreview{ position:relative; }
.zoom-fab{ position:absolute; top:10px; right:10px; min-height:auto!important; border:none!important; background:rgba(0,0,0,.6)!important; color:#fff!important; border-radius:9999px!important; padding:6px 13px!important; font-size:12.5px; font-weight:600; cursor:pointer; z-index:3; }
.zoom-fab:hover{ background:rgba(0,0,0,.82)!important; }



/* ===== 视频封面生成 · 风格模板选择器（2026-06-18） ===== */
.cover-tpl{ margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.ct-title{ font-size:14px; font-weight:700; color:var(--ink,#191919); margin-bottom:14px; }
.ct-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:12px; max-width:780px; }
.ct-card{ display:flex!important; flex-direction:column; align-items:center; gap:7px; padding:6px!important; border:2px solid var(--line,#ececec)!important; background:#fff!important; border-radius:10px!important; cursor:pointer; min-height:auto!important; transition:border-color .15s; position:relative; }
.ct-card img{ width:100%; aspect-ratio:381/655; object-fit:cover; border-radius:6px; display:block; }
.ct-card span{ font-size:11.5px; font-weight:600; color:var(--muted,#6b7280); }
.ct-card:hover{ border-color:#c9c9fb!important; }
.ct-card.active{ border-color:#5B5BF0!important; }
.ct-card.active span{ color:#5B5BF0; }
.ct-card.active::after{ content:"✓"; position:absolute; top:6px; right:6px; width:20px; height:20px; background:#5B5BF0; color:#fff; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700; }
@media(max-width:760px){ .ct-grid{ grid-template-columns:repeat(3,1fr); gap:9px; } }
