/*
  Aurora theme layer for the local mirror.
  Keep this file separate from the generated bundle so the brand look can evolve
  without touching runtime logic.
*/
:root {
  --background: #f6f9ff;
  --foreground: #101828;
  --card: rgba(255, 255, 255, 0.94);
  --card-foreground: #101828;
  --popover: rgba(255, 255, 255, 0.98);
  --popover-foreground: #101828;
  --primary: #6258f6;
  --primary-foreground: #ffffff;
  --secondary: #eef4ff;
  --secondary-foreground: #172033;
  --muted: #edf3fb;
  --muted-foreground: #667085;
  --accent: #eaf2ff;
  --accent-foreground: #172033;
  --border: rgba(83, 103, 132, 0.18);
  --input: rgba(83, 103, 132, 0.22);
  --ring: #4db7ff;
  --sidebar: rgba(255, 255, 255, 0.74);
  --sidebar-foreground: #172033;
  --sidebar-primary: #6258f6;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #eef4ff;
  --sidebar-accent-foreground: #172033;
  --sidebar-border: rgba(83, 103, 132, 0.14);
  --sidebar-ring: #4db7ff;
  --radius: 0.5rem;
}

html {
  background: #f6f9ff;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.96) 0%, rgba(238, 245, 255, 0.94) 52%, rgba(248, 251, 255, 0.98) 100%);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif !important;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font-family: inherit !important;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(63, 184, 255, 0.14), transparent 34%),
    linear-gradient(245deg, rgba(117, 89, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

::selection {
  color: #ffffff;
  background: #6258f6;
}

[data-testid="top-bar"] {
  height: 56px !important;
  border-bottom-color: rgba(83, 103, 132, 0.14) !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.88)) !important;
  box-shadow: 0 10px 30px rgba(22, 34, 66, 0.05);
}

[data-testid="top-bar"] img {
  border: 1px solid rgba(98, 88, 246, 0.16);
  box-shadow: 0 8px 22px rgba(98, 88, 246, 0.18);
}

[data-testid="top-bar"] img[alt="琳琅AI创作台"],
aside img[alt="琳琅AI创作台"] {
  content: url("/logo.png") !important;
}

[data-testid="top-bar"] span.text-base {
  font-size: 1.02rem;
  font-weight: 700;
  color: #111827;
}

[data-testid="top-bar"] [data-slot="button"] {
  border-radius: 8px;
  color: #475467;
}

[data-testid="top-bar"] [data-slot="button"]:hover {
  color: #6258f6;
  background: rgba(98, 88, 246, 0.08);
}

[data-testid="nav-rail"] {
  top: 56px !important;
  width: 78px !important;
  height: calc(100vh - 56px) !important;
  border-right-color: rgba(83, 103, 132, 0.12) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  backdrop-filter: blur(18px);
}

[data-testid="nav-rail"] button,
[data-testid="mobile-tab-bar"] button {
  border-radius: 8px !important;
}

[data-testid="nav-rail"] button[class*="bg-primary"],
[data-testid="mobile-tab-bar"] a.text-primary,
[data-testid="mobile-tab-bar"] button.text-primary {
  color: #6258f6 !important;
  background: linear-gradient(180deg, rgba(98, 88, 246, 0.12), rgba(77, 183, 255, 0.10)) !important;
}

[data-testid="nav-rail"] button[class*="bg-primary"] span:first-child {
  background: linear-gradient(180deg, #4db7ff, #6258f6) !important;
}

[data-testid="mobile-tab-bar"] {
  border-top-color: rgba(83, 103, 132, 0.14) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 30px rgba(22, 34, 66, 0.08);
}

main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 280px);
}

main h1,
main h2,
main h3 {
  color: #101828;
  letter-spacing: 0;
}

main h1 {
  font-weight: 800 !important;
}

[data-slot="button"],
button,
a,
input,
textarea,
[role="switch"],
[data-slot="toggle-group-item"] {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

[data-slot="button"],
[data-slot="toggle-group-item"],
input,
textarea,
[role="switch"],
.rounded-lg,
.rounded-xl,
.rounded-2xl {
  border-radius: 8px !important;
}

[data-slot="button"].bg-primary,
button[class*="bg-primary"],
a[class*="bg-primary"] {
  background: linear-gradient(135deg, #4db7ff 0%, #6258f6 52%, #8a5cf6 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 22px rgba(98, 88, 246, 0.22);
}

[data-slot="button"].bg-primary:hover,
button[class*="bg-primary"]:hover,
a[class*="bg-primary"]:hover {
  box-shadow: 0 14px 28px rgba(98, 88, 246, 0.28);
  transform: translateY(-1px);
}

input,
textarea,
[role="textbox"] {
  border-color: rgba(83, 103, 132, 0.18) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:focus,
textarea:focus,
[role="textbox"]:focus {
  border-color: rgba(77, 183, 255, 0.68) !important;
  box-shadow: 0 0 0 3px rgba(77, 183, 255, 0.16) !important;
}

.bg-card,
.bg-background {
  background-color: rgba(255, 255, 255, 0.92) !important;
}

.border,
.border-b,
.border-r,
.border-t {
  border-color: rgba(83, 103, 132, 0.16) !important;
}

.bg-secondary,
.bg-muted,
.bg-accent {
  background-color: rgba(238, 244, 255, 0.72) !important;
}

div:has(> img[src*="/client/assets/inspirations/"]) {
  border: 1px solid rgba(83, 103, 132, 0.12);
  border-radius: 8px !important;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(22, 34, 66, 0.10);
}

img[src*="/client/assets/inspirations/"] {
  border-radius: 8px !important;
}

div:has(> img[src*="/client/assets/inspirations/"]):hover {
  box-shadow: 0 20px 42px rgba(22, 34, 66, 0.16);
}

aside {
  border-left: 1px solid rgba(83, 103, 132, 0.14);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: -24px 0 56px rgba(22, 34, 66, 0.18) !important;
}

aside img[alt="琳琅AI创作台"],
aside img[src^="/aurora-workbench-icon-64.png"] {
  border: 1px solid rgba(98, 88, 246, 0.16);
  box-shadow: 0 12px 30px rgba(98, 88, 246, 0.20);
}

aside a > div,
aside div > div[class*="rounded"] {
  border-radius: 8px !important;
}

.text-primary {
  color: #6258f6 !important;
}

.bg-primary\/8 {
  background-color: rgba(98, 88, 246, 0.08) !important;
}

.focus-visible\:ring-3:focus-visible {
  box-shadow: 0 0 0 3px rgba(77, 183, 255, 0.18) !important;
}

section[aria-label="产品公告"] {
  border-radius: 8px !important;
}

section[aria-label="产品公告"] > div:first-child {
  position: relative;
  align-items: stretch !important;
  gap: 0 !important;
}

section[aria-label="产品公告"] > div:first-child > div:first-child {
  width: 100%;
}

section[aria-label="产品公告"] article[role="button"] {
  height: 124px !important;
  border: 1px solid rgba(83, 103, 132, 0.13) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(22, 34, 66, 0.07) !important;
}

section[aria-label="产品公告"] article[role="button"]:hover {
  border-color: rgba(77, 183, 255, 0.30) !important;
  box-shadow: 0 14px 32px rgba(22, 34, 66, 0.11) !important;
  transform: translateY(-1px);
}

section[aria-label="产品公告"] article[role="button"] > div:first-child {
  width: 62% !important;
  background: #111827 !important;
}

section[aria-label="产品公告"] article[role="button"] img {
  transform: scale(1.005);
}

section[aria-label="产品公告"] article[role="button"] > div:nth-child(2) {
  position: relative;
  justify-content: center !important;
  padding: 18px 118px 18px 26px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.90)),
    linear-gradient(135deg, rgba(77, 183, 255, 0.08), rgba(98, 88, 246, 0.06)) !important;
}

section[aria-label="产品公告"] article[role="button"] > div:nth-child(2)::before {
  display: inline-flex;
  width: max-content;
  margin-bottom: 2px;
  padding: 3px 8px;
  border: 1px solid rgba(98, 88, 246, 0.14);
  border-radius: 999px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.10);
  content: "产品公告";
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

section[aria-label="产品公告"] h3 {
  color: #101828 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

section[aria-label="产品公告"] p {
  max-width: 44rem;
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

section[aria-label="产品公告"] [role="tablist"] {
  margin-top: 8px !important;
}

section[aria-label="产品公告"] [role="tab"] {
  width: 18px !important;
  height: 4px !important;
  border-radius: 999px !important;
}

section[aria-label="产品公告"] > div:first-child > div:last-child {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
}

section[aria-label="产品公告"] > div:first-child > div:last-child > button {
  order: 2;
  opacity: 0.72;
}

section[aria-label="产品公告"] > div:first-child > div:last-child > div {
  order: 1;
  display: flex !important;
  flex-direction: row !important;
  gap: 4px !important;
}

section[aria-label="产品公告"] > div:first-child > div:last-child [data-slot="button"] {
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
}

section[aria-label="产品公告"] > div:first-child > div:last-child [data-slot="button"]:hover {
  color: #101828 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  transform: none !important;
}

section[aria-label="产品公告"] > div:first-child > div:last-child svg {
  width: 15px !important;
  height: 15px !important;
}

[data-testid="banner-cover-fallback"] {
  color: transparent !important;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.96), rgba(41, 58, 102, 0.92)),
    linear-gradient(135deg, rgba(77, 183, 255, 0.28), rgba(98, 88, 246, 0.24)) !important;
  font-size: 0 !important;
}

[data-testid="banner-cover-fallback"]::after {
  color: #ffffff;
  content: "极光 AI";
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 767px) {
  [data-testid="top-bar"] {
    height: 52px !important;
  }

  main {
    padding: 20px 16px 76px !important;
  }

  section[aria-label="产品公告"] article[role="button"] {
    height: 116px !important;
  }

  section[aria-label="产品公告"] article[role="button"] > div:first-child {
    width: 50% !important;
  }

  section[aria-label="产品公告"] article[role="button"] > div:nth-child(2) {
    padding: 14px 18px !important;
  }

  section[aria-label="产品公告"] > div:first-child > div:last-child {
    right: 10px;
    bottom: 10px;
    transform: scale(0.92);
    transform-origin: right bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
div[data-route="/skills"] > div {
  gap: 14px !important;
}

div[data-route="/skills"] h1 {
  font-size: 22px !important;
  line-height: 1.2 !important;
}

div[data-route="/skills"] h1 + p {
  margin-top: 4px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

div[data-route="/skills"] .grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  justify-content: start !important;
  align-items: start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: min(100%, 1320px) !important;
}

div[data-route="/skills"] .group.relative.overflow-hidden {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
}

div[data-route="/skills"] .group.relative.overflow-hidden svg {
  width: 20px !important;
  height: 20px !important;
  opacity: 0.42 !important;
}

div[data-route="/skills"] .group.relative.overflow-hidden > div[class*="top-"] {
  top: 6px !important;
  right: 6px !important;
}

div[data-route="/skills"] .group.relative.overflow-hidden [data-slot="badge"],
div[data-route="/skills"] .group.relative.overflow-hidden > div[class*="top-"] > * {
  min-height: 0 !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
}

div[data-route="/skills"] .group.relative.overflow-hidden > div[class*="bottom-"] {
  padding: 34px 10px 10px !important;
}

div[data-route="/skills"] .group.relative.overflow-hidden h3 {
  margin: 0 0 2px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

div[data-route="/skills"] .group.relative.overflow-hidden p {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

@media (max-width: 1180px) {
  div[data-route="/skills"] .grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  div[data-route="/skills"] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    max-width: none !important;
  }

  div[data-route="/skills"] .group.relative.overflow-hidden {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* Keep long model names readable in Radix Select popovers. */
[data-radix-popper-content-wrapper] [role="listbox"],
[data-slot="select-content"] {
  width: max-content !important;
  min-width: max(var(--radix-select-trigger-width, 0px), 15rem) !important;
  max-width: min(30rem, calc(100vw - 24px)) !important;
}

[data-slot="select-viewport"] {
  width: max-content !important;
  min-width: 100% !important;
}

[role="option"],
[data-slot="select-item"] {
  min-width: max-content !important;
  max-width: calc(100vw - 40px) !important;
  white-space: nowrap !important;
}

[role="option"] *,
[data-slot="select-item"] * {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Solid primary color, no blue-purple gradient. */
:root {
  --primary: #2563eb;
  --ring: #60a5fa;
  --sidebar-primary: #2563eb;
}

.text-primary {
  color: #2563eb !important;
}

.bg-primary\/8 {
  background-color: rgba(37, 99, 235, 0.08) !important;
}

[data-testid="nav-rail"] button[class*="bg-primary"],
[data-testid="mobile-tab-bar"] a.text-primary,
[data-testid="mobile-tab-bar"] button.text-primary {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.09) !important;
}

[data-testid="nav-rail"] button[class*="bg-primary"] span:first-child,
.bg-primary {
  background: #2563eb !important;
  background-color: #2563eb !important;
}

[data-slot="button"].bg-primary,
button[class*="bg-primary"],
a[class*="bg-primary"] {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
}

[data-slot="button"].bg-primary:hover,
button[class*="bg-primary"]:hover,
a[class*="bg-primary"]:hover {
  background: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22) !important;
}
