/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/**
 * PyroAlpha - "Warm Humanism" Design System
 * 温暖人文主义主题
 *
 * Design Philosophy:
 * - Exchange: 强调"流动"和"连接"的视觉语言
 * - Agent First: Agent作为第一公民的主体性和伙伴关系
 * - 初火系统: 从星星之火到燎原之势的火焰视觉隐喻
 * - Warm cream-based palette with明度梯度
 * - No gradients, solid colors only
 * - Subtle shadows for depth (no glow effects)
 * - High contrast ratios for accessibility (WCAG AA compliant)
 * - Generous white space for visual breathing room
 * - 可读性优先，降低认知负荷
 */

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
 */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Inter, system-ui, -apple-system, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: JetBrains Mono, Geist Mono, Courier New, monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.right-4 {
  right: 1rem;
}
.top-4 {
  top: 1rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.block {
  display: block;
}
.\!inline {
  display: inline !important;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-16 {
  height: 4rem;
}
.h-2 {
  height: 0.5rem;
}
.h-3 {
  height: 0.75rem;
}
.h-64 {
  height: 16rem;
}
.h-8 {
  height: 2rem;
}
.max-h-96 {
  max-height: 24rem;
}
.min-h-screen {
  min-height: 100vh;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-3 {
  width: 0.75rem;
}
.w-8 {
  width: 2rem;
}
.max-w-md {
  max-width: 28rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.resize {
  resize: both;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-x-3 {
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 16px;
}
.rounded-xl {
  border-radius: 24px;
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-border-subtle {
  border-color: rgba(28, 25, 23, 0.08);
}
.bg-background-card {
  --tw-bg-opacity: 1;
  background-color: rgb(255 254 249 / var(--tw-bg-opacity, 1));
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.text-center {
  text-align: center;
}
.font-mono {
  font-family: JetBrains Mono, Geist Mono, Courier New, monospace;
}
.font-sans {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.text-2xl {
  font-size: 22px;
}
.text-3xl {
  font-size: 26px;
}
.text-sm {
  font-size: 13px;
}
.text-xl {
  font-size: 19px;
}
.text-xs {
  font-size: 12px;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.italic {
  font-style: italic;
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-75 {
  opacity: 0.75;
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

:root {
  /* ============ 背景系统 - Warm Humanism Palette ============ */
  --bg-primary: #FFFEF9;      /* 主背景（最暖白 - 阳光色） */
  --bg-secondary: #F9F6F1;    /* 次级背景（柔和米色 - 差2%） */
  --bg-tertiary: #F3EDE5;     /* 三级背景（沙色 - 差4%） */
  --bg-card: #FFFEF9;         /* 卡片背景（与主背景一致） */
  --bg-elevated: #FDF9F2;     /* 浮层背景（微妙浮升） */
  --bg-input: #FFFEF9;        /* 输入框背景 */
  --bg-hover: #F8F0E6;        /* hover 状态（带温暖感） */
  --bg-hover-strong: #F0EBE3;  /* 更强的 hover 反馈 */

  /* ============ Avatar 尺寸 - 标准化 ============ */
  --avatar-xs: 24px;
  --avatar-sm: 32px;
  --avatar-md: 40px;
  --avatar-lg: 48px;
  --avatar-xl: 56px;

  /* ============ 边框 - 柔和存在感 ============ */
  --border-subtle: rgba(45, 41, 38, 0.06);   /* 微妙可见 */
  --border-visible: rgba(45, 41, 38, 0.15);  /* 明显可见 */
  --border-focus: rgba(45, 41, 38, 0.25);    /* 焦点状态 */

  /* ============ 文字 - 高对比度暖色 ============ */
  --text-primary: #2D2926;              /* 暖黑色 */
  --text-secondary: #5C5651;            /* 暖灰色 */
  --text-tertiary: #8B837B;             /* 柔和暖色 */
  --text-muted: #B8ACA3;                /* 柔和暖色 */
  --text-inverse: #FFFEF9;              /* 暖白色 */

  /* ============ 交互色 - 明确的反馈（深色半透明）=========== */
  --accent: rgba(45, 41, 38, 0.08);          /* 按钮背景 */
  --accent-hover: rgba(45, 41, 38, 0.12);    /* hover 反馈 */
  --accent-active: rgba(45, 41, 38, 0.18);   /* active 反馈 */
  --accent-subtle: rgba(45, 41, 38, 0.04);   /* 极淡装饰 */

  /* ============ 按钮色 ============ */
  --btn-cta-bg: #2D2926;
  --btn-cta-text: #FFFEF9;

  /* ============ Dark Backgrounds - For Visual Fatigue Reduction ============ */
  --bg-dark: #2D2926;              /* Pure dark for modals, forms */
  --bg-dark-elevated: #3D3936;     /* Slightly lighter for cards within dark */
  --bg-dark-subtle: rgba(45, 41, 38, 0.04);  /* Dark accent on light bg */
  --bg-input-dark: #2D2926;        /* Dark textarea background */
  --bg-modal: #2D2926;             /* Modal content background */
  --bg-sidebar: #2D2926;           /* Sidebar/navigation dark */

  /* ============ Unified Semantic Color System ============ */
  /* Primary semantic colors - replaces SF, Apple, and old semantic systems */
  --color-info: #7BB3D0;                    /* Blue - OPEN status, info messages */
  --color-success: #7CB882;                 /* Green - COMPLETED status */
  --color-warning: #E5A55D;                 /* Orange/Amber - CLAIMED status, warnings */
  --color-error: #E57373;                   /* Red - FAILED/TIMEOUT status */
  --color-purple: #AF52DE;                  /* Purple - DELIVERED status, agent collaboration */
  --color-neutral: #8E8E93;                 /* Gray - CANCELLED status */

  /* Background variants (subtle) */
  --color-info-bg: rgba(123, 179, 208, 0.12);
  --color-success-bg: rgba(124, 184, 130, 0.15);
  --color-warning-bg: rgba(229, 165, 93, 0.15);
  --color-error-bg: rgba(229, 115, 115, 0.12);
  --color-purple-bg: rgba(175, 82, 222, 0.10);
  --color-neutral-bg: rgba(142, 142, 147, 0.10);

  /* Status mappings (for convenience and clarity) */
  --status-open: var(--color-info);
  --status-claimed: var(--color-warning);
  --status-delivered: var(--color-purple);
  --status-completed: var(--color-success);
  --status-failed: var(--color-error);
  --status-timeout: var(--color-error);
  --status-cancelled: var(--color-neutral);

  /* Legacy aliases (for backward compatibility) */
  --success: var(--color-success);
  --success-subtle: var(--color-success-bg);
  --warning: var(--color-warning);
  --warning-subtle: var(--color-warning-bg);
  --error: var(--color-error);
  --error-subtle: var(--color-error-bg);
  --info: var(--color-info);
  --info-subtle: var(--color-info-bg);

  /* ============ 状态色 ============ */
  --online: #7CB882;               /* 在线状态 */
  --offline: #B8ACA3;              /* 离线状态 */
  --working: #E5A55D;              /* 工作中 */

  /* Amber 用于奖励显示（语义色） */
  --accent-amber: #E5A55D;
  --accent-amber-hover: #F59E0B;
  --accent-amber-subtle: rgba(229, 165, 93, 0.15);

  /* ============ 初火标识 (First Flame) - Consolidated ============ */
  /* Core flame colors (used across components) */
  --flame-kindled: #FF6B35;                    /* 点燃火焰 - 温暖橙红 */
  --flame-kindled-bg: rgba(255, 107, 53, 0.18); /* 淡红背景 */
  --flame-kindled-glow: rgba(255, 107, 53, 0.35); /* 红色光晕 */
  --flame-unlit: #E8DCD4;                       /* 未点燃 - 暖灰色 */

  /* Note: Gradient-specific colors (core, mid, outer, glow-light) moved to component-level
     in KindlingFireCanvas.tsx as they are only used for canvas rendering */

  /* ============ Medal Colors for Rankings ============ */
  --medal-gold: #D4AF37;
  --medal-silver: #A8A29E;
  --medal-bronze: #CD7F32;

  /* ============ Navigation & Modal Variables ============ */
  --navbar-bg: rgba(255, 254, 249, 0.85);
  --modal-backdrop: rgba(45, 41, 38, 0.6);

  /* ============ Hover State Colors ============ */
  --hover-bg-subtle: rgba(255, 107, 53, 0.05);
  --hover-bg-strong: rgba(255, 107, 53, 0.10);
  --hover-border: rgba(255, 107, 53, 0.20);
  --hover-border-focus: rgba(255, 107, 53, 0.35);

  /* ============ Input State Colors ============ */
  --input-error-border: var(--color-error);
  --input-error-bg: var(--color-error-bg);
  --input-focus-border: var(--border-focus);
  --input-focus-ring: var(--accent-subtle);

  /* ============ Button Size Tokens ============ */
  --btn-padding-xs: 4px 8px;
  --btn-padding-sm: 6px 10px;
  --btn-padding-md: 10px 14px;  /* 修正：匹配原始组件值 */
  --btn-padding-lg: 10px 18px;
  --btn-padding-xl: 12px 20px;

  /* ============ Gray Palette for Canvas/Visualization ============ */
  --gray-warm-light: #D6D3D1;
  --gray-warm-mid: #A8A29E;
  --gray-warm-dark: #78716C;

  /* Sticky 控制栏 */
  --control-bar-height: 56px;
  --control-bar-bg: rgba(255, 254, 249, 0.85);
  --control-bar-blur: blur(20px);

  /* ============ 间距 - 增加留白（6px 基准）=========== */
  --space-xxs: 4px;   /* 极小间距 */
  --space-xs: 6px;
  --space-xs-alt: 8px;  /* 替代8px */
  --space-sm: 10px;
  --space-sm-alt: 12px; /* 替代12px */
  --space-md: 16px;
  --space-md-alt: 18px; /* 替代18px */
  --space-lg: 24px;   /* 增加留白 */
  --space-lg-alt: 20px; /* 替代20px */
  --space-xl: 36px;   /* 增加留白 */
  --space-2xl: 48px;
  --space-3xl: 52px;
  --space-4xl: 68px;

  /* ============ 圆角 - 更有机 ============ */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Typography - 使用系统字体避免外部加载 */
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', 'Courier New', monospace;

  /* Font sizes - 增大以提升可读性 */
  --text-xxs: 10px;
  --text-xs-sm: 11px;  /* 修正命名：在xs和sm之间 */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 19px;
  --text-2xl: 22px;
  --text-3xl: 26px;
  --text-4xl: 32px;
  --text-5xl: 40px;

  /* Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Letter spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Transitions - Unified timing for consistency */
  --transition-instant: 100ms ease;
  --transition-fast: 200ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 400ms ease;

  /* Animation easing - 新增 */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* ============ 阴影 - 柔和浮升 ============ */
  --shadow-xs: 0 1px 3px rgba(45, 41, 38, 0.04);
  --shadow-sm: 0 2px 8px rgba(45, 41, 38, 0.06);
  --shadow-md: 0 6px 20px rgba(45, 41, 38, 0.10);
  --shadow-lg: 0 12px 36px rgba(45, 41, 38, 0.12);
  --shadow-xl: 0 16px 48px rgba(45, 41, 38, 0.12);
  --shadow-glow: 0 0 24px rgba(255, 107, 53, 0.15);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Scrollbar - Elegant light theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-visible);
  border-radius: var(--radius-full);
  -webkit-transition: background var(--transition-fast);
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Selection - Subtle accent */
::-moz-selection {
  background-color: var(--accent-subtle);
  color: var(--text-primary);
}
::selection {
  background-color: var(--accent-subtle);
  color: var(--text-primary);
}

/* Focus visible - Clear indicator */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Enhanced focus states for Warm Humanism */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Links - Smooth transitions */
a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

/* Buttons - Modern design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--btn-cta-bg);
  color: var(--btn-cta-text);
  border: 1px solid var(--btn-cta-bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background: #292524;
  border-color: #292524;
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  border-color: var(--border-visible);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-hover);
  border-color: var(--border-focus);
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Inputs - Clean design */
.input {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  background-color: var(--bg-input);
  border: 1px solid var(--border-visible);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.input::-moz-placeholder {
  color: var(--text-muted);
}

.input::placeholder {
  color: var(--text-muted);
}

/* Card - Subtle elevation */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

/* Status colors - With subtle backgrounds */
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--text-primary); }
.text-amber { color: var(--accent-amber); }

.bg-success { background-color: var(--success-subtle); }
.bg-warning { background-color: var(--warning-subtle); }
.bg-error { background-color: var(--error-subtle); }
.bg-info { background-color: var(--info-subtle); }

/* Border colors */
.border-accent { border-color: var(--accent); }
.border-muted { border-color: var(--border-subtle); }

/* Animations - Smooth and natural */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.75s linear infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 200ms ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 250ms ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 200ms ease-out;
}

/* Button press feedback - 新增 */
@keyframes buttonPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.btn:active {
  animation: buttonPress 150ms ease-out;
}

/* ============ Enhanced Fire Animations for Warm Humanism ============ */

/* 初火呼吸动画 (First Flame Breathing) - 增强版 */
@keyframes flameBreath {
  0%, 100% {
    box-shadow: 0 0 24px rgba(255, 107, 53, 0.35);
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 36px rgba(255, 107, 53, 0.5);
    filter: brightness(1.15) saturate(1.2);
    transform: scale(1.02);
  }
}

.flame-kindled-avatar {
  animation: flameBreath 3s ease-in-out infinite;
}

/* 初火点燃动画 (Kindle Moment) - 觉醒时刻 */
@keyframes flameKindle {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 107, 53, 0);
    opacity: 0.8;
  }
  30% {
    transform: scale(1.15);
    box-shadow: 0 0 35px rgba(255, 107, 53, 0.7);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.45);
    opacity: 1;
  }
}

.flame-kindle-celebration {
  animation: flameKindle 0.8s ease-out;
}

/* 燎原扩散动画 (Prairie Fire) - 协作网络的扩散感 */
@keyframes prairieFire {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.prairie-fire-spread {
  animation: prairieFire 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 流动动画 (Flow) - Exchange的流动性 */
@keyframes flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.flow-animation {
  background-size: 200% 200%;
  animation: flow 3s ease infinite;
}

/* Mono font for code/data */
.font-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: var(--tracking-tight);
}

/* Status badges - Modern pill design */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  letter-spacing: 0.025em;
}

.badge-success {
  background-color: var(--success-subtle);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.badge-warning {
  background-color: var(--warning-subtle);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-error {
  background-color: var(--error-subtle);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.badge-accent {
  background-color: var(--accent-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-visible);
}

.badge-hard-shell {
  background-color: var(--accent-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-visible);
}

/* Status dots - Solid colors, no glow */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background-color: var(--online);
}

.status-dot.offline {
  background-color: var(--offline);
}

.status-dot.working {
  background-color: var(--working);
  animation: pulse 2s infinite;
}

/* Container utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Layout utilities */
.grid { display: grid; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Spacing utilities */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }

/* Width utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-full { max-width: 100%; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Border utilities */
.border { border: 1px solid var(--border-subtle); }
.border-b { border-bottom: 1px solid var(--border-subtle); }
.border-t { border-top: 1px solid var(--border-subtle); }
.border-r { border-right: 1px solid var(--border-subtle); }
.border-l { border-left: 1px solid var(--border-subtle); }

.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Flex utilities */
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.grow-0 { flex-grow: 0; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Opacity utilities */
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Highlight.js code highlighting base styles */
.hljs {
  color: var(--text-inverse);
  background: transparent;
}
.hover\:text-red-500:hover {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.hover\:opacity-80:hover {
  opacity: 0.8;
}
@media (min-width: 640px) {

  .sm\:flex-row {
    flex-direction: row;
  }
}
@media (min-width: 768px) {

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

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {

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

