/* 基础变量与全局样式 */

:root {
  --bg: #050817;
  --bg-deep: #02040e;
  --panel: rgba(14, 19, 42, 0.84);
  --panel-strong: #0d132c;
  --panel-soft: rgba(18, 25, 52, 0.66);
  --line: rgba(137, 153, 220, 0.16);
  --line-strong: rgba(123, 104, 255, 0.42);
  --text: #f5f7ff;
  --muted: #9da6c3;
  --faint: #6f7896;
  --primary: #5b50ff;
  --primary-2: #b24cff;
  --cyan: #3ebeff;
  --success: #3cd6a0;
  --warning: #ffbf5a;
  --danger: #ff6f86;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(114, 98, 255, 0.22), 0 18px 60px rgba(77, 67, 255, 0.18);
  --max-width: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 78% 12%, rgba(78, 55, 210, 0.18), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(30, 96, 180, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%);
  z-index: -1;
}

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

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

button {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.app-shell {
  width: min(calc(100% - 36px), 1760px);
  margin: 0 auto;
  padding: 26px 0 40px;
}

/* 页头与导航 */

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(2, 4, 14, 0.68);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
}

.header-inner {
  width: min(calc(100% - 48px), 1600px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 18px rgba(93, 80, 255, .45));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2376bd;
  background: #eef7ff;
}

/* 按钮 */

.btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 650;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 125, 255, .6);
  background: rgba(255,255,255,.065);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(110deg, #5147ff 0%, #7354ff 45%, #cb55eb 100%);
  box-shadow: 0 16px 35px rgba(88, 69, 255, .28), inset 0 1px rgba(255,255,255,.25);
}

.btn-primary:hover {
  background: linear-gradient(110deg, #6158ff, #815fff, #da64f5);
  box-shadow: 0 20px 42px rgba(88,69,255,.36);
}

.btn-ghost {
  border-color: rgba(132, 112, 255, .48);
  background: rgba(10, 13, 34, .55);
}

.btn-danger {
  border-color: rgba(255,111,134,.35);
  color: #ffabb9;
  background: rgba(255,111,134,.08);
}

.btn-success {
  border-color: rgba(60,214,160,.35);
  color: #8ce8c7;
  background: rgba(60,214,160,.08);
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
}

.btn-lg {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 17px;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

/* 首页首屏与案例展示 */

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero-orbit.svg') center/cover no-repeat;
  opacity: .92;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,5,16,.96) 0%, rgba(3,5,16,.80) 38%, rgba(3,5,16,.22) 75%, rgba(3,5,16,.62) 100%);
  z-index: -1;
}

.hero-inner {
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 60px;
  padding: 62px 0 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b9bfff;
  background: rgba(18, 22, 48, .65);
  border: 1px solid rgba(125,116,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.hero-kicker::before {
  content: "✦";
  color: #bc66ff;
}

.hero h1 {
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 1.05;
  margin: 22px 0 16px;
  letter-spacing: -.055em;
  max-width: 780px;
}

.gradient-text {
  background: linear-gradient(95deg, #d16bff 0%, #6456ff 47%, #36a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line {
  display: block;
  color: #fff;
  margin-top: 12px;
}

.hero-desc {
  color: #adb5cb;
  font-size: 18px;
  max-width: 660px;
  margin: 0 0 28px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 26px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 15px 18px;
  background: rgba(15,20,43,.72);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #7ba1ff;
  background: rgba(79,88,255,.15);
  box-shadow: 0 0 24px rgba(81,77,255,.25);
}

.feature-card strong {
  display: block;
  font-size: 15px;
}

.feature-card span {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

.hero-cta {
  justify-self: stretch;
  max-width: 420px;
  margin-left: auto;
  width: 100%;
  display: grid;
  gap: 18px;
}

.hero-cta .btn {
  min-height: 70px;
  font-size: 18px;
  border-radius: 14px;
  justify-content: space-between;
  padding-inline: 28px;
}

.hero-cta small {
  text-align: center;
  color: var(--muted);
}

.showcase {
  margin-top: -78px;
  position: relative;
  z-index: 5;
  padding-bottom: 28px;
}

.showcase-panel {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(12,17,38,.88);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.04);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
}

.section-title small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(4, .55fr);
  gap: 14px;
}

.media-card {
  min-width: 0;
  height: 255px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.1);
  background: #10162e;
}

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

.media-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(2,4,12,.92));
}

.media-card-main {
  height: 255px;
}

.media-card-copy {
  position: absolute;
  z-index: 2;
  inset: auto 14px 12px;
}

.media-card-copy strong {
  display: block;
  font-size: 15px;
}

.media-meta {
  display: flex;
  justify-content: space-between;
  color: #c0c7dc;
  font-size: 11px;
  margin-top: 5px;
}

.play-badge {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(4,7,17,.62);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}

.play-badge::before {
  content: "";
  margin-left: 4px;
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.media-card:not(.media-card-main) .play-badge {
  width: 38px;
  height: 38px;
}

.media-card:not(.media-card-main) .play-badge::before {
  border-left-width: 10px;
  border-top-width: 6px;
  border-bottom-width: 6px;
}

.site-footer {
  padding: 22px 0 34px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--faint);
  text-align: center;
  font-size: 13px;
}

.footer-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 8px;
}

/* 通用面板与表单 */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 17px;
  font-weight: 750;
}

.panel-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.panel-body {
  padding: 20px;
}

.generator-layout {
  display: grid;
  grid-template-columns: 440px minmax(0,1fr);
  gap: 22px;
  min-height: calc(100vh - 135px);
}

.generator-form {
  max-height: calc(100vh - 135px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(103,91,255,.5) transparent;
}

.form-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-child {
  border-bottom: 0;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 15px;
}

.step-index {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(135deg,#4d72ff,#9b4fff);
  box-shadow: 0 0 18px rgba(95,82,255,.35);
}

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

.form-grid.one {
  grid-template-columns: 1fr;
}

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

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  color: #c5cbe0;
  font-size: 12px;
  margin: 0 0 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--text);
  background: rgba(9,13,31,.72);
  border: 1px solid rgba(137,153,220,.18);
  border-radius: 10px;
  outline: none;
  padding: 11px 12px;
  transition: border-color .18s, box-shadow .18s;
}

.field input,
.field select {
  min-height: 44px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(109,91,255,.72);
  box-shadow: 0 0 0 3px rgba(94,72,255,.11);
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,#8993ad 50%),linear-gradient(135deg,#8993ad 50%,transparent 50%);
  background-position: calc(100% - 16px) 19px,calc(100% - 11px) 19px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.field option {
  background: #11172f;
}

.field-hint {
  color: var(--faint);
  font-size: 11px;
  margin-top: 6px;
}

.required::after {
  content: " *";
  color: #ff8094;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: #aeb6d0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(104,88,255,.5);
  color: #fff;
}

.upload-zone {
  border: 1px dashed rgba(136,145,194,.34);
  background: rgba(7,11,27,.5);
  border-radius: 13px;
  min-height: 128px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: .2s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #7164ff;
  background: rgba(83,67,255,.08);
}

.upload-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 22px;
  color: #8e8bff;
  background: rgba(95,79,255,.11);
}

.upload-zone strong {
  display: block;
  font-size: 14px;
}

.upload-zone span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  font-size: 12px;
}

.file-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  border: 0;
  background: transparent;
  color: #ff8aa0;
  cursor: pointer;
}

.submit-area {
  padding: 20px;
}

.submit-area .btn {
  min-height: 58px;
  font-size: 17px;
}

.submit-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

.preview-column {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.preview-panel {
  padding: 16px;
}

.preview-frame {
  position: relative;
  aspect-ratio: 16/7.15;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(100,103,255,.3);
  background: #080d21;
}

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

.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(transparent 45%, rgba(2,5,15,.8));
  padding: 22px;
}

.preview-label {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(91,105,255,.6);
  color: #79a4ff;
  background: rgba(13,18,47,.7);
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 11px;
}

.preview-notice {
  color: #dce3fb;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-notice::before {
  content: "i";
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  font-weight: 700;
}

.case-panel {
  padding: 16px;
  min-height: 0;
}

.case-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 14px;
}

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

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active {
  color: #9a9bff;
  background: rgba(91,75,255,.12);
}

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

.case-small {
  background: rgba(11,16,35,.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.case-small-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.case-small-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-small-body {
  padding: 10px;
}

.case-small-title {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-small-meta {
  color: var(--faint);
  font-size: 10px;
  margin-top: 4px;
}

.case-small-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.case-small-actions .btn {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
  flex: 1;
}

.auth-wrap {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 34px;
  background: rgba(12,17,38,.9);
  border: 1px solid rgba(116,100,255,.22);
  border-radius: 22px;
  box-shadow: var(--shadow), 0 0 80px rgba(80,57,255,.12);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-logo img {
  width: 50px;
}

.auth-title {
  font-size: 24px;
  font-weight: 780;
  margin: 0;
}

.auth-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-card .btn-primary {
  margin-top: 4px;
  min-height: 50px;
}

.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.query-layout {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.query-card {
  width: min(100%, 680px);
  padding: 34px;
}

.query-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.query-card > p {
  margin: 0 0 25px;
  color: var(--muted);
}

.query-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

/* 用户任务与客服工作台 */

.task-page {
  padding-top: 28px;
}

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

.task-head h1 {
  margin: 0;
  font-size: 28px;
}

.task-number {
  color: var(--muted);
  margin-top: 5px;
}

.task-grid {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr);
  gap: 18px;
}

.stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(120deg, rgba(79,70,255,.15), rgba(178,76,255,.08));
  border: 1px solid rgba(112,92,255,.25);
  border-radius: 16px;
}

.status-banner strong {
  font-size: 18px;
}

.status-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status-pending {
  color: #ffca6b;
  background: rgba(255,191,90,.10);
  border: 1px solid rgba(255,191,90,.22);
}

.status-active {
  color: #7da3ff;
  background: rgba(91,113,255,.10);
  border: 1px solid rgba(91,113,255,.22);
}

.status-ready {
  color: #63e0b3;
  background: rgba(60,214,160,.10);
  border: 1px solid rgba(60,214,160,.22);
}

.status-danger {
  color: #ff8497;
  background: rgba(255,111,134,.10);
  border: 1px solid rgba(255,111,134,.22);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.detail-item {
  background: #0d132b;
  padding: 13px 14px;
  min-height: 70px;
}

.detail-item.full {
  grid-column: 1/-1;
}

.detail-label {
  color: var(--faint);
  font-size: 11px;
}

.detail-value {
  color: #dfe4f7;
  font-size: 13px;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  min-height: 64px;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: -13px;
  width: 1px;
  background: rgba(123,133,181,.25);
}

.timeline-item:last-child .timeline-marker::before {
  display: none;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #665aff;
  margin-top: 7px;
  box-shadow: 0 0 14px rgba(102,90,255,.65);
  z-index: 1;
}

.timeline-copy strong {
  font-size: 13px;
}

.timeline-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.timeline-time {
  color: var(--faint);
  font-size: 11px;
  margin-top: 4px;
}

.file-table {
  display: grid;
  gap: 9px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  border-radius: 10px;
}

.file-row-main {
  min-width: 0;
}

.file-row-name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row-meta {
  color: var(--faint);
  font-size: 10px;
  margin-top: 2px;
}

.file-row-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.message-list {
  display: grid;
  gap: 11px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 12px;
  background: #121a37;
  border: 1px solid var(--line);
}

.message.user {
  margin-left: auto;
  background: rgba(84,68,255,.16);
  border-color: rgba(102,87,255,.22);
}

.message.system {
  max-width: 100%;
  text-align: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 3px;
  font-size: 11px;
}

.message-meta {
  color: var(--faint);
  font-size: 10px;
  margin-top: 6px;
}

.message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 14px;
}

.message-form textarea {
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 20px;
  min-height: calc(100vh - 130px);
}

.sidebar {
  padding: 16px 12px;
  position: sticky;
  top: 102px;
  height: calc(100vh - 126px);
}

.sidebar-user {
  padding: 10px 10px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.sidebar-user strong {
  display: block;
}

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

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

.side-link {
  border: 0;
  width: 100%;
  text-align: left;
  color: var(--muted);
  background: transparent;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-link:hover,
.side-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(85,73,255,.16), rgba(85,73,255,.05));
}

.side-count {
  min-width: 24px;
  height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: rgba(255,255,255,.07);
}

.dashboard-main {
  min-width: 0;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.dashboard-top h1 {
  margin: 0;
  font-size: 28px;
}

.dashboard-top p {
  color: var(--muted);
  margin: 4px 0 0;
}

.dashboard-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.metric {
  padding: 17px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(92,74,255,.13);
  right: -30px;
  top: -30px;
  filter: blur(2px);
}

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

.metric-value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
}

.metric-note {
  color: var(--faint);
  font-size: 10px;
  margin-top: 2px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-input {
  min-height: 38px;
  width: 260px;
  color: var(--text);
  background: rgba(8,12,28,.8);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  outline: none;
}

.select-compact {
  min-height: 38px;
  color: var(--text);
  background: #0b1026;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 30px 0 11px;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.data-table th {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}

.data-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(137,153,220,.09);
  font-size: 12px;
  color: #d7dcef;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(95,78,255,.045);
}

.table-title {
  font-weight: 700;
  font-size: 13px;
}

.table-sub {
  color: var(--faint);
  font-size: 10px;
  margin-top: 3px;
}

.text-link {
  color: #8d92ff;
  cursor: pointer;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(350px,.75fr);
  gap: 18px;
}

.action-card {
  position: sticky;
  top: 102px;
}

.inline-form {
  display: grid;
  gap: 11px;
}

.inline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.danger-zone {
  border: 1px solid rgba(255,111,134,.2);
  background: rgba(255,111,134,.04);
  border-radius: 12px;
  padding: 13px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.account-list {
  display: grid;
  gap: 9px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}

.account-meta {
  color: var(--muted);
  font-size: 11px;
}

.role-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  background: rgba(86,78,255,.12);
  color: #a0a3ff;
  border: 1px solid rgba(86,78,255,.2);
}

/* 弹窗与页面反馈 */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(1,3,10,.76);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(100%,620px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #0d132b;
  border: 1px solid rgba(113,96,255,.35);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  padding: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.credential-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.credential-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.credential-label {
  color: var(--muted);
  font-size: 12px;
}

.credential-value {
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow-wrap: anywhere;
}

.toast-container {
  position: fixed;
  right: 20px;
  top: 94px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(360px,calc(100% - 40px));
}

.toast {
  padding: 13px 15px;
  border-radius: 11px;
  background: #111832;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: toastIn .2s ease;
  font-size: 13px;
}

.toast.success {
  border-color: rgba(60,214,160,.3);
}

.toast.error {
  border-color: rgba(255,111,134,.38);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

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

.skeleton {
  min-height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg,rgba(255,255,255,.03),rgba(255,255,255,.08),rgba(255,255,255,.03));
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: #b9c2dc;
  background: rgba(62,190,255,.06);
  border: 1px solid rgba(62,190,255,.18);
}

.notice.warning {
  color: #ffd18a;
  background: rgba(255,191,90,.06);
  border-color: rgba(255,191,90,.2);
}

.notice.danger {
  color: #ffa1b0;
  background: rgba(255,111,134,.06);
  border-color: rgba(255,111,134,.2);
}

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

.faint {
  color: var(--faint);
}

.text-right {
  text-align: right;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 14px;
}

.mt-3 {
  margin-top: 20px;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 14px;
}

.mb-3 {
  margin-bottom: 20px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 12px;
}

.wrap {
  flex-wrap: wrap;
}

@media (max-width: 1250px) {
  .showcase-grid {
    grid-template-columns: 1.8fr repeat(3,.6fr);
  }

  .showcase-grid .media-card:last-child {
    display: none;
  }

  .generator-layout {
    grid-template-columns: 390px minmax(0,1fr);
  }

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

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

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
  }

  .hero {
    min-height: auto;
  }

  .hero-cta {
    margin: 0;
    max-width: 580px;
    grid-template-columns: 1fr 1fr;
  }

  .hero-cta small {
    grid-column: 1/-1;
  }

  .feature-row {
    max-width: 720px;
  }

  .showcase {
    margin-top: -25px;
  }

  .showcase-grid {
    grid-template-columns: 1.6fr repeat(2,.7fr);
  }

  .showcase-grid .media-card:nth-last-child(-n+2) {
    display: none;
  }

  .generator-layout {
    grid-template-columns: 1fr;
  }

  .generator-form {
    max-height: none;
  }

  .preview-frame {
    aspect-ratio: 16/9;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .service-detail-grid,
  .task-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    position: static;
  }

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

@media (max-width: 720px) {
  .shell,
  .header-inner {
    width: min(calc(100% - 28px),var(--max-width));
  }

  .page-shell,
  .app-shell {
    width: min(calc(100% - 24px),var(--max-width));
  }

  .site-header {
    height: 68px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle,
  .nav-links {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero-inner {
    padding: 45px 0 56px;
  }

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

  .hero-desc {
    font-size: 15px;
  }

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

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

  .hero-cta small {
    grid-column: auto;
  }

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

  .media-card-main {
    grid-column: 1/-1;
  }

  .showcase-grid .media-card:nth-child(n+4) {
    display: none;
  }

  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

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

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

  .task-head,
  .dashboard-top {
    flex-direction: column;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-item.full {
    grid-column: auto;
  }

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

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

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-input {
    width: 100%;
  }

  .side-nav {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .credential-label {
    grid-column: 1/-1;
  }
}

@media (max-width: 480px) {
  .header-actions .btn:not(:last-child) {
    display: none;
  }

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

  .showcase-panel {
    padding: 14px;
  }

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

  .showcase-grid .media-card:not(.media-card-main) {
    display: none;
  }

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

  .auth-card,
  .query-card {
    padding: 24px 18px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

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

  .file-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.account-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid transparent;
}

.account-status-pill.is-active {
  color: #83e9bb;
  background: rgba(45,207,147,.10);
  border-color: rgba(45,207,147,.22);
}

.account-status-pill.is-disabled {
  color: #a6adbf;
  background: rgba(166,173,191,.08);
  border-color: rgba(166,173,191,.18);
}

.btn-danger-outline {
  background: rgba(255,85,111,.06);
  color: #ff91a4;
  border: 1px solid rgba(255,85,111,.28);
}

.btn-danger-outline:hover {
  background: rgba(255,85,111,.12);
}

.provider-state {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(166,173,191,.22);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.provider-state.is-ready {
  color: #63e0b3;
  border-color: rgba(45,207,147,.3);
  background: rgba(45,207,147,.1);
}

.provider-state.is-warning {
  color: #ffca6b;
  border-color: rgba(255,191,90,.3);
  background: rgba(255,191,90,.1);
}

.provider-meta,
.provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.provider-meta {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.field-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-auth-gate {
  width: min(560px, calc(100% - 32px));
  margin: 72px auto;
  text-align: center;
}

.admin-auth-gate .panel {
  padding: 28px;
}

.admin-auth-gate strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.admin-auth-gate p {
  margin: 0 0 18px;
  color: var(--muted);
}

.admin-auth-pending .admin-auth-gate .btn {
  visibility: hidden;
}

@media (max-width: 720px) {
  .account-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 开源项目与二次开发署名 */

.license-footer {
  padding: 24px 20px 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(2, 4, 14, .62);
}

.license-footer .footer-features {
  margin-bottom: 12px;
}

.license-lines {
  display: grid;
  gap: 5px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.license-lines a {
  color: #a9adff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.license-lines a:hover {
  color: #d0d2ff;
}

@media (max-width: 720px) {
  .license-footer {
    padding-inline: 16px;
  }

  .license-lines {
    font-size: 11px;
    line-height: 1.65;
  }
}

/* ===== 提交需求页面左右对称布局 ===== */

@media (min-width: 981px) {
  .generator-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
  }

  .generator-form {
    width: 100%;
    height: calc(100vh - 135px);
    max-height: calc(100vh - 135px);
    overflow-y: auto;
  }

  .preview-column {
    width: 100%;
    height: calc(100vh - 135px);
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }

  .preview-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
  }

  .preview-panel .section-head {
    flex: 0 0 auto;
  }

  .preview-frame {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }

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

/* 首页四个案例视频 */

.media-card-video {
  position: relative;
  overflow: hidden;
  background: #050817;
}

.media-card-video::after {
  display: none !important;
}

.media-card-video video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  background: #050817;
  border: 0;
}

.local-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.lazy-video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(122, 128, 210, 0.22);
  border-radius: 15px;
  background: #050817;
}

.lazy-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050817;
}

/* 封面按钮 */

.lazy-video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #050817;
  border: 0;
}

.lazy-video-cover[hidden] {
  display: none !important;
}

/* 首帧封面 */

.lazy-video-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050817;
  transition: transform 0.3s ease;
}

.lazy-video-cover:hover img {
  transform: scale(1.02);
}

/* 中间播放按钮 */

.lazy-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  text-indent: 3px;
  background: rgba(5, 8, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

/* 视频播放器 */

.lazy-video-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050817;
  border: 0;
}

.lazy-video-player[hidden] {
  display: none !important;
}

/* 平板：两列 */

@media (max-width: 1100px) {
  .local-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 手机：单列 */

@media (max-width: 620px) {
  .local-video-grid {
    grid-template-columns: 1fr;
  }
}

/* 蓝白企业主题：覆盖颜色变量和组件配色，页面结构保持不变。 */

:root {
  color-scheme: light;
  --bg: #f7fbff;
  --bg-deep: #eef6ff;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --panel-soft: rgba(241, 247, 255, 0.94);
  --line: rgba(38, 132, 226, 0.16);
  --line-strong: rgba(24, 139, 255, 0.42);
  --text: #102b4f;
  --muted: #5d7390;
  --faint: #879cb5;
  --primary: #168bff;
  --primary-2: #53b2ff;
  --cyan: #31a9ff;
  --success: #21b47e;
  --warning: #e6a124;
  --danger: #e65068;
  --shadow: 0 22px 65px rgba(32, 105, 176, 0.12);
  --glow: 0 0 0 1px rgba(22, 139, 255, 0.12), 0 18px 50px rgba(22, 139, 255, 0.15);
}

body {
  color: var(--text);
  background: radial-gradient(circle at 78% 4%, rgba(73, 169, 255, 0.16), transparent 29%),
    radial-gradient(circle at 4% 72%, rgba(148, 207, 255, 0.20), transparent 28%),
    linear-gradient(180deg, #f0f7ff 0%, #ffffff 33%, #f7fbff 100%);
}

body::before {
  background-image: linear-gradient(rgba(26, 131, 231, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 131, 231, .035) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.42), transparent 75%);
}

.site-header {
  border-bottom-color: rgba(35, 128, 222, .14);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 32px rgba(41, 113, 181, .06);
}

.brand img {
  filter: drop-shadow(0 8px 16px rgba(22, 139, 255, .20));
}

.brand-title {
  color: #112c50;
}

.brand-subtitle {
  color: #7388a2;
}

.nav-link {
  color: #556d8a;
}

.nav-link:hover,
.nav-link.active {
  color: #087de9;
  background: #edf6ff;
}

.btn {
  color: #24486e;
  border-color: rgba(31, 132, 230, .18);
  background: rgba(255,255,255,.88);
  box-shadow: 0 6px 18px rgba(43, 117, 184, .05);
}

.btn:hover {
  border-color: rgba(22,139,255,.48);
  background: #f4f9ff;
  box-shadow: 0 10px 24px rgba(22,139,255,.10);
}

.btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(110deg, #087ee9 0%, #168bff 54%, #4cb3ff 100%);
  box-shadow: 0 14px 32px rgba(22,139,255,.26), inset 0 1px rgba(255,255,255,.32);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(110deg, #0875da, #168bff, #35a9ff);
  box-shadow: 0 18px 38px rgba(22,139,255,.32);
}

.btn-ghost {
  color: #23639d;
  border-color: rgba(22,139,255,.30);
  background: rgba(255,255,255,.78);
}

.btn-danger {
  color: #d54058;
  border-color: rgba(230,80,104,.26);
  background: rgba(230,80,104,.06);
}

.btn-success {
  color: #13865d;
  border-color: rgba(33,180,126,.28);
  background: rgba(33,180,126,.07);
}

.hero {
  min-height: 620px;
  border-bottom: 1px solid rgba(32, 129, 224, .10);
  background: linear-gradient(180deg, rgba(240,247,255,.30), rgba(255,255,255,.70));
}

.hero::before {
  opacity: .96;
}

.hero::after {
  background: linear-gradient(90deg, rgba(247,251,255,.98) 0%, rgba(247,251,255,.91) 41%, rgba(247,251,255,.45) 72%, rgba(247,251,255,.76) 100%);
}

.hero-kicker {
  color: #2268a8;
  background: rgba(255,255,255,.78);
  border-color: rgba(22,139,255,.18);
  box-shadow: 0 10px 28px rgba(22,139,255,.08);
}

.hero-kicker::before {
  color: #168bff;
}

.gradient-text {
  background: linear-gradient(95deg, #075ec5 0%, #168bff 52%, #57b6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line {
  color: #102b4f;
}

.hero-desc {
  color: #5e7593;
}

.feature-card {
  background: rgba(255,255,255,.84);
  border-color: rgba(33,130,224,.16);
  box-shadow: 0 12px 34px rgba(35, 109, 178, .07), inset 0 1px rgba(255,255,255,.8);
}

.feature-icon {
  color: #087ee9;
  background: #eaf5ff;
  box-shadow: 0 8px 22px rgba(22,139,255,.12);
}

.hero-cta small {
  color: #71869f;
}

.showcase-panel,
.panel,
.auth-card,
.query-card,
.modal,
.toast {
  background: rgba(255,255,255,.95);
  border-color: rgba(37, 132, 226, .16);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.8);
}

.showcase-panel {
  backdrop-filter: blur(18px);
}

.section-title,
.panel-title {
  color: #17365b;
}

.section-title small,
.panel-subtitle {
  color: #71859e;
}

.media-card,
.lazy-video-card {
  border-color: rgba(30, 132, 232, .17);
  background: #f0f7ff;
  box-shadow: 0 10px 28px rgba(32, 112, 184, .08);
}

.lazy-video-stage,
.lazy-video-cover,
.lazy-video-cover img,
.lazy-video-player,
.media-card-video,
.media-card-video video {
  background: #eaf4ff;
}

.lazy-video-play,
.play-badge {
  color: #fff;
  background: rgba(11, 112, 205, .86);
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 10px 30px rgba(5, 95, 181, .26);
}

.media-card::after {
  background: linear-gradient(transparent, rgba(14,53,92,.80));
}

.media-meta {
  color: #dceeff;
}

.site-footer,
.license-footer {
  color: #7890aa;
  border-top-color: rgba(34,130,224,.13);
  background: rgba(247,251,255,.92);
}

.license-lines a {
  color: #087ee9;
}

.license-lines a:hover {
  color: #045fb5;
}

.panel-header,
.form-section,
.toolbar,
.modal-head,
.modal-actions {
  border-color: rgba(38,132,226,.14);
}

.step-index {
  color: #fff;
  background: linear-gradient(135deg,#087ee9,#49b1ff);
  box-shadow: 0 8px 20px rgba(22,139,255,.24);
}

.field label {
  color: #486683;
}

.field input,
.field select,
.field textarea,
.search-input,
.select-compact {
  color: #153757;
  background-color: #fff;
  border-color: rgba(39, 128, 215, .18);
  box-shadow: inset 0 1px 2px rgba(33, 88, 139, .025);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus,
.select-compact:focus {
  border-color: rgba(22,139,255,.68);
  box-shadow: 0 0 0 3px rgba(22,139,255,.10);
}

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

.field select {
  background-image: linear-gradient(45deg,transparent 50%,#6e8ba7 50%),linear-gradient(135deg,#6e8ba7 50%,transparent 50%);
}

.field option {
  color: #153757;
  background: #fff;
}

.required::after {
  color: #e65068;
}

.chip {
  color: #4d6b88;
  border-color: rgba(28,130,228,.16);
  background: #f5faff;
}

.chip:hover {
  color: #087ee9;
  border-color: rgba(22,139,255,.45);
  background: #eaf5ff;
}

.upload-zone {
  color: #173b60;
  border-color: rgba(34,129,223,.30);
  background: #f8fbff;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #168bff;
  background: #edf7ff;
}

.upload-icon {
  color: #087ee9;
  background: #e8f4ff;
}

.file-item,
.file-row,
.account-row,
.credential-row {
  background: #f9fcff;
  border-color: rgba(38,132,226,.14);
}

.file-remove {
  color: #df4b63;
}

.preview-frame {
  border-color: rgba(22,139,255,.26);
  background: #eaf4ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.preview-overlay {
  background: linear-gradient(transparent 48%, rgba(13,56,96,.73));
}

.preview-label {
  color: #087ee9;
  background: rgba(255,255,255,.88);
  border-color: rgba(22,139,255,.34);
}

.preview-notice {
  color: #f4f9ff;
}

.case-small {
  background: #fff;
  border-color: rgba(38,132,226,.15);
  box-shadow: 0 9px 26px rgba(35, 104, 169, .06);
}

.tab.active {
  color: #087ee9;
  background: #eaf5ff;
}

.auth-card {
  box-shadow: 0 28px 80px rgba(30, 104, 174, .16);
}

.auth-title,
.query-card h1,
.task-head h1,
.dashboard-top h1 {
  color: #123154;
}

.status-banner {
  background: linear-gradient(120deg, rgba(22,139,255,.11), rgba(94,185,255,.07));
  border-color: rgba(22,139,255,.22);
}

.detail-list {
  background: rgba(38,132,226,.14);
  border-color: rgba(38,132,226,.14);
}

.detail-item {
  background: #fff;
}

.detail-value {
  color: #244766;
}

.timeline-marker::before {
  background: rgba(40,122,201,.22);
}

.timeline-dot {
  background: #168bff;
  box-shadow: 0 0 14px rgba(22,139,255,.48);
}

.message {
  color: #294b69;
  background: #f4f9ff;
  border-color: rgba(38,132,226,.14);
}

.message.user {
  background: #eaf5ff;
  border-color: rgba(22,139,255,.20);
}

.empty {
  background: rgba(255,255,255,.52);
}

.sidebar {
  background: rgba(255,255,255,.93);
}

.side-link:hover,
.side-link.active {
  color: #087ee9;
  background: linear-gradient(90deg, #eaf5ff, rgba(234,245,255,.32));
}

.side-count {
  color: #2471b5;
  background: #eaf5ff;
}

.metric::after {
  background: rgba(22,139,255,.11);
}

.data-table th {
  background: #f7fbff;
  color: #7188a1;
}

.data-table td {
  color: #31516e;
  border-bottom-color: rgba(38,132,226,.09);
}

.data-table tbody tr:hover {
  background: #f5faff;
}

.text-link {
  color: #087ee9;
}

.role-badge {
  color: #087ee9;
  background: #eaf5ff;
  border-color: rgba(22,139,255,.18);
}

.danger-zone {
  background: rgba(230,80,104,.04);
}

.modal-backdrop {
  background: rgba(20, 55, 91, .38);
}

.toast {
  color: #254b6d;
}

.loading::before {
  border-color: rgba(22,139,255,.20);
  border-top-color: #168bff;
}

.skeleton {
  background: linear-gradient(90deg,#edf5fc,#f8fbff,#edf5fc);
  background-size: 200% 100%;
}

.notice {
  color: #356589;
  background: #eef8ff;
  border-color: rgba(33,169,255,.20);
}

.notice.warning {
  color: #9a6911;
  background: #fff9e9;
  border-color: rgba(230,161,36,.22);
}

.notice.danger {
  color: #b43b50;
  background: #fff1f4;
  border-color: rgba(230,80,104,.22);
}

.account-status-pill.is-disabled {
  color: #718398;
  background: #f1f5f9;
  border-color: #dfe7ef;
}

.btn-danger-outline {
  color: #d9445d;
  background: #fff4f6;
  border-color: rgba(230,80,104,.26);
}

.btn-danger-outline:hover {
  background: #ffecef;
}

@media (max-width: 720px) {
  .site-header {
    background: rgba(255,255,255,.94);
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(247,251,255,.98), rgba(247,251,255,.88));
  }
}

/* 首页功能卡片：改用本地图片图标 */

.feature-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
}

.feature-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* AI 模型入口与在线创作页 */

.ai-model-entry {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  color: #174f83;
  border: 1px solid rgba(22, 139, 255, .24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(229,245,255,.94));
  box-shadow: 0 15px 34px rgba(22,139,255,.12), inset 0 1px rgba(255,255,255,.9);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ai-model-entry:hover {
  color: #0a69c4;
  transform: translateY(-2px);
  border-color: rgba(22,139,255,.45);
  box-shadow: 0 20px 44px rgba(22,139,255,.18);
}

.ai-model-entry-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  border-radius: 14px;
  background: linear-gradient(145deg, #066bd2, #17a0ff 68%, #78d5ff);
  box-shadow: 0 10px 24px rgba(17,133,237,.28);
}

.ai-model-entry-copy {
  min-width: 0;
}

.ai-model-entry-copy strong,
.ai-model-entry-copy small {
  display: block;
  text-align: left;
}

.ai-model-entry-copy strong {
  color: #123e68;
  font-size: 16px;
}

.ai-model-entry-copy small {
  margin-top: 3px;
  color: #71869f;
  font-size: 12px;
}

.ai-model-entry-arrow {
  color: #1189ec;
  font-size: 22px;
}

.ai-studio-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 8%, rgba(101,197,255,.22), transparent 30%),
    radial-gradient(circle at 16% 22%, rgba(75,139,255,.10), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 54%, #f8fbff 100%);
}

.ai-studio-main {
  min-height: calc(100vh - 190px);
  padding: 48px 0 72px;
}

.ai-studio-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.ai-studio-kicker,
.ai-step-label {
  display: block;
  color: #1684e9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.ai-studio-intro h1 {
  margin: 10px 0 8px;
  color: #102f52;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.ai-studio-intro h1 span {
  color: #1189ec;
}

.ai-studio-intro p {
  max-width: 720px;
  margin: 0;
  color: #647e99;
  font-size: 16px;
}

.ai-studio-status {
  flex: 0 0 auto;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(37,132,226,.17);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(34,109,178,.08);
}

.ai-studio-status small,
.ai-studio-status strong {
  display: block;
}

.ai-studio-status small {
  color: #7a90a8;
  font-size: 11px;
}

.ai-studio-status strong {
  color: #33597e;
  margin-top: 2px;
  font-size: 13px;
}

.ai-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e7a126;
  box-shadow: 0 0 0 6px rgba(231,161,38,.10);
}

.ai-studio-status.is-ready .ai-status-dot {
  background: #23b27e;
  box-shadow: 0 0 0 6px rgba(35,178,126,.10);
}

.ai-studio-status.is-offline .ai-status-dot {
  background: #e25b70;
  box-shadow: 0 0 0 6px rgba(226,91,112,.10);
}

.ai-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 22px;
  align-items: start;
}

.ai-generator-panel,
.ai-output-panel {
  border: 1px solid rgba(37,132,226,.15);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 60px rgba(33,106,175,.10), inset 0 1px rgba(255,255,255,.92);
}

.ai-generator-panel {
  padding: 26px;
}

.ai-output-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.ai-panel-head,
.ai-output-head,
.ai-section-row,
.ai-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ai-panel-head h2,
.ai-output-head h2 {
  margin: 5px 0 0;
  color: #173b61;
  font-size: 22px;
}

.ai-secure-badge,
.ai-output-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #1776c9;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(22,139,255,.17);
  border-radius: 999px;
  background: #eff8ff;
}

.ai-prompt-field {
  margin-top: 24px;
}

.ai-prompt-field textarea {
  min-height: 150px;
  color: #264c70;
  background: #f8fbff;
  border-color: rgba(35,127,215,.18);
  font-size: 14px;
  line-height: 1.65;
}

.ai-prompt-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
  color: #8496a9;
  font-size: 11px;
}

.ai-prompt-chips .chip {
  color: #47749c;
  border-color: rgba(25,129,225,.16);
  background: #f5faff;
}

.ai-prompt-chips .chip:hover {
  color: #087ee9;
  border-color: rgba(25,129,225,.42);
  background: #eaf5ff;
}

.ai-upload-block,
.ai-parameter-block,
.ai-access-field {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(39,126,209,.11);
}

.ai-section-row h3 {
  margin: 5px 0 12px;
  color: #274b70;
  font-size: 16px;
}

.ai-section-row h3 small {
  color: #879bad;
  font-size: 11px;
  font-weight: 500;
}

.ai-text-button {
  border: 0;
  color: #e04f68;
  background: transparent;
  cursor: pointer;
}

.ai-reference-drop {
  width: 100%;
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  color: #315b80;
  border: 1px dashed rgba(26,135,233,.35);
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbff, #eff8ff);
  cursor: pointer;
}

.ai-reference-drop:hover {
  border-color: #168bff;
  background: #edf7ff;
}

.ai-reference-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #168bff;
  font-size: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31,119,201,.12);
}

.ai-reference-drop strong,
.ai-reference-drop small {
  display: block;
  text-align: left;
}

.ai-reference-drop small {
  color: #7c91a6;
  margin-top: 3px;
}

.ai-reference-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-reference-drop.has-preview::after {
  content: "更换参考图";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #fff;
  font-size: 11px;
  border-radius: 8px;
  background: rgba(8,68,119,.74);
}

.ai-generator-panel .field input,
.ai-generator-panel .field select {
  color: #284f73;
  background-color: #f8fbff;
  border-color: rgba(35,127,215,.18);
}

.ai-generator-panel .field option {
  background: #fff;
}

.ai-generate-button {
  min-height: 60px;
  justify-content: space-between;
  margin-top: 22px;
  padding-inline: 22px;
  font-size: 16px;
}

.ai-form-note {
  margin-top: 10px;
  color: #8195a9;
  text-align: center;
  font-size: 11px;
}

.ai-output-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 11;
  margin-top: 18px;
  border: 1px solid rgba(29,130,224,.20);
  border-radius: 18px;
  background: #ddecf8;
}

.ai-output-stage > img,
.ai-output-stage > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-output-stage > img {
  filter: saturate(.75) brightness(1.08);
  opacity: .28;
}

.ai-output-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
  background: linear-gradient(180deg, rgba(241,249,255,.20), rgba(234,246,255,.88));
}

.ai-output-overlay h3 {
  margin: 22px 0 7px;
  color: #174a78;
  font-size: 20px;
}

.ai-output-overlay p {
  max-width: 330px;
  margin: 0;
  color: #68839e;
  font-size: 13px;
}

.ai-orbit {
  width: 104px;
  height: 104px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22,139,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 45px rgba(22,139,255,.15);
}

.ai-orbit::before,
.ai-orbit::after,
.ai-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ai-orbit::before {
  inset: 12px;
  border: 1px dashed rgba(22,139,255,.28);
  animation: ai-spin 9s linear infinite;
}

.ai-orbit::after {
  inset: 25px;
  background: linear-gradient(145deg, #0b76dd, #36b4ff);
  box-shadow: 0 10px 28px rgba(18,137,238,.32);
}

.ai-orbit strong {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  letter-spacing: .08em;
}

.ai-orbit span {
  width: 8px;
  height: 8px;
  z-index: 3;
  background: #67c8ff;
  box-shadow: 0 0 16px #2aa8ff;
}

.ai-orbit span:nth-child(1) { top: 5px; left: 48px; }
.ai-orbit span:nth-child(2) { right: 8px; bottom: 23px; }
.ai-orbit span:nth-child(3) { left: 8px; bottom: 23px; }

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

.ai-progress-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(35,127,215,.13);
  border-radius: 14px;
  background: #f8fbff;
}

.ai-progress-row {
  color: #527391;
  font-size: 12px;
}

.ai-progress-row strong {
  color: #087ee9;
  font-size: 13px;
}

.ai-progress-track {
  height: 7px;
  overflow: hidden;
  margin-top: 9px;
  border-radius: 999px;
  background: #e4eef7;
}

.ai-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087ee9, #45b7ff);
  box-shadow: 0 0 14px rgba(22,139,255,.38);
  transition: width .35s ease;
}

.ai-job-meta {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.ai-job-meta small,
.ai-job-meta strong {
  display: block;
}

.ai-job-meta small {
  color: #8a9cad;
  font-size: 10px;
}

.ai-job-meta strong {
  overflow: hidden;
  margin-top: 3px;
  color: #365d80;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-output-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 14px;
}

.ai-output-actions .btn {
  justify-content: center;
}

.ai-output-tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  color: #6e8498;
  font-size: 11px;
  line-height: 1.55;
  border-radius: 12px;
  background: #f1f8fd;
}

.ai-output-tip strong {
  color: #2875b7;
}

@media (max-width: 1060px) {
  .ai-studio-grid {
    grid-template-columns: 1fr;
  }

  .ai-output-panel {
    position: static;
  }

  .ai-output-stage {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  .ai-model-entry {
    min-height: 68px;
  }

  .ai-studio-main {
    padding: 30px 0 48px;
  }

  .ai-studio-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-studio-status {
    width: 100%;
  }

  .ai-generator-panel,
  .ai-output-panel {
    padding: 18px;
    border-radius: 17px;
  }

  .ai-panel-head {
    align-items: flex-start;
  }

  .ai-generator-panel .form-grid.three,
  .ai-job-meta {
    grid-template-columns: 1fr;
  }

  .ai-output-stage {
    aspect-ratio: 4 / 5;
  }
}

.auth-page {
  min-height: 100vh;
  background: #eef6fb;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid #d8e7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(21, 79, 120, .13);
}

.auth-brand {
  justify-content: center;
}

.auth-card h1 {
  margin: 0;
  color: #153a5b;
  text-align: center;
  font-size: 24px;
}

.auth-switch {
  margin: 0;
  color: #6e8498;
  text-align: center;
}

.auth-switch a {
  color: #2376bd;
  font-weight: 700;
}

.ai-history-page {
  padding: 34px 0 56px;
}

.task-center-page {
  display: grid;
  gap: 18px;
  padding: 34px 0 56px;
}

.task-center-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.task-center-head h1 {
  margin: 6px 0 4px;
  color: #153a5b;
  font-size: 30px;
}

.task-center-head p {
  margin: 0;
  color: #6e8498;
}

.task-center-card {
  border: 1px solid #d8e7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(29, 93, 148, .08);
}

.task-tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid #e6f0f7;
  background: #f7fbff;
}

.task-tab {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #5c7488;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.task-tab:hover,
.task-tab.active {
  color: #2376bd;
  background: #eaf5ff;
}

.task-tab-panel {
  padding: 18px;
}

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

.task-panel-head h2 {
  margin: 0;
  color: #153a5b;
  font-size: 20px;
}

.task-panel-head p {
  margin: 4px 0 0;
  color: #6e8498;
  font-size: 13px;
}

.manual-query-grid {
  margin-top: 4px;
}

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

.ai-history-head h1 {
  margin: 0;
  color: #153a5b;
  font-size: 28px;
}

.ai-history-list {
  display: grid;
  gap: 12px;
}

.ai-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d8e7f2;
  border-radius: 8px;
  background: #fff;
}

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

.ai-history-meta {
  color: #6e8498;
  font-size: 13px;
}

.ai-history-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ai-history-error {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 13px;
}

@media (max-width: 780px) {
  .task-center-head,
  .task-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .task-tabs {
    overflow-x: auto;
  }

  .task-tab {
    flex: 0 0 auto;
  }

  .task-tab-panel {
    padding: 14px;
  }

  .ai-history-head,
  .ai-history-item {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ai-history-head {
    flex-direction: column;
  }
}

.user-auth-wrap {
  background:
    radial-gradient(circle at 22% 18%, rgba(98, 178, 235, .24), transparent 28%),
    linear-gradient(135deg, #eef8ff 0%, #f8fcff 52%, #e8f4ff 100%);
}

.user-auth-card {
  border: 1px solid #d7e9f8;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 70px rgba(28, 104, 170, .16);
}

.user-auth-card .auth-title {
  margin: 0;
  color: #123f68;
}

.auth-subtitle {
  margin: 4px 0 0;
  color: #6f879b;
  font-size: 13px;
}

.user-auth-card input {
  min-height: 48px;
}

.user-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

[data-user-nav] {
  position: relative;
  flex: 0 0 auto;
}

.guest-nav,
.user-nav-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.user-nav-trigger {
  min-width: 150px;
  max-width: 205px;
  height: 44px;
  padding: 6px 12px;
  border: 1px solid #d3e7f6;
  border-radius: 12px;
  color: #16466f;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(25, 104, 171, .09);
  justify-content: space-between;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.user-nav-trigger:hover,
.user-nav-trigger[aria-expanded="true"] {
  border-color: #a9d3f0;
  box-shadow: 0 16px 34px rgba(25, 104, 171, .13);
}

.user-nav-copy,
.user-nav-name,
.user-nav-subtitle {
  display: block;
  min-width: 0;
}

.user-nav-copy {
  text-align: left;
}

.user-nav-name,
.user-nav-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-nav-name {
  color: #123f68;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.user-nav-subtitle {
  margin-top: 2px;
  color: #6f879b;
  font-size: 12px;
  line-height: 1.2;
}

.user-nav-arrow {
  flex: 0 0 auto;
  color: #6f879b;
  font-size: 12px;
}

.user-nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1005;
  width: 260px;
  border: 1px solid #d7e9f8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 88, 145, .18);
  padding: 8px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .14s ease, transform .14s ease;
}

.user-nav-menu[hidden] {
  display: block;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
}

.user-nav-card-head {
  padding: 10px 10px 12px;
  border-bottom: 1px solid #e7f1f8;
}

.user-nav-card-head strong,
.user-nav-card-head small,
.user-nav-card-head span {
  display: block;
}

.user-nav-card-head strong {
  color: #123f68;
  font-size: 15px;
  font-weight: 750;
}

.user-nav-card-head small {
  margin-top: 3px;
  color: #6f879b;
  font-size: 12px;
}

.user-nav-card-head span {
  margin-top: 3px;
  color: #89a0b2;
  font-size: 12px;
}

.user-nav-card-links {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #e7f1f8;
}

.user-nav-card-links a,
.user-nav-logout {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #16466f;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.user-nav-card-links a:hover,
.user-nav-card-links a.active {
  background: #eef7ff;
  color: #2376bd;
}

.user-nav-logout:hover {
  background: #fff1f0;
  color: #b42318;
}

.user-nav-logout {
  width: 100%;
  margin-top: 8px;
  color: #6b7f91;
}

@media (max-width: 720px) {
  .header-actions {
    gap: 8px;
  }

  .guest-nav .nav-link {
    display: none;
  }

  .user-nav-trigger {
    min-width: 92px;
    max-width: 138px;
    justify-content: center;
    padding: 0 10px;
  }

  .user-nav-subtitle {
    display: none;
  }

  .user-nav-name {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-nav-menu {
    right: 8px;
    width: min(260px, calc(100vw - 16px));
  }

  .user-auth-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

.account-page {
  display: grid;
  gap: 18px;
  padding: 34px 0 56px;
}

.account-hero-card,
.account-card,
.account-stat-card,
.account-note-card,
.account-action-card {
  border: 1px solid #d7e9f8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(28, 104, 170, .12);
}

.account-hero-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 22px;
  padding: 24px;
}

.account-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #2875b7;
  font-weight: 800;
  font-size: 13px;
}

.account-hero-card h1,
.account-card h1,
.account-card h2 {
  margin: 0;
  color: #123f68;
}

.account-hero-card p {
  margin: 8px 0 0;
  color: #6f879b;
}

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

.account-profile-grid div {
  padding: 12px;
  border-radius: 8px;
  background: #f2f8fd;
}

.account-profile-grid dt {
  color: #6f879b;
  font-size: 12px;
}

.account-profile-grid dd {
  margin: 4px 0 0;
  color: #123f68;
  font-weight: 800;
}

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

.account-stat-card,
.account-note-card {
  padding: 18px;
}

.account-stat-card span,
.account-note-card span {
  display: block;
  color: #6f879b;
  font-size: 13px;
}

.account-stat-card strong {
  display: block;
  margin-top: 6px;
  color: #123f68;
  font-size: 30px;
}

.account-note-card {
  grid-column: 1 / -1;
  background: #eef7ff;
}

.account-note-card strong {
  display: block;
  color: #16466f;
}

.account-card {
  padding: 20px;
}

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

.account-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.account-filters select,
.account-filters input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #c9deef;
  border-radius: 8px;
  color: #16466f;
  background: #fff;
}

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

.account-action-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  text-decoration: none;
}

.account-action-card strong {
  color: #123f68;
}

.account-action-card span {
  color: #6f879b;
}

.account-action-card.is-disabled {
  cursor: not-allowed;
  opacity: .65;
}

.account-table-wrap {
  overflow-x: auto;
}

.account-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.account-table th,
.account-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e6f0f7;
  text-align: left;
  vertical-align: top;
}

.account-table th {
  color: #587a93;
  font-size: 12px;
  font-weight: 800;
}

.account-table td {
  color: #173f62;
  font-size: 13px;
}

.is-positive {
  color: #087443 !important;
  font-weight: 800;
}

.is-negative {
  color: #b42318 !important;
  font-weight: 800;
}

.account-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  color: #5e7d95;
  font-weight: 700;
}

.account-pagination button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .account-hero-card,
  .account-stat-grid,
  .account-action-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-grid {
    grid-template-columns: 1fr;
  }

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

  .account-filters,
  .account-filters select,
  .account-filters input,
  .account-pagination {
    width: 100%;
  }

  .account-pagination {
    justify-content: space-between;
  }
}


/* 2026-08-14：首页移动端功能卡片顺序调整
   - PC / 平板保持原Hero内三张功能卡位置不变
   - 手机端隐藏Hero内原卡片，并在案例视频列表后显示同款卡片 */
.feature-row-mobile {
  display: none;
}

@media (max-width: 720px) {
  .hero .feature-row {
    display: none;
  }

  .showcase-panel .feature-row-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: none;
    margin: 16px 0 0;
  }

  .showcase-panel .feature-row-mobile .feature-card {
    width: 100%;
    min-height: 68px;
  }
}
