:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-light: #f0fdf4;
  --secondary: #0d9488;
  --bg-main: #f0fdf4;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --blue-50: #eff6ff;
  --teal-50: #f0fdfa;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --green-50: #f0fdf4;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* Base Styles */
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--gray-800);
  line-height: 1.5;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Gradients */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-blue-50 {
  --tw-gradient-from: var(--blue-50);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.to-white {
  --tw-gradient-to: var(--white);
}

.from-amber-800 {
  --tw-gradient-from: var(--amber-800);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(146, 64, 14, 0));
}

.to-amber-900 {
  --tw-gradient-to: var(--amber-900);
}

.from-green-50 {
  --tw-gradient-from: var(--green-50);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 253, 244, 0));
}

.to-teal-50 {
  --tw-gradient-to: var(--teal-50);
}

.from-white {
  --tw-gradient-from: var(--white);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-transparent {
  --tw-gradient-to: transparent;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  padding: 1.5rem 0;
  flex-grow: 1;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.btn-outline:hover {
  background-color: var(--gray-50);
}

/* Components */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  outline: none;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; /* gray-400 */
}

.input-with-icon {
    padding-left: 2.5rem;
}

/* 标签页样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-btn.active {
    background-color: var(--primary); /* 使用CSS变量 */
    color: white !important;
    box-shadow: var(--shadow-md);
}

/* 文本截断 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 进度条 */
.progress-bar {
    height: 0.625rem;
    border-radius: 0.25rem;
    background-color: #e5e7eb; /* gray-200 */
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #22c55e; /* green-500 */
    transition: width 1s ease-in-out;
}

/* 自定义滚动条 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background-color: var(--primary); /* 使用绿色主色调 */
}

.notification-error {
    background-color: var(--red); /* 使用红色 */
}

.notification-info {
    background-color: var(--blue); /* 使用蓝色 */
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Utility classes for the migration period */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.hidden { display: none; }

/* 适配移动端 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .input {
        padding: 0.5rem 0.75rem;
    }
    
    .card {
        border-radius: 0.75rem;
    }
}

/* 通用动画 */
.transition-all {
    transition: all 0.2s ease-in-out;
}

.hover-scale-110:hover {
    transform: scale(1.1);
}

.transform {
    transform-origin: center center;
}

/* 按钮悬停效果 */
.hover-shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover-shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover-translate-y-0-5:hover {
    transform: translateY(-0.125rem);
}

/* 边框圆角 */
.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-t-full {
    border-top-left-radius: 9999px;
    border-top-right-radius: 9999px;
}

/* 阴影 */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 文本样式 */
.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

/* 颜色 */
.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: var(--gray-800);
}

.text-green-600 {
    color: var(--primary);
}

.text-green-700 {
    color: var(--primary-hover);
}

.text-green-800 {
    color: #166534;
}

.text-yellow-500 {
    color: var(--yellow);
}

.text-yellow-600 {
    color: #ca8a04;
}

.text-yellow-700 {
    color: #a16207;
}

.text-blue-500 {
    color: var(--blue);
}

.text-blue-600 {
    color: #2563eb;
}

.text-red-500 {
    color: var(--red);
}

.text-red-600 {
    color: #dc2626;
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-green-50 {
    background-color: var(--bg-main);
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-600 {
    background-color: var(--primary);
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-white {
    background-color: var(--white);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 边框 */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-green-100 {
    border-color: #dcfce7;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.border-yellow-100 {
    border-color: #fef9c3;
}

.border-blue-100 {
    border-color: #dbeafe;
}

.border-red-100 {
    border-color: #fee2e2;
}

/* 间距 */
.p-6 {
    padding: 1.5rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-4 {
    padding: 1rem;
}

.p-3 {
    padding: 0.75rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

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

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

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

/* Grid */
.grid {
    display: grid;
}

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

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

/* 宽高 */
.h-16 {
    height: 4rem;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

/* 定位 */
.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

/* 响应式网格布局 */
@media (min-width: 768px) {
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg-grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    
    .lg-col-span-5 {
        grid-column: span 5 / span 5;
    }
    
    .lg-col-span-7 {
        grid-column: span 7 / span 7;
    }
}

/* 动画效果 */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* 加载状态 */
.opacity-70 {
    opacity: 0.7;
}

/* 禁用状态 */
.cursor-not-allowed {
    cursor: not-allowed;
}

/* 其他辅助类 */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.font-serif {
    font-family: serif;
}

.capitalize {
    text-transform: capitalize;
}

.italic {
    font-style: italic;
}

.opacity-60 {
    opacity: 0.6;
}

.border-dashed {
    border-style: dashed;
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-normal {
    font-weight: 400;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-gray-100 {
    border-color: var(--gray-100);
}

.border-green-100 {
    border-color: #dcfce7;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.border-yellow-100 {
    border-color: #fef9c3;
}

.border-blue-100 {
    border-color: #dbeafe;
}

.border-red-100 {
    border-color: #fee2e2;
}

.border-gray-50 {
    border-color: var(--gray-50);
}

.border-gray-300 {
    border-color: #d1d5db;
}

.bg-green-50 {
    background-color: var(--green-50);
}

.bg-teal-50 {
    background-color: var(--teal-50);
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-green-50 {
    --tw-gradient-from: var(--green-50);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 253, 244, 0));
}

.to-teal-50 {
    --tw-gradient-to: var(--teal-50);
}

.from-blue-50 {
    --tw-gradient-from: var(--blue-50);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.to-white {
    --tw-gradient-to: var(--white);
}

.bg-green-400 {
    background-color: #4ade80;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-blue-50 {
    background-color: var(--blue-50);
}

.bg-yellow-100 {
    background-color: #fef9c3;
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.text-green-400 {
    color: #4ade80;
}

.text-green-500 {
    color: #22c55e;
}

.text-green-600 {
    color: var(--primary);
}

.text-green-700 {
    color: var(--primary-hover);
}

.text-green-800 {
    color: #166534;
}

.text-yellow-500 {
    color: var(--yellow);
}

.text-yellow-600 {
    color: #ca8a04;
}

.text-yellow-700 {
    color: #a16207;
}

.text-blue-500 {
    color: var(--blue);
}

.text-blue-600 {
    color: #2563eb;
}

.text-red-500 {
    color: var(--red);
}

.text-red-600 {
    color: #dc2626;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: var(--gray-800);
}

.w-4\.5 {
    width: 1.125rem;
}

.h-4\.5 {
    height: 1.125rem;
}

.w-3\.5 {
    width: 0.875rem;
}

.h-3\.5 {
    height: 0.875rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-32 {
    width: 8rem;
}

.h-32 {
    height: 8rem;
}

.w-40 {
    width: 10rem;
}

.h-40 {
    height: 10rem;
}

.w-48 {
    height: 12rem;
}

.h-48 {
    height: 12rem;
}

.w-64 {
    width: 16rem;
}

.h-64 {
    height: 16rem;
}

.h-80 {
    height: 20rem;
}

.h-64 {
    height: 16rem;
}

.h-32 {
    height: 8rem;
}

.h-2\.5 {
    height: 0.625rem;
}

.h-20 {
    height: 5rem;
}

.w-20 {
    width: 5rem;
}

.h-24 {
    height: 6rem;
}

.w-24 {
    width: 6rem;
}

.h-3 {
    height: 0.75rem;
}

.w-3 {
    width: 0.75rem;
}

.h-40 {
    height: 10rem;
}

.h-48 {
    height: 12rem;
}

.h-56 {
    height: 14rem;
}

.h-60 {
    height: 15rem;
}

.h-72 {
    height: 18rem;
}

.h-80 {
    height: 20rem;
}

.h-96 {
    height: 24rem;
}

.h-screen {
    height: 100vh;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-colors {
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.overflow-y-auto {
    overflow-y: auto;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0px;
}

.left-0 {
    left: 0px;
}

.right-0 {
    right: 0px;
}

.bottom-0 {
    bottom: 0px;
}

.top-4 {
    top: 1rem;
}

.left-4 {
    left: 1rem;
}

.right-4 {
    right: 1rem;
}

.bottom-4 {
    bottom: 1rem;
}

.top-6 {
    top: 1.5rem;
}

.left-6 {
    left: 1.5rem;
}

.right-6 {
    right: 1.5rem;
}

.bottom-6 {
    bottom: 1.5rem;
}

.-bottom-2 {
    bottom: -0.5rem;
}

.-right-2 {
    right: -0.5rem;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline {
    display: inline;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.contents {
    display: contents;
}

.list-item {
    display: list-item;
}

.float-right {
    float: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clear-left {
    clear: left;
}

.clear-right {
    clear: right;
}

.clear-both {
    clear: both;
}

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

.object-fill {
    object-fit: fill;
}

.object-scale-down {
    object-fit: scale-down;
}

.inset-0 {
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
}

.inset-x-0 {
    left: 0px;
    right: 0px;
}

.inset-y-0 {
    top: 0px;
    bottom: 0px;
}

.end-0 {
    inset-inline-end: 0px;
}

.start-0 {
    inset-inline-start: 0px;
}

.resize-none {
    resize: none;
}

.resize-y {
    resize: vertical;
}

.resize-x {
    resize: horizontal;
}

.resize {
    resize: both;
}

.snap-start {
    scroll-snap-align: start;
}

.snap-end {
    scroll-snap-align: end;
}

.snap-center {
    scroll-snap-align: center;
}

.snap-align-none {
    scroll-snap-align: none;
}

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

.static {
    position: static;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.sticky {
    position: sticky;
}

.collapse {
    visibility: collapse;
}

.border-collapse {
    border-collapse: collapse;
}

.border-separate {
    border-collapse: separate;
}

.overflow-hidden {
    overflow: hidden;
}



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

.whitespace-nowrap {
    white-space: nowrap;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.object-cover {
    object-fit: cover;
}

.border-4 {
    border-width: 4px;
}

.border-2 {
    border-width: 2px;
}

.border-1 {
    border-width: 1px;
}

.-bottom-2 {
    bottom: -0.5rem;
}

.-right-2 {
    right: -0.5rem;
}

.group:hover .group-hover-bg-green-200 {
    background-color: #bbf7d0;
}

.group:hover .group-hover-text-green-600 {
    color: #16a34a;
}

.group:hover .group-hover-text-green-700 {
    color: #15803d;
}

.group:hover .group-hover-underline {
    text-decoration: underline;
}

.hover-bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover-bg-red-50:hover {
    background-color: #fef2f2;
}

.hover-bg-blue-50:hover {
    background-color: #eff6ff;
}

.hover-bg-yellow-50:hover {
    background-color: #fefce8;
}

.hover-bg-yellow-100:hover {
    background-color: #fef9c3;
}

.hover-bg-green-700:hover {
    background-color: #15803d;
}

.hover-bg-green-200:hover {
    background-color: #bbf7d0;
}

.hover-text-green-600:hover {
    color: #16a34a;
}

.hover-underline:hover {
    text-decoration: underline;
}

.hover-opacity-100:hover {
    opacity: 1;
}

.hover-opacity-70:hover {
    opacity: 0.7;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* 特殊样式 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Canvas styles for tree rendering */
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Additional styles needed for PHP pages */
.md\:flex {
    display: flex;
}

.md\:grid {
    display: grid;
}

.md\:hidden {
    display: none;
}

.md\:block {
    display: block;
}

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

.focus\:border-green-500:focus {
    border-color: var(--primary);
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.focus\:ring-green-100:focus {
    box-shadow: 0 0 0 2px var(--primary-light);
}

.outline-none {
    outline: none;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.resize-none {
    resize: none;
}

.resize-y {
    resize: vertical;
}

.resize-x {
    resize: horizontal;
}

.resize {
    resize: both;
}

.h-64 {
    height: 16rem;
}

.h-16 {
    height: 4rem;
}

.w-4\/5 {
    width: 80%;
}

.w-11\/12 {
    width: 91.666667%;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: var(--gray-800);
}

.text-green-600 {
    color: var(--primary);
}

.text-green-700 {
    color: var(--primary-hover);
}

.text-blue-400 {
    color: #60a5fa;
}

.text-blue-600 {
    color: #2563eb;
}

.text-yellow-500 {
    color: var(--yellow);
}

.text-yellow-700 {
    color: #92400e;
}

.text-red-700 {
    color: #b91c1c;
}

.group:hover .group-hover\:bg-green-200 {
    background-color: #bbf7d0;
}

.group:hover .group-hover\:text-green-600 {
    color: var(--primary);
}

.group:hover .group-hover\:underline {
    text-decoration: underline;
}

.hover\:bg-gray-50:hover {
    background-color: var(--gray-50);
}

.hover\:bg-green-50:hover {
    background-color: var(--green-50);
}

.hover\:bg-yellow-100:hover {
    background-color: #fef9c3;
}

.hover\:bg-green-200:hover {
    background-color: #bbf7d0;
}

.hover\:opacity-100:hover {
    opacity: 1;
}

.hover\:opacity-70:hover {
    opacity: 0.7;
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:text-green-600:hover {
    color: var(--primary);
}

.hover\:underline:hover {
    text-decoration: underline;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--space-y-reverse)));
    margin-bottom: calc(0.5rem * var(--space-y-reverse));
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pr-4 {
    padding-right: 1rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-6 {
    padding: 1.5rem;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-blue-50 {
    background-color: var(--blue-50);
}

.bg-white {
    background-color: var(--white);
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-green-50 {
    background-color: var(--green-50);
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.h-screen {
    height: 100vh;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-l {
    border-left-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.cursor-pointer {
    cursor: pointer;
}

.select-none {
    user-select: none;
}

.appearance-none {
    appearance: none;
}

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

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

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

.capitalize {
    text-transform: capitalize;
}

.lowercase {
    text-transform: lowercase;
}

.uppercase {
    text-transform: uppercase;
}

.underline {
    text-decoration: underline;
}

.no-underline {
    text-decoration: none;
}

.overflow-hidden {
    overflow: hidden;
}

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

.overflow-y-auto {
    overflow-y: auto;
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 龙腾九天元素样式 */
.dragon-ascending {
    position: relative;
    overflow: hidden;
}

.dragon-ascending::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent,
        rgba(255, 165, 0, 0.1),
        transparent
    );
    animation: rotate 4s linear infinite;
    z-index: 0;
}

.dragon-ascending .content {
    position: relative;
    z-index: 1;
}

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

.dragon-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3),
              0 0 40px rgba(255, 165, 0, 0.2),
              inset 0 0 10px rgba(255, 215, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.dragon-glow:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5),
              0 0 60px rgba(255, 165, 0, 0.3),
              inset 0 0 15px rgba(255, 215, 0, 0.3);
}

/* 月圆桂香元素样式 */
.moon-garden {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 250, 205, 0.1) 0%, transparent 70%),
                 radial-gradient(ellipse at 20% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
                 radial-gradient(ellipse at 80% 20%, rgba(255, 248, 220, 0.08) 0%, transparent 40%);
}

.moon-garden::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 250, 205, 0.8) 0%, rgba(255, 240, 150, 0.3) 70%, transparent 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    z-index: 0;
}

.moon-garden::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 10%;
    width: 20px;
    height: 30px;
    background: linear-gradient(to top, transparent, rgba(255, 182, 193, 0.15), transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: sway 8s ease-in-out infinite;
    z-index: 0;
}

.moon-garden .content {
    position: relative;
    z-index: 1;
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

.moon-glow {
    position: relative;
}

.moon-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(255, 250, 205, 0.3);
    z-index: -1;
}

/* 新春福树元素样式 */
.spring-fortune-tree {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.1) 0%, rgba(255, 228, 225, 0.08) 100%),
                 radial-gradient(circle at 30% 30%, rgba(220, 38, 38, 0.05) 0%, transparent 40%),
                 radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
}

.spring-fortune-tree::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 40px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc2626"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13.5v8.5l6 3-6-10V4.5z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.spring-fortune-tree::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 35px;
    height: 45px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13.5v8.5l6 3-6-10V4.5z"/><circle cx="12" cy="12" r="3" fill="%23dc2626"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.18;
    animation: float 7s ease-in-out infinite reverse;
    z-index: 0;
}

.spring-fortune-tree .content {
    position: relative;
    z-index: 1;
}

.fortune-glow {
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2),
              0 0 30px rgba(255, 215, 0, 0.2),
              inset 0 0 10px rgba(255, 215, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.fortune-glow:hover {
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.4),
              0 0 45px rgba(255, 215, 0, 0.3),
              inset 0 0 15px rgba(255, 215, 0, 0.2);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.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));
}

.transform-gpu {
    transform: translate3d(var(--tw-translate-x), var(--tw-translate-y), 0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-y-0\.5 {
    transform: translateY(-0.125rem);
}

.-translate-y-0\.5 {
    transform: translateY(-0.125rem);
}

.hover\:-translate-y-0\.5:hover {
    transform: translateY(-0.125rem);
}

.scale-110 {
    transform: scale(1.1);
}

.ring-2 {
    box-shadow: 0 0 0 2px;
}

.ring-offset-2 {
    box-shadow: 0 0 0 2px;
}

.ring-gray-300 {
    box-shadow: 0 0 0 2px #d1d5db;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-100 {
    opacity: 1;
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.backdrop-filter {
    backdrop-filter: blur(1px);
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

.inset-0 {
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
}

.inset-y-0 {
    top: 0px;
    bottom: 0px;
}

.inset-x-0 {
    left: 0px;
    right: 0px;
}

.fill-current {
    fill: currentColor;
}

.stroke-current {
    stroke: currentColor;
}

.align-middle {
    vertical-align: middle;
}

.align-bottom {
    vertical-align: bottom;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.whitespace-pre {
    white-space: pre;
}

.whitespace-pre-line {
    white-space: pre-line;
}

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

.table-auto {
    table-layout: auto;
}

.table-fixed {
    table-layout: fixed;
}

.list-inside {
    list-style-position: inside;
}

.list-outside {
    list-style-position: outside;
}

.list-disc {
    list-style-type: disc;
}

.list-decimal {
    list-style-type: decimal;
}

.hidden {
    display: none;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.static {
    position: static;
}

.top-0 {
    top: 0px;
}

.right-0 {
    right: 0px;
}

.left-0 {
    left: 0px;
}

.bottom-0 {
    bottom: 0px;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.left-4 {
    left: 1rem;
}

.bottom-4 {
    bottom: 1rem;
}

.left-6 {
    left: 1.5rem;
}

.right-6 {
    right: 1.5rem;
}

.top-6 {
    top: 1.5rem;
}

.bottom-6 {
    bottom: 1.5rem;
}

.top-10 {
    top: 2.5rem;
}

.bottom-10 {
    bottom: 2.5rem;
}

.-bottom-2 {
    bottom: -0.5rem;
}

.-right-2 {
    right: -0.5rem;
}

.-left-2 {
    left: -0.5rem;
}

.-top-2 {
    top: -0.5rem;
}

.-bottom-4 {
    bottom: -1rem;
}

.-right-4 {
    right: -1rem;
}

.-left-4 {
    left: -1rem;
}

.-top-4 {
    top: -1rem;
}

.-bottom-6 {
    bottom: -1.5rem;
}

.-right-6 {
    right: -1.5rem;
}

.-left-6 {
    left: -1.5rem;
}

.-top-6 {
    top: -1.5rem;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-grow {
    flex-grow: 1;
}

.flex-grow-0 {
    flex-grow: 0;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.order-3 {
    order: 3;
}

.order-last {
    order: 9999;
}

.self-start {
    align-self: flex-start;
}

.self-end {
    align-self: flex-end;
}

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

.self-stretch {
    align-self: stretch;
}

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

.justify-end {
    justify-content: flex-end;
}

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

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

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

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

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

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

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

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

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

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

.content-start {
    align-content: flex-start;
}

.content-end {
    align-content: flex-end;
}

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

.content-around {
    align-content: space-around;
}

.content-evenly {
    align-content: space-evenly;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

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

.flex-nowrap {
    flex-wrap: nowrap;
}

.flex-wrap-reverse {
    flex-wrap: wrap-reverse;
}

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

.place-content-center {
    place-content: center;
}

.place-self-center {
    place-self: center;
}

.col-auto {
    grid-column: auto;
}

.row-auto {
    grid-row: auto;
}

.auto-cols-auto {
    grid-auto-columns: auto;
}

.auto-rows-auto {
    grid-auto-rows: auto;
}

.grid-flow-row {
    grid-auto-flow: row;
}

.grid-flow-col {
    grid-auto-flow: column;
}

.grid-flow-row-dense {
    grid-auto-flow: row dense;
}

.grid-flow-col-dense {
    grid-auto-flow: column dense;
}

.auto-cols-min {
    grid-auto-columns: min-content;
}

.auto-cols-max {
    grid-auto-columns: max-content;
}

.auto-cols-fr {
    grid-auto-columns: minmax(0, 1fr);
}

.auto-rows-min {
    grid-auto-rows: min-content;
}

.auto-rows-max {
    grid-auto-rows: max-content;
}

.auto-rows-fr {
    grid-auto-rows: minmax(0, 1fr);
}

/* Responsive styles for sm, md, lg breakpoints */
/* Small screens (640px and up) */
@media (min-width: 640px) {
    .sm\:flex {
        display: flex;
    }
    .sm\:block {
        display: block;
    }
    .sm\:hidden {
        display: none;
    }
    .sm\:flex-row {
        flex-direction: row;
    }
    .sm\:items-center {
        align-items: center;
    }
    .sm\:justify-center {
        justify-content: center;
    }
    .sm\:w-auto {
        width: auto;
    }
    .sm\:w-fit {
        width: fit-content;
    }
    .sm\:w-full {
        width: 100%;
    }
    .sm\:max-w-xs {
        max-width: 20rem;
    }
    .sm\:max-w-sm {
        max-width: 24rem;
    }
    .sm\:max-w-md {
        max-width: 28rem;
    }
    .sm\:max-w-lg {
        max-width: 32rem;
    }
    .sm\:max-w-xl {
        max-width: 36rem;
    }
    .sm\:max-w-2xl {
        max-width: 42rem;
    }
    .sm\:max-w-3xl {
        max-width: 48rem;
    }
    .sm\:max-w-4xl {
        max-width: 56rem;
    }
    .sm\:max-w-5xl {
        max-width: 64rem;
    }
    .sm\:mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    .sm\:truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sm\:rounded-lg {
        border-radius: 0.5rem;
    }
    .sm\:rounded-xl {
        border-radius: 0.75rem;
    }
    .sm\:rounded-2xl {
        border-radius: 1rem;
    }
    .sm\:border {
        border-width: 1px;
    }
    .sm\:border-b {
        border-bottom-width: 1px;
    }
    .sm\:border-t {
        border-top-width: 1px;
    }
    .sm\:bg-white {
        background-color: var(--white);
    }
    .sm\:bg-gray-50 {
        background-color: var(--gray-50);
    }
    .sm\:bg-green-50 {
        background-color: var(--green-50);
    }
    .sm\:text-gray-500 {
        color: var(--gray-500);
    }
    .sm\:text-gray-600 {
        color: var(--gray-600);
    }
    .sm\:text-gray-700 {
        color: #374151;
    }
    .sm\:text-gray-800 {
        color: var(--gray-800);
    }
    .sm\:text-green-600 {
        color: var(--primary);
    }
    .sm\:text-green-700 {
        color: var(--primary-hover);
    }
    .sm\:font-medium {
        font-weight: 500;
    }
    .sm\:font-semibold {
        font-weight: 600;
    }
    .sm\:font-bold {
        font-weight: 700;
    }
    .sm\:italic {
        font-style: italic;
    }
    .sm\:uppercase {
        text-transform: uppercase;
    }
    .sm\:capitalize {
        text-transform: capitalize;
    }
    .sm\:underline {
        text-decoration: underline;
    }
    .sm\:opacity-100 {
        opacity: 1;
    }
    .sm\:shadow-sm {
        box-shadow: var(--shadow-sm);
    }
    .sm\:shadow-md {
        box-shadow: var(--shadow-md);
    }
    .sm\:hover\:bg-white:hover {
        background-color: var(--white);
    }
    .sm\:hover\:bg-gray-50:hover {
        background-color: var(--gray-50);
    }
    .sm\:hover\:bg-green-50:hover {
        background-color: var(--green-50);
    }
    .sm\:hover\:text-green-600:hover {
        color: var(--primary);
    }
}

/* Medium screens (768px and up) */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    .md\:grid {
        display: grid;
    }
    .md\:hidden {
        display: none;
    }
    .md\:block {
        display: block;
    }
    .md\:flex-row {
        flex-direction: row;
    }
    .md\:items-center {
        align-items: center;
    }
    .md\:justify-between {
        justify-content: space-between;
    }
    .md\:justify-center {
        justify-content: center;
    }
    .md\:gap-2 {
        gap: 0.5rem;
    }
    .md\:gap-4 {
        gap: 1rem;
    }
    .md\:gap-6 {
        gap: 1.5rem;
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:w-auto {
        width: auto;
    }
    .md\:w-full {
        width: 100%;
    }
    .md\:max-w-xs {
        max-width: 20rem;
    }
    .md\:max-w-sm {
        max-width: 24rem;
    }
    .md\:max-w-md {
        max-width: 28rem;
    }
    .md\:max-w-lg {
        max-width: 32rem;
    }
    .md\:max-w-xl {
        max-width: 36rem;
    }
    .md\:max-w-2xl {
        max-width: 42rem;
    }
    .md\:max-w-3xl {
        max-width: 48rem;
    }
    .md\:max-w-4xl {
        max-width: 56rem;
    }
    .md\:max-w-5xl {
        max-width: 64rem;
    }
    .md\:mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    .md\:truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .md\:rounded-lg {
        border-radius: 0.5rem;
    }
    .md\:rounded-xl {
        border-radius: 0.75rem;
    }
    .md\:rounded-2xl {
        border-radius: 1rem;
    }
    .md\:border {
        border-width: 1px;
    }
    .md\:border-b {
        border-bottom-width: 1px;
    }
    .md\:border-t {
        border-top-width: 1px;
    }
    .md\:bg-white {
        background-color: var(--white);
    }
    .md\:bg-gray-50 {
        background-color: var(--gray-50);
    }
    .md\:bg-green-50 {
        background-color: var(--green-50);
    }
    .md\:text-gray-500 {
        color: var(--gray-500);
    }
    .md\:text-gray-600 {
        color: var(--gray-600);
    }
    .md\:text-gray-700 {
        color: #374151;
    }
    .md\:text-gray-800 {
        color: var(--gray-800);
    }
    .md\:text-green-600 {
        color: var(--primary);
    }
    .md\:text-green-700 {
        color: var(--primary-hover);
    }
    .md\:font-medium {
        font-weight: 500;
    }
    .md\:font-semibold {
        font-weight: 600;
    }
    .md\:font-bold {
        font-weight: 700;
    }
    .md\:italic {
        font-style: italic;
    }
    .md\:uppercase {
        text-transform: uppercase;
    }
    .md\:capitalize {
        text-transform: capitalize;
    }
    .md\:underline {
        text-decoration: underline;
    }
    .md\:opacity-100 {
        opacity: 1;
    }
    .md\:shadow-sm {
        box-shadow: var(--shadow-sm);
    }
    .md\:shadow-md {
        box-shadow: var(--shadow-md);
    }
    .md\:hover\:bg-white:hover {
        background-color: var(--white);
    }
    .md\:hover\:bg-gray-50:hover {
        background-color: var(--gray-50);
    }
    .md\:hover\:bg-green-50:hover {
        background-color: var(--green-50);
    }
    .md\:hover\:text-green-600:hover {
        color: var(--primary);
    }
}

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }
    .lg\:grid {
        display: grid;
    }
    .lg\:hidden {
        display: none;
    }
    .lg\:block {
        display: block;
    }
    .lg\:flex-row {
        flex-direction: row;
    }
    .lg\:items-center {
        align-items: center;
    }
    .lg\:justify-between {
        justify-content: space-between;
    }
    .lg\:justify-center {
        justify-content: center;
    }
    .lg\:gap-2 {
        gap: 0.5rem;
    }
    .lg\:gap-4 {
        gap: 1rem;
    }
    .lg\:gap-6 {
        gap: 1.5rem;
    }
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .lg\:col-span-5 {
        grid-column: span 5 / span 5;
    }
    .lg\:col-span-7 {
        grid-column: span 7 / span 7;
    }
    .lg\:w-auto {
        width: auto;
    }
    .lg\:w-full {
        width: 100%;
    }
    .lg\:max-w-xs {
        max-width: 20rem;
    }
    .lg\:max-w-sm {
        max-width: 24rem;
    }
    .lg\:max-w-md {
        max-width: 28rem;
    }
    .lg\:max-w-lg {
        max-width: 32rem;
    }
    .lg\:max-w-xl {
        max-width: 36rem;
    }
    .lg\:max-w-2xl {
        max-width: 42rem;
    }
    .lg\:max-w-3xl {
        max-width: 48rem;
    }
    .lg\:max-w-4xl {
        max-width: 56rem;
    }
    .lg\:max-w-5xl {
        max-width: 64rem;
    }
    .lg\:mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    .lg\:truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .lg\:rounded-lg {
        border-radius: 0.5rem;
    }
    .lg\:rounded-xl {
        border-radius: 0.75rem;
    }
    .lg\:rounded-2xl {
        border-radius: 1rem;
    }
    .lg\:border {
        border-width: 1px;
    }
    .lg\:border-b {
        border-bottom-width: 1px;
    }
    .lg\:border-t {
        border-top-width: 1px;
    }
    .lg\:bg-white {
        background-color: var(--white);
    }
    .lg\:bg-gray-50 {
        background-color: var(--gray-50);
    }
    .lg\:bg-green-50 {
        background-color: var(--green-50);
    }
    .lg\:text-gray-500 {
        color: var(--gray-500);
    }
    .lg\:text-gray-600 {
        color: var(--gray-600);
    }
    .lg\:text-gray-700 {
        color: #374151;
    }
    .lg\:text-gray-800 {
        color: var(--gray-800);
    }
    .lg\:text-green-600 {
        color: var(--primary);
    }
    .lg\:text-green-700 {
        color: var(--primary-hover);
    }
    .lg\:font-medium {
        font-weight: 500;
    }
    .lg\:font-semibold {
        font-weight: 600;
    }
    .lg\:font-bold {
        font-weight: 700;
    }
    .lg\:italic {
        font-style: italic;
    }
    .lg\:uppercase {
        text-transform: uppercase;
    }
    .lg\:capitalize {
        text-transform: capitalize;
    }
    .lg\:underline {
        text-decoration: underline;
    }
    .lg\:opacity-100 {
        opacity: 1;
    }
    .lg\:shadow-sm {
        box-shadow: var(--shadow-sm);
    }
    .lg\:shadow-md {
        box-shadow: var(--shadow-md);
    }
    .lg\:hover\:bg-white:hover {
        background-color: var(--white);
    }
    .lg\:hover\:bg-gray-50:hover {
        background-color: var(--gray-50);
    }
    .lg\:hover\:bg-green-50:hover {
        background-color: var(--green-50);
    }
    .lg\:hover\:text-green-600:hover {
        color: var(--primary);
    }
}

/* Extra large screens (1280px and up) */
@media (min-width: 1280px) {
    .xl\:flex {
        display: flex;
    }
    .xl\:grid {
        display: grid;
    }
    .xl\:hidden {
        display: none;
    }
    .xl\:block {
        display: block;
    }
    .xl\:flex-row {
        flex-direction: row;
    }
    .xl\:items-center {
        align-items: center;
    }
    .xl\:justify-between {
        justify-content: space-between;
    }
    .xl\:justify-center {
        justify-content: center;
    }
    .xl\:gap-2 {
        gap: 0.5rem;
    }
    .xl\:gap-4 {
        gap: 1rem;
    }
    .xl\:gap-6 {
        gap: 1.5rem;
    }
    .xl\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .xl\:col-span-5 {
        grid-column: span 5 / span 5;
    }
    .xl\:col-span-7 {
        grid-column: span 7 / span 7;
    }
    .xl\:w-auto {
        width: auto;
    }
    .xl\:w-full {
        width: 100%;
    }
    .xl\:max-w-xs {
        max-width: 20rem;
    }
    .xl\:max-w-sm {
        max-width: 24rem;
    }
    .xl\:max-w-md {
        max-width: 28rem;
    }
    .xl\:max-w-lg {
        max-width: 32rem;
    }
    .xl\:max-w-xl {
        max-width: 36rem;
    }
    .xl\:max-w-2xl {
        max-width: 42rem;
    }
    .xl\:max-w-3xl {
        max-width: 48rem;
    }
    .xl\:max-w-4xl {
        max-width: 56rem;
    }
    .xl\:max-w-5xl {
        max-width: 64rem;
    }
    .xl\:mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    .xl\:truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .xl\:rounded-lg {
        border-radius: 0.5rem;
    }
    .xl\:rounded-xl {
        border-radius: 0.75rem;
    }
    .xl\:rounded-2xl {
        border-radius: 1rem;
    }
    .xl\:border {
        border-width: 1px;
    }
    .xl\:border-b {
        border-bottom-width: 1px;
    }
    .xl\:border-t {
        border-top-width: 1px;
    }
    .xl\:bg-white {
        background-color: var(--white);
    }
    .xl\:bg-gray-50 {
        background-color: var(--gray-50);
    }
    .xl\:bg-green-50 {
        background-color: var(--green-50);
    }
    .xl\:text-gray-500 {
        color: var(--gray-500);
    }
    .xl\:text-gray-600 {
        color: var(--gray-600);
    }
    .xl\:text-gray-700 {
        color: #374151;
    }
    .xl\:text-gray-800 {
        color: var(--gray-800);
    }
    .xl\:text-green-600 {
        color: var(--primary);
    }
    .xl\:text-green-700 {
        color: var(--primary-hover);
    }
    .xl\:font-medium {
        font-weight: 500;
    }
    .xl\:font-semibold {
        font-weight: 600;
    }
    .xl\:font-bold {
        font-weight: 700;
    }
    .xl\:italic {
        font-style: italic;
    }
    .xl\:uppercase {
        text-transform: uppercase;
    }
    .xl\:capitalize {
        text-transform: capitalize;
    }
    .xl\:underline {
        text-decoration: underline;
    }
    .xl\:opacity-100 {
        opacity: 1;
    }
    .xl\:shadow-sm {
        box-shadow: var(--shadow-sm);
    }
    .xl\:shadow-md {
        box-shadow: var(--shadow-md);
    }
    .xl\:hover\:bg-white:hover {
        background-color: var(--white);
    }
    .xl\:hover\:bg-gray-50:hover {
        background-color: var(--gray-50);
    }
    .xl\:hover\:bg-green-50:hover {
        background-color: var(--green-50);
    }
    .xl\:hover\:text-green-600:hover {
        color: var(--primary);
    }
}

/* 主题背景装饰 */
.theme-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -9999;
    overflow: hidden;
}

/* 520浪漫主题 - 粉色爱心 */
.theme-decoration[data-theme="theme_520"] {
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 182, 193, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(255, 105, 180, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 192, 203, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, rgba(255, 182, 193, 0.05) 0%, rgba(255, 228, 225, 0.08) 100%);
}

.theme-decoration[data-theme="theme_520"]::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffafcc"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    top: 15%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.theme-decoration[data-theme="theme_520"]::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffb6c1"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.12;
    bottom: 20%;
    right: 15%;
    animation: float 9s ease-in-out infinite reverse;
}

/* 龙年主题 - 金龙 */
.theme-decoration[data-theme="theme_long"] {
    background-image: 
        radial-gradient(ellipse at 30% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 180, 0, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 215, 0, 0.03) 0%, rgba(255, 248, 220, 0.05) 100%);
}

.theme-decoration[data-theme="theme_long"]::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13.5v8.5l6 3-6-10V4.5z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    top: 8%;
    right: 12%;
    animation: float 11s ease-in-out infinite;
}

.theme-decoration[data-theme="theme_long"]::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffb700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13.5v8.5l6 3-6-10V4.5z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.12;
    bottom: 15%;
    left: 8%;
    animation: float 13s ease-in-out infinite reverse;
}

/* 中秋主题 - 圆月桂花 */
.theme-decoration[data-theme="theme_midautumn"] {
    background: 
        radial-gradient(circle at 85% 15%, rgba(255, 245, 157, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 15% 75%, rgba(255, 235, 59, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 40%, rgba(255, 250, 205, 0.08) 0%, transparent 45%),
        linear-gradient(120deg, rgba(255, 250, 240, 0.05) 0%, rgba(245, 245, 220, 0.08) 100%);
}

.theme-decoration[data-theme="theme_midautumn"]::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fffac8"><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16z"/><circle cx="10" cy="10" r="2" fill="%23d4af37"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.18;
    top: 10%;
    right: 18%;
    animation: float 10s ease-in-out infinite;
}

.theme-decoration[data-theme="theme_midautumn"]::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffb6c1"><path d="M12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-8 2c-.55 0-1 .45-1 1v1c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-1c0-.55-.45-1-1-1H4z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    bottom: 25%;
    left: 12%;
    animation: float 11s ease-in-out infinite reverse;
}

/* 春节主题 - 鞭炮福字 */
.theme-decoration[data-theme="theme_spring"] {
    background: 
        radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 35%),
        linear-gradient(45deg, rgba(255, 240, 245, 0.05) 0%, rgba(255, 228, 225, 0.08) 100%);
}

.theme-decoration[data-theme="theme_spring"]::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23dc2626"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13.5v8.5l6 3-6-10V4.5z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    top: 12%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.theme-decoration[data-theme="theme_spring"]::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13.5v8.5l6 3-6-10V4.5z"/><circle cx="12" cy="12" r="3" fill="%23dc2626"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.12;
    bottom: 18%;
    right: 15%;
    animation: float 10s ease-in-out infinite reverse;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* 登录表单专用样式 */
.pl-10 {
    padding-left: 2.5rem;
}

.pl-3 {
    padding-left: 0.75rem;
}

.top-3\.5 {
    top: 0.875rem;
}

.left-3 {
    left: 0.75rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.hover\:-translate-y-0\.5:hover {
    transform: translateY(-0.125rem);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
