/* AI 创作 — 按设计稿 */
:root {
  --ai-blue: #1677ff;
  --ai-blue-dark: #0958d9;
  --ai-purple: #7c3aed;
  --ai-soft: #f0f5ff;
  --ai-bg: #f5f7fb;
  --ai-side: #0f172a;
  --ai-card: #fff;
  --ai-line: #e8eef6;
  --ai-text: #0f172a;
  --ai-muted: #64748b;
  --ai-radius: 14px;
}

.ai-app { margin: 0; background: var(--ai-bg); color: var(--ai-text); font-family: "PingFang SC","Microsoft YaHei",sans-serif; }
.ai-shell { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: 100vh; }

/* Side */
.ai-side {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  color: #e2e8f0;
  display: flex; flex-direction: column;
  padding: 20px 14px 72px;
  position: sticky; top: 0; height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  min-width: 0;
}
.ai-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.ai-side-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  display: flex; align-items: center; justify-content: center;
}
.ai-side-brand strong { font-size: 16px; color: #fff; }
.ai-side-nav {
  display: flex; flex-direction: column; gap: 4px; flex: 1;
  min-height: 0; min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.35) transparent;
}
.ai-side-nav::-webkit-scrollbar { width: 4px; height: 0; }
.ai-side-nav::-webkit-scrollbar:horizontal { display: none; height: 0; }
.ai-side-nav::-webkit-scrollbar-thumb { background: rgba(148,163,184,.35); border-radius: 4px; }
.ai-side-nav > a,
.ai-nav-parent {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 12px; border-radius: 10px;
  color: #94a3b8; font-size: 14px; text-decoration: none;
  transition: .15s;
  border: 0; background: transparent; cursor: pointer;
  font: inherit; text-align: left;
}
.ai-side-nav > a svg,
.ai-nav-parent > svg:first-child {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0;
}
.ai-side-nav > a:hover,
.ai-nav-parent:hover { background: rgba(255,255,255,.06); color: #fff; }
.ai-side-nav > a.is-active,
.ai-nav-parent.is-active { background: rgba(22,119,255,.22); color: #fff; }
.ai-nav-parent span { flex: 1; }
.ai-nav-caret {
  width: 16px; height: 16px; margin-left: auto; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  transition: transform .2s ease;
  opacity: .7;
}
.ai-nav-group.is-open .ai-nav-caret { transform: rotate(180deg); }
.ai-nav-group { display: flex; flex-direction: column; gap: 2px; }
.ai-nav-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 4px 12px;
  margin-left: 16px;
  border-left: 1px solid rgba(148, 163, 184, .16);
}
.ai-nav-group.is-open .ai-nav-sub { display: flex; }
.ai-nav-sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  transition: .15s;
  line-height: 1.4;
}
.ai-nav-sub a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.ai-nav-sub a:hover { background: rgba(255,255,255,.06); color: #fff; }
.ai-nav-sub a.is-active {
  background: rgba(22,119,255,.18);
  color: #93c5fd;
  font-weight: 600;
}
.ai-side-foot {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 6px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.ai-side-foot-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 12px;
  background: #0b1224;
  margin-bottom: 28px;
}
.ai-side-illu svg { width: 100%; height: auto; opacity: .9; }
.ai-side-foot p { margin: 6px 0 0; font-size: 12px; color: #64748b; line-height: 1.5; }

/* Main */
.ai-main { min-width: 0; display: flex; flex-direction: column; }
.ai-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--ai-line);
}
.ai-page-title { margin: 0; font-size: 18px; font-weight: 700; }
.ai-top-user { display: flex; align-items: center; gap: 14px; }
.ai-bell { color: #64748b; display: flex; }
.ai-bell:hover { color: var(--ai-blue); }
.ai-user {
  display: flex; align-items: center; gap: 8px; color: var(--ai-text); text-decoration: none; font-size: 14px;
}
.ai-user img, .ai-avatar-ph {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
}
.ai-avatar-ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: #dbeafe; color: var(--ai-blue); font-size: 12px; font-weight: 700;
}
.ai-user em { font-style: normal; }
.ai-bal-chip {
  font-size: 13px; color: #64748b; background: #fff7ed; border: 1px solid #fed7aa;
  padding: 4px 10px; border-radius: 999px;
}
.ai-bal-chip b { color: #ea580c; }

/* Hero */
.ai-hero {
  position: relative; margin: 20px 28px 0; border-radius: 18px; overflow: hidden;
  min-height: 220px; color: #fff;
}
.ai-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: transparent;
}
.ai-hero-content {
  position: relative;
  z-index: 1;
  padding: 28px 32px 24px;
  min-height: inherit;
  box-sizing: border-box;
  background:
    url('/theme/aicreate/img/hero-bg.jpg') right center / cover no-repeat;
}
.ai-hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(15, 23, 42, .52) 0%, rgba(15, 23, 42, .18) 46%, rgba(15, 23, 42, .04) 72%, transparent 100%);
}
.ai-hero-content > * { position: relative; z-index: 1; }
.ai-hero-content h1 {
  margin: 0 0 8px; font-size: 28px; font-weight: 800;
  text-shadow: 0 2px 14px rgba(15, 23, 42, .35);
}
.ai-hero-content > p {
  margin: 0 0 18px; font-size: 14px; opacity: .95; max-width: 520px; line-height: 1.6;
  text-shadow: 0 1px 10px rgba(15, 23, 42, .28);
}
.ai-hero-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.ai-hero-card {
  flex: 1; min-width: 200px; max-width: 280px; text-align: left;
  border: 0; border-radius: 14px; padding: 16px 18px; cursor: pointer;
  color: #fff; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); transition: transform .15s;
}
.ai-hero-card:hover { transform: translateY(-2px); }
.ai-hero-card.is-image { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.ai-hero-card.is-video { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.ai-hc-ico {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.ai-hero-card strong { font-size: 15px; }
.ai-hero-card small { font-size: 12px; opacity: .85; }
a.ai-hero-card { text-decoration: none; color: #fff; }
.ai-hero-sm { min-height: 120px; }
.ai-hero-sm .ai-hero-content { padding: 22px 28px; }
.ai-hero-sm .ai-hero-content h1 { font-size: 22px; }
.ai-hero-video .ai-hero-content {
  background:
    linear-gradient(105deg, rgba(15,23,42,.55) 0%, rgba(109,40,217,.35) 55%, rgba(124,58,237,.2) 100%),
    url('/theme/aicreate/img/hero-bg.jpg') right center / cover no-repeat;
}
.ai-hero-video .ai-hero-content::before {
  background: linear-gradient(100deg, rgba(49, 46, 129, .45) 0%, rgba(15, 23, 42, .15) 50%, transparent 78%);
}

.ai-hub-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px;
  margin: 8px 28px 32px;
}
.ai-hub-tile {
  display: block; padding: 18px 20px; border-radius: 14px;
  background: #fff; border: 1px solid var(--ai-line); text-decoration: none; color: inherit;
  box-shadow: 0 4px 14px rgba(15,35,80,.04); transition: border-color .15s, transform .15s;
}
.ai-hub-tile:hover { border-color: #93c5fd; transform: translateY(-1px); }
.ai-hub-tile strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ai-hub-tile span { font-size: 13px; color: #64748b; }

.ai-model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-model-card {
  text-align: left; border: 1.5px solid var(--ai-line); border-radius: 12px;
  background: #fff; padding: 14px 16px; cursor: pointer;
}
.ai-model-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ai-model-card small { font-size: 12px; color: #64748b; line-height: 1.45; }
.ai-model-card.is-active { border-color: var(--ai-blue); background: #f0f7ff; box-shadow: 0 0 0 3px rgba(22,119,255,.12); }

.ai-panel-video { padding-top: 18px; }
.ai-model-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-pill {
  flex: 1; min-width: 160px; text-align: left; cursor: pointer;
  border: 1.5px solid var(--ai-line); border-radius: 12px; background: #fff; padding: 12px 14px;
}
.ai-pill strong { display: block; font-size: 14px; }
.ai-pill span { display: block; margin-top: 4px; font-size: 12px; color: #94a3b8; line-height: 1.4; }
.ai-pill.is-active { border-color: var(--ai-blue); background: #f0f7ff; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }

.ai-scene-tabs {
  display: flex; gap: 6px; padding: 4px; background: #f1f5f9; border-radius: 12px; width: fit-content; max-width: 100%;
}
.ai-scene-tab {
  border: 0; background: transparent; padding: 9px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer;
}
.ai-scene-tab.is-active { background: #fff; color: var(--ai-blue); box-shadow: 0 1px 4px rgba(15,35,80,.08); }

.ai-slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-slot-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ai-slot {
  border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; padding: 12px; min-height: 160px;
  display: flex; flex-direction: column; gap: 8px;
}
.ai-slot-hd { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ai-slot-hd b { color: #0f172a; }
.ai-slot-hd em { font-style: normal; font-size: 11px; color: #94a3b8; }
.ai-slot-body {
  flex: 1; min-height: 88px; border-radius: 10px; background: #fff; border: 1px solid var(--ai-line);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.ai-slot-body img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ai-slot-empty { font-size: 12px; color: #94a3b8; padding: 8px; text-align: center; }
.ai-slot-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-slot-thumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; align-content: flex-start; }
.ai-thumb {
  position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--ai-line);
}
.ai-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-thumb button {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: rgba(15,23,42,.7); color: #fff; font-size: 12px; line-height: 18px; cursor: pointer; padding: 0;
}
.ai-file-chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px;
  background: #eff6ff; color: var(--ai-blue); font-size: 12px; font-weight: 600;
}
.ai-url-clip { display: block; margin-top: 6px; font-size: 11px; color: #94a3b8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ai-param-row { margin-bottom: 12px; }
.ai-param-label { display: block; font-size: 13px; color: #64748b; margin-bottom: 8px; font-weight: 600; }
.ai-field-hint { margin: 0 0 10px; font-size: 12px; color: #94a3b8; line-height: 1.5; }
.ai-ref-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ai-url-input {
  flex: 1; min-width: 180px; height: 36px; border: 1px solid var(--ai-line);
  border-radius: 8px; padding: 0 12px; font-size: 13px; background: #f8fafc;
}
.ai-btn-ghost {
  height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ai-line);
  background: #fff; color: #64748b; cursor: pointer; font-size: 13px;
}
.ai-ref-preview {
  margin-top: 12px; width: 140px; height: 140px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--ai-line); background: #f8fafc;
}
.ai-ref-preview img { width: 100%; height: 100%; object-fit: cover; }
.ai-inline-opts {
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 10px;
}
.ai-inline-opts label { font-size: 13px; color: #475569; display: flex; flex-direction: column; gap: 6px; }
.ai-inline-opts select, .ai-seed-input {
  height: 36px; min-width: 120px; border: 1px solid var(--ai-line); border-radius: 8px;
  padding: 0 10px; background: #f8fafc; font-size: 13px;
}
.ai-check { flex-direction: row !important; align-items: center; gap: 8px !important; cursor: pointer; }
.ai-check input { width: auto; }
.ai-size.is-disabled, .ai-size:disabled { opacity: .45; cursor: not-allowed; }
.ai-video-opts-open { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.ai-video-opts-open label { font-size: 13px; color: #475569; display: flex; flex-direction: column; gap: 6px; }
.ai-video-opts-open select {
  height: 36px; min-width: 110px; border: 1px solid var(--ai-line); border-radius: 8px;
  padding: 0 10px; background: #f8fafc;
}
.ai-uc-link {
  display: block; margin-top: 10px; text-align: center; font-size: 13px;
  color: var(--ai-blue); text-decoration: none; font-weight: 600;
}

/* Body */
.ai-body {
  display: grid; grid-template-columns: minmax(0,1fr) 280px;
  gap: 20px; padding: 20px 28px 40px; align-items: start;
}
.ai-panel {
  background: #fff; border-radius: var(--ai-radius); border: 1px solid var(--ai-line);
  box-shadow: 0 4px 16px rgba(15,35,80,.04); padding: 8px 22px 22px;
}
.ai-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--ai-line); margin: 0 -22px 18px;
  padding: 0 22px;
}
.ai-tab {
  border: 0; background: transparent; padding: 14px 18px; font-size: 14px; font-weight: 600;
  color: #64748b; cursor: pointer; position: relative;
}
.ai-tab.is-active { color: var(--ai-blue); }
.ai-tab.is-active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px;
  background: var(--ai-blue); border-radius: 2px;
}

.ai-step { margin-bottom: 22px; }
.ai-step h3 {
  margin: 0 0 12px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.ai-step h3 em {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ai-soft); color: var(--ai-blue); font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-step h3 span { font-weight: 400; color: #94a3b8; font-size: 13px; }

.ai-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-size {
  width: 100px; border: 1.5px solid var(--ai-line); border-radius: 12px;
  background: #fff; padding: 10px 8px; cursor: pointer; text-align: center;
  transition: .15s;
}
.ai-size:hover { border-color: #93c5fd; }
.ai-size.is-active { border-color: var(--ai-blue); background: #eff6ff; }
.ai-size-box {
  display: block; width: 42px; margin: 0 auto 8px; background: #e2e8f0; border-radius: 4px;
  max-height: 36px;
}
.ai-size.is-active .ai-size-box { background: #93c5fd; }
.ai-size strong { display: block; font-size: 13px; color: #0f172a; }
.ai-size small { font-size: 11px; color: #94a3b8; }

.ai-video-opts {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px;
}
.ai-video-opts label {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569;
}
.ai-video-opts select {
  height: 34px; border: 1px solid var(--ai-line); border-radius: 8px; padding: 0 10px; background: #fff;
}

.ai-styles { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-style {
  width: 84px; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: center;
}
.ai-style-thumb {
  display: block; width: 84px; height: 64px; border-radius: 10px; border: 2px solid transparent;
  background: #e2e8f0 center/cover; margin-bottom: 6px; transition: .15s;
}
.ai-style.is-active .ai-style-thumb { border-color: var(--ai-blue); box-shadow: 0 0 0 2px rgba(22,119,255,.2); }
.ai-style em { font-style: normal; font-size: 12px; color: #475569; }
.ai-st-default { background: linear-gradient(135deg,#cbd5e1,#94a3b8); }
.ai-st-realistic { background: linear-gradient(135deg,#fcd34d,#f97316); }
.ai-st-anime { background: linear-gradient(135deg,#f9a8d4,#a78bfa); }
.ai-st-illustration { background: linear-gradient(135deg,#6ee7b7,#3b82f6); }
.ai-st-oil { background: linear-gradient(135deg,#fbbf24,#b45309); }
.ai-st-cyberpunk { background: linear-gradient(135deg,#22d3ee,#7c3aed); }
.ai-st-watercolor { background: linear-gradient(135deg,#fda4af,#93c5fd); }

.ai-prompt-wrap {
  border: 1px solid var(--ai-line); border-radius: 12px; background: #f8fafc; overflow: hidden;
}
.ai-prompt-wrap textarea {
  width: 100%; border: 0; background: transparent; resize: vertical; min-height: 110px;
  padding: 14px; font-size: 14px; line-height: 1.6; outline: none; font-family: inherit;
}
.ai-prompt-meta {
  display: flex; justify-content: space-between; padding: 8px 14px 10px;
  font-size: 12px; color: #94a3b8; border-top: 1px solid var(--ai-line);
}
.ai-prompt-meta a { color: var(--ai-blue); text-decoration: none; }

.ai-form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ai-line);
}
.ai-cost { font-size: 14px; color: #475569; display: flex; align-items: center; gap: 6px; }
.ai-cost b { color: #ea580c; font-size: 18px; }
.ai-coin { color: #f59e0b; font-size: 12px; }
.ai-tip {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid #cbd5e1; color: #94a3b8;
  font-size: 11px; font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  cursor: help;
}
.ai-submit {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 28px;
  border: 0; border-radius: 999px; background: linear-gradient(135deg, #1677ff, #3b82f6);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(22,119,255,.3);
}
.ai-submit:hover { background: linear-gradient(135deg, #0958d9, #2563eb); }
.ai-submit:disabled { opacity: .65; cursor: not-allowed; }
.ai-form-tip { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; color: #ea580c; }

.ai-result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ai-line); }
.ai-result h3 { margin: 0 0 12px; font-size: 15px; }
.ai-result-box img, .ai-result-box video {
  max-width: 100%; border-radius: 12px; display: block; background: #0f172a;
}
.ai-result-box a { color: var(--ai-blue); font-size: 13px; }

/* Right */
.ai-right { display: flex; flex-direction: column; gap: 16px; }
.ai-user-card {
  background: linear-gradient(145deg, #fff7ed, #fff); border: 1px solid #fed7aa;
  border-radius: var(--ai-radius); padding: 16px; position: relative;
}
.ai-uc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ai-uc-badge {
  font-size: 12px; font-weight: 700; color: #92400e; background: #fef3c7;
  padding: 3px 8px; border-radius: 6px;
}
.ai-uc-crown { color: #f59e0b; font-size: 16px; }
.ai-uc-points { display: flex; align-items: baseline; justify-content: space-between; }
.ai-uc-points span { font-size: 13px; color: #78716c; }
.ai-uc-points strong { font-size: 26px; color: #ea580c; font-weight: 800; }
.ai-uc-recharge {
  display: block; margin-top: 12px; text-align: center; height: 34px; line-height: 34px;
  border-radius: 8px; background: var(--ai-blue); color: #fff !important; font-size: 13px; font-weight: 600;
  text-decoration: none !important;
}
.ai-uc-recharge:hover { background: var(--ai-blue-dark); }

.ai-recent {
  background: #fff; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); padding: 14px 14px 10px;
}
.ai-recent h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.ai-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ai-recent-list li { display: flex; gap: 10px; align-items: center; }
.ai-recent-thumb {
  width: 48px; height: 48px; border-radius: 8px; background: #e2e8f0; overflow: hidden;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; position: relative;
}
.ai-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-play {
  position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15,23,42,.65); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ai-ph { color: #94a3b8; font-size: 12px; }
.ai-recent-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ai-recent-meta strong { font-size: 13px; font-weight: 650; }
.ai-recent-meta span, .ai-recent-meta time { font-size: 11px; color: #94a3b8; }
.ai-recent-more { display: block; text-align: center; margin-top: 10px; font-size: 12px; color: var(--ai-blue); text-decoration: none; }
.ai-empty-sm { margin: 0; font-size: 13px; color: #94a3b8; text-align: center; padding: 16px 0; }

/* Pages */
.ai-page { padding: 20px 28px 40px; }
.ai-filter-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.ai-filter-bar a {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #64748b;
  background: #fff; border: 1px solid var(--ai-line); text-decoration: none;
}
.ai-filter-bar a.is-active { background: var(--ai-blue); color: #fff; border-color: var(--ai-blue); }
.ai-works-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px;
}
.ai-work-card {
  background: #fff; border: 1px solid var(--ai-line); border-radius: 12px; overflow: hidden;
}
.ai-work-card.is-running { outline: 1px solid #bfdbfe; }
.ai-work-pending {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: #0f172a; color: #fff; min-height: 160px;
}
.ai-work-pending .ai-wait-spin {
  width: 28px; height: 28px; margin: 0;
  border-width: 2px; border-color: rgba(255,255,255,.25); border-top-color: #60a5fa;
}
.ai-work-st { font-size: 13px; font-weight: 600; color: #93c5fd; }
.ai-work-mini-bar {
  width: 56%; height: 4px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden;
}
.ai-work-mini-bar i {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, #3b82f6, #a78bfa);
  animation: ai-bar 1.2s ease-in-out infinite;
}
@keyframes ai-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}
.ai-work-media {
  display: block; aspect-ratio: 16/10; background: #0f172a; position: relative; overflow: hidden;
}
.ai-work-media img, .ai-work-media video { width: 100%; height: 100%; object-fit: cover; }
.ai-work-body { padding: 12px; }
.ai-work-body p {
  margin: 0 0 8px; font-size: 13px; color: #334155; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ai-work-meta { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; }
.ai-work-actions { display: flex; gap: 8px; margin-top: 10px; }
.ai-btn-sm {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--ai-line); background: #fff;
  color: #334155; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.ai-btn-sm:hover { border-color: #93c5fd; color: var(--ai-blue); }
.ai-btn-primary-sm {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 0; border-radius: 9px; background: var(--ai-blue); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.ai-btn-primary-sm:hover { filter: brightness(1.05); }
.ai-btn-primary-sm:disabled { opacity: .65; cursor: default; }
.ai-link-btn {
  border: 0; background: none; padding: 0; color: var(--ai-blue);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.ai-link-btn:disabled { opacity: .6; cursor: default; }
.ai-err-tip {
  display: block; margin-top: 4px; max-width: 220px;
  font-size: 12px; color: #94a3b8; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ai-btn-danger { color: #dc2626; border-color: #fecaca; }
.ai-btn-danger:hover { background: #fef2f2; border-color: #f87171; color: #b91c1c; }

.ai-wait {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ai-wait[hidden] { display: none !important; }
.ai-wait-card {
  width: min(420px, 100%); background: #fff; border-radius: 16px;
  padding: 28px 24px 22px; text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}
.ai-wait-spin {
  width: 42px; height: 42px; margin: 0 auto 14px;
  border: 3px solid #dbeafe; border-top-color: var(--ai-blue);
  border-radius: 50%; animation: ai-spin 0.8s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-wait-card strong { display: block; font-size: 17px; color: #0f172a; }
.ai-wait-card p { margin: 8px 0 16px; font-size: 13px; color: #64748b; line-height: 1.55; }
.ai-wait-bar {
  height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 10px;
}
.ai-wait-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width .4s ease;
}
.ai-wait-status { display: block; font-size: 12px; color: var(--ai-blue); font-weight: 600; }
.ai-wait-actions {
  margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.ai-wait-bg {
  border: 0; background: #f1f5f9; color: #334155;
  border-radius: 10px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ai-wait-bg:hover { background: #e2e8f0; }
#aiWaitPull { background: #2563eb; color: #fff; }
#aiWaitPull:hover { filter: brightness(1.05); background: #2563eb; }
body.ai-waiting { overflow: hidden; }
body.ai-waiting-bg { overflow: auto; }
.ai-bg-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  background: #0f172a; color: #fff; border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 12px 30px rgba(15, 23, 42, .28);
  font-size: 13px; max-width: min(360px, calc(100vw - 32px));
}
.ai-bg-toast[hidden] { display: none !important; }
.ai-bg-toast button {
  border: 0; background: #3b82f6; color: #fff; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.ai-result-actions { margin: 10px 0 0; font-size: 13px; }
.ai-result-actions a { color: var(--ai-blue); text-decoration: none; font-weight: 600; }

.ai-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.ai-table th, .ai-table td { padding: 12px 14px; border-bottom: 1px solid var(--ai-line); text-align: left; font-size: 13px; }
.ai-table th { background: #f8fafc; color: #64748b; font-weight: 600; }
.ai-td-prompt { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-st { font-size: 12px; font-weight: 600; }
.ai-st.ok { color: #16a34a; }
.ai-st.fail { color: #dc2626; }
.ai-st.run { color: var(--ai-blue); }
.ai-empty {
  text-align: center; padding: 48px; color: #94a3b8; background: #fff;
  border-radius: 12px; border: 1px dashed var(--ai-line);
}
.ai-pager { margin-top: 24px; text-align: center; font-size: 13px; }
.ai-pager a, .ai-pager span {
  display: inline-block; margin: 0 3px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--ai-line); color: #475569; text-decoration: none; background: #fff;
}
.ai-pager .active, .ai-pager .current { background: var(--ai-blue); color: #fff; border-color: var(--ai-blue); }

/* Auth / Member — default (register / activate) */
.ai-auth-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(96,165,250,.35), transparent 55%),
    linear-gradient(180deg, #e8f1ff 0%, #f5f7fb 100%);
  padding: 32px 16px;
}
.ai-auth-wrap { width: min(100%, 420px); }
.ai-auth-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #0f172a;
}
.ai-auth-brand strong { display: block; font-size: 18px; }
.ai-auth-brand p { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.ai-auth-card {
  background: #fff; border: 1px solid var(--ai-line); border-radius: 16px;
  padding: 28px 26px 22px; box-shadow: 0 12px 32px rgba(15,35,80,.08);
}
.ai-auth-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.ai-auth-sub { margin: 0 0 18px; font-size: 13px; color: #64748b; }
.ai-auth-links { margin: 14px 0 0; text-align: center; font-size: 13px; color: #64748b; }
.ai-auth-links a { color: var(--ai-blue); text-decoration: none; }
.ai-form-fields label {
  display: block; margin: 12px 0 6px; font-size: 13px; color: #475569; font-weight: 600;
}
.ai-form-fields label:first-of-type { margin-top: 0; }
.ai-form-fields input[type=text],
.ai-form-fields input[type=password],
.ai-form-fields input[type=email] {
  width: 100%; height: 42px; border: 1px solid var(--ai-line); border-radius: 10px;
  padding: 0 12px; font-size: 14px; outline: none; background: #f8fafc;
}
.ai-form-fields input:focus { border-color: #93c5fd; background: #fff; box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.ai-form-fields input:disabled { opacity: .7; cursor: not-allowed; }
.ai-form-fields .ai-submit { margin-top: 18px; }
.ai-captcha-row { display: flex; gap: 10px; align-items: center; }
.ai-captcha-row input { flex: 1; }
.ai-captcha-row img {
  height: 42px; border-radius: 8px; cursor: pointer; border: 1px solid var(--ai-line); background: #fff;
}
.ai-agree {
  display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin-top: 14px !important;
}
.ai-agree input { width: auto !important; height: auto !important; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Login — minimal professional AI */
.ai-auth-page.ai-login {
  position: relative;
  overflow: hidden;
  padding: 48px 20px;
  color: #e8eef7;
  background: #070b14;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ai-login-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ai-login-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(125, 211, 252, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 55% 50% at 50% 42%, #000 10%, transparent 72%);
  animation: aiLoginDrift 28s linear infinite;
}
.ai-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.ai-login-orb-a {
  width: 420px; height: 420px;
  left: 50%; top: 18%;
  transform: translateX(-70%);
  background: rgba(14, 165, 233, .28);
  animation: aiLoginPulse 10s ease-in-out infinite;
}
.ai-login-orb-b {
  width: 360px; height: 360px;
  left: 50%; top: 42%;
  transform: translateX(10%);
  background: rgba(99, 102, 241, .18);
  animation: aiLoginPulse 12s ease-in-out infinite reverse;
}
.ai-login-ring {
  position: absolute;
  left: 50%; top: 36%;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, .08);
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, .04),
    0 0 80px rgba(14, 165, 233, .06);
}
.ai-login-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 36px 32px 28px;
  border-radius: 16px;
  background: rgba(12, 18, 32, .72);
  border: 1px solid rgba(148, 163, 184, .14);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: aiLoginIn .55s cubic-bezier(.22, 1, .36, 1) both;
}
.ai-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.ai-login-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #e0f2fe;
  background: linear-gradient(145deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
  box-shadow: 0 8px 20px rgba(14, 165, 233, .28);
}
.ai-login-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #f8fafc;
}
.ai-login-brand span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.ai-login-panel > h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #f1f5f9;
}
.ai-login-lead {
  margin: 0 0 26px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.ai-login-form { display: flex; flex-direction: column; gap: 16px; }
.ai-login-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ai-login-field > span {
  font-size: 12px;
  font-weight: 500;
  color: #8b9bb4;
  letter-spacing: .04em;
}
.ai-login-control {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, .14);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, .55) 0%, rgba(15, 23, 42, .72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 0 0 0 rgba(14, 165, 233, 0);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ai-login-control:hover {
  border-color: rgba(125, 211, 252, .32);
  background:
    linear-gradient(180deg, rgba(36, 48, 70, .65) 0%, rgba(15, 23, 42, .8) 100%);
}
.ai-login-control:focus-within {
  border-color: rgba(56, 189, 248, .65);
  background:
    linear-gradient(180deg, rgba(15, 40, 64, .75) 0%, rgba(8, 18, 36, .88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(125, 211, 252, .08),
    0 0 0 3px rgba(14, 165, 233, .16),
    0 0 24px rgba(14, 165, 233, .12);
}
.ai-login-ico {
  flex-shrink: 0;
  color: #64748b;
  transition: color .18s;
}
.ai-login-control:focus-within .ai-login-ico { color: #7dd3fc; }
.ai-login-control input,
.ai-login-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  width: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #f1f5f9 !important;
  font: inherit;
  font-size: 14px;
  letter-spacing: .01em;
  outline: 0;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.ai-login-control input::placeholder { color: #4b5d78; }
.ai-login-control input:-webkit-autofill,
.ai-login-control input:-webkit-autofill:hover,
.ai-login-control input:-webkit-autofill:focus,
.ai-login-control input:autofill,
.ai-login-field input:-webkit-autofill,
.ai-login-field input:-webkit-autofill:hover,
.ai-login-field input:-webkit-autofill:focus,
.ai-login-field input:autofill {
  -webkit-text-fill-color: #f1f5f9 !important;
  caret-color: #7dd3fc;
  border: 0 !important;
  border-radius: 0;
  background-color: transparent !important;
  background-image: none !important;
  transition: background-color 99999s ease-out 0s;
  box-shadow: 0 0 0 1000px #111827 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #111827 inset !important;
}
.ai-login-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
  align-items: stretch;
}
.ai-login-captcha-btn {
  height: 48px;
  padding: 0;
  border: 1px solid rgba(125, 211, 252, .14);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, .72);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.ai-login-captcha-btn:hover {
  border-color: rgba(56, 189, 248, .45);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}
.ai-login-captcha-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-login-btn {
  margin-top: 6px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 40%, #2563eb 100%);
  color: #04101f;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(14, 165, 233, .28);
  transition: filter .15s, transform .12s, box-shadow .2s;
}
.ai-login-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(14, 165, 233, .36);
}
.ai-login-btn:active { transform: translateY(1px); }
.ai-login-btn:disabled { opacity: .65; cursor: wait; filter: none; }
.ai-login-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}
.ai-login-links a {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: color .15s;
}
.ai-login-links a:hover { color: #7dd3fc; }
.ai-login-tip {
  margin: 0;
  min-height: 1.25em;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
.ai-login-tip.is-ok { color: #34d399; }
.ai-login-tip.is-err { color: #f87171; }
.ai-login-tip.is-pending { color: #7dd3fc; }
@keyframes aiLoginIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes aiLoginPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: .7; }
}
@keyframes aiLoginDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -56px, 0); }
}
@media (max-width: 480px) {
  .ai-login-panel { padding: 28px 20px 22px; }
  .ai-login-panel > h1 { font-size: 22px; }
  .ai-login-captcha { grid-template-columns: 1fr 96px; }
}

.ai-side-user-mini {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 16px; color: #cbd5e1;
}
.ai-side-user-mini img, .ai-side-user-mini .ai-avatar-ph {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ai-side-user-mini strong { display: block; color: #fff; font-size: 14px; }
.ai-side-user-mini span { font-size: 12px; color: #64748b; }

.ai-member-panel {
  background: #fff; border: 1px solid var(--ai-line); border-radius: 14px;
  padding: 22px 24px; max-width: 560px; box-shadow: 0 4px 16px rgba(15,35,80,.04);
}
.ai-muted { margin: 0 0 16px; font-size: 14px; color: #64748b; line-height: 1.6; }
.ai-buy-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 18px; border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #dbeafe;
}
.ai-buy-banner p { margin: 0; flex: 1; min-width: 180px; font-size: 13px; color: #475569; }
.ai-buy-banner .ai-uc-recharge { margin-top: 0; padding: 0 16px; display: inline-flex; align-items: center; height: 34px; }

.ai-avatar-box { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ai-avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; font-size: 22px; }
.ai-upload-btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: 8px; background: var(--ai-soft); color: var(--ai-blue);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.ai-upload-btn:hover { background: #dbeafe; }

.ai-welcome {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1px solid #dbeafe;
  border-radius: 14px; padding: 22px 24px; margin-bottom: 16px;
}
.ai-welcome h2 { margin: 0 0 6px; font-size: 22px; }
.ai-welcome p { margin: 0; color: #64748b; font-size: 14px; }
.ai-stat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px;
}
.ai-stat-card {
  background: #fff; border: 1px solid var(--ai-line); border-radius: 12px; padding: 16px;
}
.ai-stat-card span { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.ai-stat-card strong { font-size: 18px; color: #0f172a; }
.ai-quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-quick-links a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 999px; background: #fff; border: 1px solid var(--ai-line);
  color: #334155; text-decoration: none; font-size: 13px; font-weight: 600;
}
.ai-quick-links a:hover { border-color: #93c5fd; color: var(--ai-blue); }

.ai-empty { padding: 28px 12px; text-align: center; color: #94a3b8; font-size: 14px; }
.ai-list-card {
  border: 1px solid var(--ai-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #f8fafc;
}
.ai-list-hd { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #475569; margin-bottom: 8px; }
.ai-tag { font-size: 12px; color: var(--ai-blue); font-weight: 600; }
.ai-list-body { margin: 0; padding-left: 18px; color: #334155; font-size: 14px; line-height: 1.7; }
.ai-list-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: #64748b; }
.ai-list-ft .ai-submit { height: 32px; padding: 0 14px; font-size: 13px; }
.ai-table-wrap { overflow-x: auto; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ai-table th, .ai-table td { padding: 10px 8px; border-bottom: 1px solid var(--ai-line); text-align: left; color: #334155; }
.ai-table th { color: #94a3b8; font-weight: 600; }
.ai-link { color: var(--ai-blue); text-decoration: none; font-weight: 600; }
.ai-comment-list { list-style: none; margin: 0; padding: 0; }
.ai-comment-list li { padding: 14px 0; border-bottom: 1px solid var(--ai-line); }
.ai-comment-body { font-size: 14px; color: #0f172a; line-height: 1.6; }
.ai-comment-meta { margin-top: 6px; font-size: 12px; color: #94a3b8; }
.ai-comment-meta a { color: var(--ai-blue); text-decoration: none; }

@media (max-width: 1100px) {
  .ai-shell { grid-template-columns: 1fr; }
  .ai-side {
    position: static; height: auto;
    flex-direction: column; flex-wrap: nowrap; gap: 8px;
    overflow: hidden;
  }
  .ai-side-nav {
    flex-direction: row; flex-wrap: wrap;
    overflow-x: hidden; overflow-y: visible;
  }
  .ai-nav-group { width: 100%; }
  .ai-nav-sub { margin-left: 8px; }
  .ai-side-foot { display: none; }
  .ai-body { grid-template-columns: 1fr; }
  .ai-works-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ai-hero, .ai-body, .ai-page, .ai-top { margin-left: 12px; margin-right: 12px; padding-left: 12px; padding-right: 12px; }
  .ai-hero { margin-left: 12px; margin-right: 12px; }
  .ai-works-grid { grid-template-columns: 1fr; }
  .ai-hero-content h1 { font-size: 22px; }
  .ai-stat-grid { grid-template-columns: 1fr; }
  .ai-side-user-mini { width: 100%; }
  .ai-hub-grid { grid-template-columns: 1fr; margin-left: 12px; margin-right: 12px; }
  .ai-model-grid { grid-template-columns: 1fr; }
  .ai-slot-grid, .ai-slot-grid-3 { grid-template-columns: 1fr; }
  .ai-scene-tabs { width: 100%; }
  .ai-scene-tab { flex: 1; text-align: center; padding-left: 8px; padding-right: 8px; }
}
