:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0b111d;
  --panel: rgba(15, 23, 36, 0.88);
  --panel-glass: rgba(13, 20, 33, 0.78);
  --panel-hover: rgba(18, 30, 50, 0.92);
  --panel-solid: #111a2a;
  --panel-soft: #172235;
  --ink: #f8fafc;
  --text: var(--ink);
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.32);
  --teal: #22d3ee;
  --teal-soft: rgba(34, 211, 238, 0.12);
  --green: #10b981;
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --orange-soft: rgba(245, 158, 11, 0.14);
  --red: #fb7185;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 22px 56px rgba(8, 145, 178, 0.22);
  --glow-amber: 0 0 0 1px rgba(245, 158, 11, 0.22), 0 20px 48px rgba(245, 158, 11, 0.18);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #060912 0%, #0a1220 46%, #101828 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 34%, rgba(245, 158, 11, 0.07)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(520px circle at var(--cursor-x, 76%) var(--cursor-y, 18%), rgba(34, 211, 238, 0.13), transparent 42%),
    radial-gradient(360px circle at calc(var(--cursor-x, 76%) - 18%) calc(var(--cursor-y, 18%) + 16%), rgba(245, 158, 11, 0.08), transparent 46%);
  transition: background 120ms linear;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.32));
  animation: logo-float 4.5s ease-in-out infinite;
}

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

.nav-item {
  position: relative;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-item span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--teal);
  background: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.nav-item.active,
.nav-item:hover {
  color: var(--ink);
  border-color: rgba(34, 211, 238, 0.28);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.48));
  transform: translateX(3px);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: -16px;
  width: 3px;
  height: 24px;
  border-radius: 0 3px 3px 0;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.invite-card {
  margin-top: auto;
  min-height: 86px;
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.invite-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.52);
  box-shadow: var(--shadow-strong);
}

.gift {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.12);
  font-size: 15px;
  font-weight: 950;
}

.invite-card strong,
.invite-card small {
  display: block;
}

.invite-card small {
  margin-top: 4px;
  color: var(--muted);
}

.invite-card em {
  color: var(--orange);
  font-style: normal;
  font-size: 24px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(22px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.credit-pill,
.vip-pill,
.user-menu {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.credit-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.62);
}

.credit-pill strong {
  color: var(--teal);
  font-size: 22px;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.36);
}

.credit-pill.bump {
  animation: credit-bump 480ms ease;
}

.api-status {
  min-width: 108px;
  justify-content: center;
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
  font-size: 13px;
  font-weight: 900;
}

.api-status.connected {
  border-color: rgba(16, 185, 129, 0.36);
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.28);
}

.vip-pill {
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 8px;
  padding: 0 16px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.12);
  font-weight: 900;
}

.user-menu {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.user-menu button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.78);
  font-size: 13px;
  font-weight: 900;
  transition: border-color 160ms ease, color 160ms ease;
}

.user-menu button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.top-user-text {
  display: grid;
  gap: 2px;
}

.top-user-text small {
  color: var(--muted-2);
  font-size: 11px;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.26), rgba(99, 102, 241, 0.18));
  font-weight: 950;
}

.announcement-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 32px 0;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(15, 23, 42, 0.82) 46%),
    rgba(8, 13, 23, 0.82);
  box-shadow: var(--glow-cyan);
}

.announcement-strip[hidden] {
  display: none;
}

.announcement-strip > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.announcement-strip span {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 9px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.28);
  font-size: 12px;
  font-weight: 950;
}

.announcement-strip strong {
  color: var(--ink);
  font-size: 16px;
}

.announcement-strip p {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.announcement-strip button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.7);
  font-size: 20px;
  line-height: 1;
}

.announcement-strip[data-type="maintenance"] {
  border-color: rgba(245, 158, 11, 0.34);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.84) 46%),
    rgba(8, 13, 23, 0.84);
  box-shadow: var(--glow-amber);
}

.announcement-strip[data-type="maintenance"] span {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.42);
}

.announcement-strip[data-type="warning"] {
  border-color: rgba(251, 113, 133, 0.34);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.18), 0 20px 48px rgba(127, 29, 29, 0.18);
}

.announcement-strip[data-type="warning"] span {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.4);
}

.announcement-strip[data-type="update"] {
  border-color: rgba(16, 185, 129, 0.34);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.18), 0 20px 48px rgba(6, 78, 59, 0.18);
}

.announcement-strip[data-type="update"] span {
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.38);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  padding: 24px 32px 32px;
}

.view {
  display: none;
}

.view.active {
  display: grid;
}

.page-panel {
  margin: 24px 32px 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.tool-area {
  min-width: 0;
}

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

.section-title p,
.rail-head button,
.tool-card p,
.plan-inner p,
.tips-grid p,
label {
  color: var(--muted);
}

.section-title.inline {
  align-items: center;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-title h2,
.rail-head h2,
.generator-card h2,
.history-card h2,
.tips-panel h2 {
  color: var(--ink);
}

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

.tool-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.tool-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.62);
  font-weight: 900;
}

.tool-group em {
  min-width: 22px;
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--teal);
  background: rgba(34, 211, 238, 0.1);
  font-size: 12px;
  font-style: normal;
}

.tool-group.active,
.tool-group:hover {
  color: #dffbff;
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(8, 145, 178, 0.16);
}

.tool-card,
.tips-panel,
.result-section,
.plan-card,
.generator-card,
.history-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 26, 42, 0.92), rgba(11, 17, 29, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.tool-card {
  position: relative;
  min-height: 302px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transform-style: preserve-3d;
  animation: card-in 520ms ease forwards;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--card-x, 50%) var(--card-y, 22%), rgba(34, 211, 238, 0.18), transparent 48%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tool-card:hover,
.tool-card.active {
  transform: translateY(-5px) perspective(900px) rotateX(var(--card-tilt-y, 0deg)) rotateY(var(--card-tilt-x, 0deg));
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(180deg, rgba(22, 34, 54, 0.96), rgba(10, 17, 30, 0.95));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.tool-card:hover::after,
.tool-card.active::after,
.tool-card:hover::before,
.tool-card.active::before {
  opacity: 1;
}

.tool-card.disabled {
  opacity: 0.58;
}

.tool-card.disabled:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.tool-card h3 {
  font-size: 20px;
}

.tool-card p {
  min-height: 56px;
  font-size: 14px;
  line-height: 1.7;
}

.tool-card button,
.generate-btn,
.orange-btn,
.ghost-btn,
.full-ghost {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.click-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%) scale(1);
  animation: ripple-out 620ms ease-out forwards;
}

.tool-card button {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #cffafe;
  background: rgba(8, 145, 178, 0.12);
}

.tool-card button:hover,
.generate-btn:hover,
.orange-btn:hover,
.ghost-btn:hover,
.full-ghost:hover {
  transform: translateY(-2px);
}

.tool-card button:disabled {
  cursor: not-allowed;
  color: var(--muted-2);
  border-color: var(--line);
  background: rgba(30, 41, 59, 0.62);
}

.tool-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  transform: translateZ(18px);
}

.tool-icon img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 14px rgba(2, 6, 23, 0.32));
}

.mini-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.tool-icon.red {
  background: linear-gradient(135deg, #fb7185, #be123c);
}

.tool-icon.green {
  background: linear-gradient(135deg, #34d399, #047857);
}

.tool-icon.blue {
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
}

.tool-icon.orange {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.tool-icon.purple {
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
}

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

.tag {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.64);
  font-size: 12px;
}

.tips-panel {
  margin-top: 20px;
  padding: 18px;
}

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

.tips-grid article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.48);
}

.tips-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 8px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 13px;
  font-weight: 950;
}

.tips-grid p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.result-section {
  margin-top: 20px;
  padding: 18px;
}

.ghost-btn,
.full-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(15, 23, 42, 0.72);
}

.ghost-btn:hover,
.full-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(30, 41, 59, 0.82);
}

pre {
  position: relative;
  min-height: 178px;
  margin: 0;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 8px;
  padding: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #dffbff;
  background:
    linear-gradient(rgba(34, 211, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.055) 1px, transparent 1px),
    #061018;
  background-size: 24px 24px, 24px 24px, auto;
  line-height: 1.72;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
}

.result-view,
.record-output {
  position: relative;
  min-height: 220px;
  max-height: 620px;
  overflow: auto;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 8px;
  padding: 24px;
  color: #e5f8ff;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), transparent 28%),
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 16, 28, 0.96), rgba(4, 10, 18, 0.96));
  background-size: auto, 30px 30px, 30px 30px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 42px rgba(34, 211, 238, 0.08),
    0 18px 42px rgba(2, 6, 23, 0.28);
  line-height: 1.78;
  font-size: 15px;
}

.result-view::before,
.record-output::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  height: 3px;
  margin: -24px -24px 18px;
  background: linear-gradient(90deg, #22d3ee, #f59e0b 48%, transparent);
  opacity: 0.9;
}

.markdown-body {
  word-break: break-word;
}

.markdown-body > * + * {
  margin-top: 16px;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5 {
  position: relative;
  margin: 26px 0 12px;
  padding-left: 16px;
  color: #f8fafc;
  line-height: 1.35;
  letter-spacing: 0;
}

.markdown-body h2:first-child,
.markdown-body h3:first-child,
.markdown-body h4:first-child,
.markdown-body h5:first-child {
  margin-top: 0;
}

.markdown-body .markdown-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 4px;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, #f59e0b);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.48);
}

.markdown-body h2 {
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  padding-bottom: 12px;
  font-size: 22px;
}

.markdown-body h3 {
  font-size: 18px;
}

.markdown-body h4,
.markdown-body h5 {
  font-size: 16px;
}

.markdown-body p {
  margin: 0;
  color: #dbeafe;
}

.markdown-body .markdown-paragraph {
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.34);
}

.markdown-body strong {
  color: #fef3c7;
  font-weight: 900;
}

.markdown-body ul,
.markdown-body .markdown-list {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 8px;
  padding: 12px 16px 12px 28px;
  background: rgba(8, 47, 73, 0.24);
}

.markdown-body li {
  padding-left: 4px;
  color: #dbeafe;
}

.markdown-body code {
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 6px;
  padding: 1px 6px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.36);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.markdown-body .code-block {
  min-height: 0;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.72);
  font-size: 13px;
}

.markdown-body .code-block::after {
  content: none;
}

.markdown-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 47, 73, 0.4), rgba(2, 6, 23, 0.42));
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.28);
}

.markdown-body table {
  width: max-content;
  min-width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  font-size: 14px;
}

.markdown-body th,
.markdown-body td {
  max-width: 360px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  padding: 13px 14px;
  vertical-align: top;
  text-align: left;
  line-height: 1.72;
}

.markdown-body th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #cffafe;
  background: rgba(8, 47, 73, 0.96);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(34, 211, 238, 0.28);
}

.markdown-body td {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.16);
}

.markdown-body tr:nth-child(even) td {
  background: rgba(8, 47, 73, 0.18);
}

.markdown-body tr:hover td {
  background: rgba(34, 211, 238, 0.12);
}

.markdown-body tr:last-child td {
  border-bottom: 0;
}

pre::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  animation: terminal-cursor 1s steps(2, jump-none) infinite;
}

.asset-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.asset-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(8, 47, 73, 0.24);
}

.asset-preview {
  width: 64px;
  height: 48px;
  display: block;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.72);
}

.asset-preview-icon {
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.asset-item strong,
.asset-item small {
  display: block;
}

.asset-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.asset-item a {
  border-radius: 8px;
  padding: 9px 12px;
  color: #041014;
  background: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.right-rail {
  display: grid;
  gap: 16px;
  align-content: start;
}

.plan-card,
.generator-card,
.history-card {
  padding: 18px;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rail-head button {
  border: 0;
  color: var(--teal);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.plan-inner {
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.78));
}

.plan-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 8px;
}

.plan-title strong {
  color: #fde68a;
  font-size: 25px;
}

.plan-title span {
  border-radius: 999px;
  padding: 7px 10px;
  color: #1c1203;
  background: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.plan-inner p {
  padding: 0 16px 16px;
  font-size: 14px;
}

.plan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(245, 158, 11, 0.22);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(15, 23, 42, 0.45);
}

.plan-stats span {
  padding: 14px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.plan-stats span + span {
  border-left: 1px solid rgba(245, 158, 11, 0.18);
}

.plan-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 24px;
}

.orange-btn,
.generate-btn {
  width: calc(100% - 32px);
  margin: 16px 16px 18px;
  border: 0;
  color: #041014;
}

.orange-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.22);
}

.generator-card {
  border-color: rgba(34, 211, 238, 0.22);
}

.generator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.generator-head span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.generator-head h2 {
  max-width: 220px;
  line-height: 1.25;
}

.generator-head strong {
  flex: 0 0 auto;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.11);
  font-size: 12px;
  font-weight: 950;
}

.tool-summary {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.skill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.skill-meta span {
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.09);
  font-size: 12px;
  font-weight: 900;
}

.source-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.source-list a,
.source-empty {
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.5);
  text-decoration: none;
}

.source-list a:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(8, 47, 73, 0.24);
}

.source-list strong,
.source-list small {
  display: block;
}

.source-list strong {
  font-size: 13px;
}

.source-list small,
.source-empty {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 12px;
}

.generation-contract {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.generation-contract span {
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 8px 6px;
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.08);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.skill-form {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.skill-form::-webkit-scrollbar {
  width: 8px;
}

.skill-form::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.32);
}

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

.skill-field span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.skill-field em {
  color: #fda4af;
  font-style: normal;
}

.empty-form {
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.model-picker {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.model-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-picker-head label {
  margin-top: 0;
}

.model-picker-head button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--teal);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.model-picker small {
  color: var(--muted);
  line-height: 1.5;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(8, 13, 23, 0.86);
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 86px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 211, 238, 0.64);
  background: rgba(8, 13, 23, 0.98);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.generate-btn {
  margin-top: 16px;
  margin-bottom: 0;
  background: linear-gradient(135deg, #22d3ee, #10b981);
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.2);
}

.generate-btn:not(:disabled) {
  animation: cta-breathe 3.4s ease-in-out infinite;
}

.generate-btn:disabled {
  cursor: wait;
  color: rgba(4, 16, 20, 0.78);
  background: linear-gradient(90deg, #22d3ee, #10b981, #22d3ee);
  background-size: 220% 100%;
  animation: loading-sweep 1.1s linear infinite;
}

.history-list {
  display: grid;
}

.history-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  animation: slide-in 320ms ease;
}

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

.history-item .mini-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
}

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

.history-item small {
  margin-top: 4px;
  color: var(--muted);
}

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

.full-ghost {
  width: 100%;
  margin-top: 12px;
}

.record-table {
  display: grid;
  gap: 10px;
}

.record-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(180px, auto);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.record-toolbar label {
  display: grid;
  gap: 6px;
}

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

.record-toolbar input,
.record-toolbar select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.76);
  outline: 0;
}

.record-stats {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

.record-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
}

.record-detail-panel {
  display: none;
  margin-bottom: 14px;
}

.record-detail-panel.active {
  display: block;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(8, 47, 73, 0.22);
  box-shadow: var(--shadow);
}

.record-detail-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.record-detail-head h3 {
  margin: 0;
}

.record-detail-head p {
  margin-top: 4px;
  color: var(--muted);
}

.record-detail-meta,
.record-detail-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.record-detail-meta span,
.record-detail-inputs span {
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(8, 47, 73, 0.2);
  font-size: 12px;
}

.record-detail-inputs b {
  margin-right: 6px;
  color: var(--text);
}

.record-detail-panel pre {
  white-space: pre-wrap;
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  line-height: 1.7;
}

.record-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 120px 110px;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.record-row strong,
.record-row small {
  display: block;
}

.record-row small,
.price-card p,
.account-grid p {
  margin-top: 5px;
  color: var(--muted);
}

.record-row em {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.record-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.record-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 90px 110px;
  gap: 14px;
  align-items: center;
}

.record-main strong,
.record-main small,
.record-assets small {
  display: block;
}

.record-main small,
.record-card p,
.record-assets small {
  color: var(--muted);
}

.record-main em {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.record-meta span {
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(8, 47, 73, 0.2);
  font-size: 12px;
}

.record-card p {
  margin-top: 12px;
  line-height: 1.7;
}

.record-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.record-assets a {
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(8, 47, 73, 0.24);
  text-decoration: none;
  font-weight: 850;
}

.record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

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

.price-card,
.account-summary-grid article,
.account-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.account-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.account-summary-grid article {
  padding: 16px;
}

.account-summary-grid span,
.account-summary-grid small {
  display: block;
  color: var(--muted);
}

.account-summary-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.account-summary-grid small {
  margin-top: 6px;
}

.price-card.featured {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.82));
}

.order-panel {
  margin-top: 20px;
}

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

.order-item,
.order-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 110px 92px 96px 150px;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.order-empty {
  display: block;
  color: var(--muted);
}

.order-item strong,
.order-item small,
.order-item b {
  display: block;
}

.order-item small {
  margin-top: 4px;
  color: var(--muted);
}

.order-status {
  justify-self: start;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.order-status.paid {
  border-color: rgba(20, 184, 166, 0.35);
  color: var(--teal);
}

.order-status.pending {
  border-color: rgba(245, 158, 11, 0.38);
  color: var(--orange);
}

.order-status.refunded,
.order-status.cancelled {
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--muted);
}

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

.order-actions .ghost-btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.credit-ledger-panel {
  margin-top: 20px;
}

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

.ledger-item,
.ledger-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px 110px;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.ledger-empty {
  display: block;
  color: var(--muted);
}

.ledger-item strong,
.ledger-item small,
.ledger-item b {
  display: block;
}

.ledger-item small {
  margin-top: 4px;
  color: var(--muted);
}

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

.ledger-item.negative b {
  color: #fb7185;
}

.price-card span,
.account-grid span {
  color: var(--muted);
  font-size: 13px;
}

.price-card h3 {
  margin-top: 10px;
  font-size: 20px;
}

.price-card strong,
.account-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 28px;
}

.price-card .orange-btn,
.price-card .ghost-btn {
  width: 100%;
  margin: 18px 0 0;
}

.price-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price-meta b {
  color: #fbbf24;
  font-size: 24px;
}

.price-meta small {
  color: var(--muted);
  text-align: right;
}

.price-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.account-refresh {
  margin-top: 12px;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 20;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.toast.show {
  animation: toast-in 1800ms ease;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes ripple-out {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(24);
  }
}

@keyframes terminal-cursor {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow: 0 16px 32px rgba(34, 211, 238, 0.2);
  }

  50% {
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.34);
  }
}

@keyframes loading-sweep {
  to {
    background-position: 220% 0;
  }
}

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

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
}

@keyframes credit-bump {
  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.08);
  }
}

@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }

  14%,
  82% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* 2026-06 前台视觉升级：只增强控制台观感，不改业务逻辑。 */
.app-shell {
  grid-template-columns: 276px minmax(0, 1fr);
  isolation: isolate;
}

.sidebar {
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(8, 13, 23, 0.94), rgba(7, 11, 18, 0.86)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent);
}

.brand {
  min-height: 68px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.76), rgba(8, 13, 23, 0.38));
}

.nav-item {
  min-height: 48px;
  overflow: hidden;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.18), transparent 58%);
  transform: translateX(-22%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  opacity: 1;
  transform: translateX(0);
}

.nav-item span,
.nav-item strong {
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 96px;
  border-bottom-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 13, 23, 0.9), rgba(8, 13, 23, 0.72)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent 44%, rgba(245, 158, 11, 0.05));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
}

.top-actions {
  gap: 12px;
}

.content-grid {
  grid-template-columns: minmax(720px, 1fr) minmax(350px, 400px);
  gap: 30px;
  padding: 32px clamp(24px, 3vw, 44px) 46px;
}

.tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.page-panel,
.tool-card,
.plan-card,
.generator-card,
.history-card,
.record-row,
.asset-item,
.account-card,
.price-card,
.invite-card {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(17, 26, 42, 0.9), rgba(9, 14, 24, 0.86)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 38%, rgba(245, 158, 11, 0.05));
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.34);
}

.page-panel {
  max-width: 1480px;
  margin-right: auto;
}

.section-title {
  gap: 18px;
}

.section-title p {
  max-width: 680px;
}

.tool-card {
  min-height: 310px;
  padding: 28px;
  transform-style: preserve-3d;
}

.tool-card:hover,
.tool-card.active {
  border-color: rgba(34, 211, 238, 0.55);
  background:
    linear-gradient(180deg, rgba(20, 34, 55, 0.94), rgba(10, 17, 29, 0.9)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 42%, rgba(245, 158, 11, 0.08));
  box-shadow: var(--glow-cyan);
}

.tool-card .tool-icon {
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.34), inset 0 1px rgba(255, 255, 255, 0.22);
}

.tool-card button,
.ghost-btn,
.full-ghost,
.vip-pill,
.rail-head button,
.admin-link {
  position: relative;
  overflow: hidden;
}

.tool-card button::after,
.ghost-btn::after,
.full-ghost::after,
.vip-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.28) 42%, transparent 68%);
  transform: translateX(-120%);
  transition: opacity 160ms ease, transform 420ms ease;
}

.tool-card button:hover::after,
.ghost-btn:hover::after,
.full-ghost:hover::after,
.vip-pill:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.tool-card button:active,
.ghost-btn:active,
.full-ghost:active,
.vip-pill:active,
.nav-item:active {
  transform: translateY(1px) scale(0.99);
}

.right-rail {
  position: sticky;
  top: 118px;
  align-self: start;
  gap: 22px;
}

.plan-card {
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: var(--glow-amber);
}

.generator-card {
  border-color: rgba(34, 211, 238, 0.24);
}

.generator-card input,
.generator-card select,
.generator-card textarea,
.field input,
.field select,
.field textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.generator-card input:focus,
.generator-card select:focus,
.generator-card textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(34, 211, 238, 0.72);
  background: rgba(7, 13, 23, 0.92);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.13);
}

.record-row,
.order-item,
.ledger-item,
.asset-item {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.record-row:hover,
.order-item:hover,
.ledger-item:hover,
.asset-item:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(18, 30, 50, 0.86);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.gsap-enhanced .tool-card {
  opacity: 1;
  transform: none;
  animation: none;
  will-change: transform, opacity;
}

.gsap-enhanced .page-panel,
.gsap-enhanced .generator-card,
.gsap-enhanced .plan-card,
.gsap-enhanced .history-card,
.gsap-enhanced .admin-card,
.gsap-enhanced .admin-metrics article {
  will-change: transform, opacity;
}

.gsap-enhanced button,
.gsap-enhanced .tool-group,
.gsap-enhanced .price-card,
.gsap-enhanced .record-card,
.gsap-enhanced .order-item {
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .page-panel.active {
    animation: panel-enter 280ms ease both;
  }

  .tool-card:hover .tool-icon {
    animation: icon-pulse 900ms ease both;
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes icon-pulse {
  0%,
  100% {
    filter: saturate(1);
  }

  45% {
    filter: saturate(1.35) brightness(1.12);
  }
}

/* 2026-06 科技控制台质感增强：只覆盖视觉层，避免影响工具、会员和记录数据流。 */
body::after {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(34, 211, 238, 0.08) 18.4%, transparent 19% 62%, rgba(245, 158, 11, 0.055) 62.4%, transparent 63%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
  background-size: 780px 100%, 100% 100%;
  animation: console-sweep 18s linear infinite;
}

.main {
  position: relative;
  overflow: hidden;
}

.main::before {
  content: "";
  position: fixed;
  inset: 0 0 0 276px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(34, 211, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 78%);
}

.brand strong,
.topbar h1,
.section-title h2,
.generator-head h2,
.rail-head h2 {
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
}

.topbar h1 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.topbar h1::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(34, 211, 238, 0.62);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 42%, rgba(34, 211, 238, 0.78) 42% 58%, transparent 58%),
    linear-gradient(transparent 42%, rgba(34, 211, 238, 0.78) 42% 58%, transparent 58%),
    rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.42);
}

.credit-pill,
.vip-pill,
.user-menu button,
.tool-group {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.tool-card {
  isolation: isolate;
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(22, 33, 51, 0.92), rgba(8, 13, 23, 0.9)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 42%, rgba(245, 158, 11, 0.06));
}

.tool-card::after {
  border-top-color: rgba(103, 232, 249, 0.22);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.5), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 35%);
  height: 3px;
  bottom: auto;
}

.tool-card h3,
.tool-card p,
.tag-row,
.tool-card button,
.tool-icon {
  position: relative;
  z-index: 1;
}

.tool-card h3 {
  letter-spacing: 0;
}

.tag-row span,
.skill-meta span,
.generation-contract span {
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.tool-card:hover .tool-icon,
.tool-card.active .tool-icon {
  transform: translateZ(22px) translateY(-2px);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.42), 0 0 26px rgba(34, 211, 238, 0.2);
}

.right-rail {
  filter: drop-shadow(0 24px 46px rgba(2, 6, 23, 0.22));
}

.plan-inner,
.generator-card,
.history-card,
.result-section,
.tips-panel {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 22px 54px rgba(2, 6, 23, 0.3);
}

.generator-card {
  background:
    linear-gradient(180deg, rgba(15, 27, 44, 0.94), rgba(7, 12, 21, 0.92)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 46%);
}

.generator-head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding-bottom: 12px;
}

.generate-btn {
  background: linear-gradient(135deg, #67e8f9, #22d3ee 48%, #f59e0b);
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.22), inset 0 1px rgba(255, 255, 255, 0.24);
}

.generate-btn:hover {
  box-shadow: 0 20px 42px rgba(34, 211, 238, 0.28), 0 0 0 1px rgba(254, 243, 199, 0.12);
}

.announcement-strip {
  position: relative;
  overflow: hidden;
}

.announcement-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-110%);
  animation: strip-light 8s ease-in-out infinite;
}

@keyframes console-sweep {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 780px 0, 0 0;
  }
}

@keyframes strip-light {
  0%,
  70% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(110%);
  }
}

/* 2026-06 交互细节补强：统一空状态、结果区、标签和列表反馈。 */
.tool-group {
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.tool-group::after {
  content: "";
  position: absolute;
  inset: auto 10px 0 10px;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.85), transparent);
  transition: opacity 160ms ease;
}

.tool-group:hover,
.tool-group.active {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.14);
}

.tool-group:hover::after,
.tool-group.active::after {
  opacity: 1;
}

.tag {
  color: #d7e2f0;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.74));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.result-section {
  overflow: hidden;
}

.result-section pre,
.result-section .result-view {
  min-height: 220px;
  max-height: 520px;
  overflow: auto;
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: inset 0 0 34px rgba(34, 211, 238, 0.06);
}

.result-actions {
  flex-wrap: wrap;
}

.source-empty,
.empty-form,
.record-empty,
.order-empty,
.ledger-empty {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  display: grid;
  align-content: center;
  border-style: dashed;
  color: #aab8cc;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.07), transparent 44%),
    rgba(15, 23, 42, 0.64);
}

.source-empty::before,
.empty-form::before,
.record-empty::before,
.order-empty::before,
.ledger-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
}

@media (prefers-reduced-motion: no-preference) {
  .source-empty::before,
  .empty-form::before,
  .record-empty::before,
  .order-empty::before,
  .ledger-empty::before {
    animation: subtle-sweep 2.8s ease-in-out infinite;
  }
}

.record-card,
.record-row,
.order-item,
.ledger-item {
  background:
    linear-gradient(180deg, rgba(17, 26, 42, 0.86), rgba(11, 17, 29, 0.78));
}

.record-meta span,
.record-detail-meta span,
.record-detail-inputs span,
.order-status {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(8, 13, 23, 0.64));
}

.record-actions .ghost-btn,
.order-actions .ghost-btn,
.account-refresh {
  min-height: 36px;
}

.toast {
  background:
    linear-gradient(180deg, rgba(17, 26, 42, 0.96), rgba(8, 13, 23, 0.92)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(245, 158, 11, 0.08));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.42), 0 0 0 1px rgba(34, 211, 238, 0.18);
}

@keyframes subtle-sweep {
  0%,
  22% {
    transform: translateX(-100%);
  }

  56%,
  100% {
    transform: translateX(100%);
  }
}

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

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px 24px;
  color: rgba(100, 116, 139, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #0891b2;
}

@media (max-width: 1240px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .history-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

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

  .invite-card {
    margin-top: 0;
  }

  .tool-grid,
  .tips-grid,
  .account-summary-grid,
  .right-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .announcement-strip {
    margin: 14px 18px 0;
    flex-direction: column;
  }

  .announcement-strip button {
    align-self: flex-end;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .content-grid {
    padding: 18px;
  }

  .page-panel {
    margin: 18px;
  }

  .tool-card {
    min-height: auto;
  }

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

  .record-row,
  .record-detail-head,
  .order-item,
  .ledger-item,
  .record-toolbar,
  .asset-item,
  .pricing-grid,
  .account-summary-grid,
  .account-grid,
  .price-actions {
    grid-template-columns: 1fr;
  }

  .plan-stats {
    grid-template-columns: 1fr;
  }

  .plan-stats span + span {
    border-left: 0;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
  }

  .record-stats {
    justify-content: flex-start;
  }
}
