/* tailwindcss.css - 精简版 */

/* 基础样式 */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', 'system-ui', sans-serif;
}

/* 布局类 */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.mx-auto { margin-right: auto; margin-left: auto; }
.flex { display: flex; }
.hidden { display: none; }
.grid { display: grid; }
.absolute { position: absolute; }
.relative { position: relative; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* 定位类 */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.top-1\/2 { top: 50%; }
.bottom-4 { bottom: 1rem; }
.left-1\/2 { left: 50%; }

/* 间距类 */
.px-4 { padding-right: 1rem; padding-left: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-6 { padding-right: 1.5rem; padding-left: 1.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-6 { padding-top: 1.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3 { padding-right: 0.75rem; }
.px-1 { padding-right: 0.25rem; padding-left: 0.25rem; }

.mb-10 { margin-bottom: 2.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mr-6 { margin-right: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; margin-bottom: 1.25rem; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* 尺寸类 */
.w-1\/2 { width: 50%; }
.w-3 { width: 0.75rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }
.h-3 { height: 0.75rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.h-\[400px\] { height: 400px; }
.max-w-md { max-width: 28rem; }
.max-w-5xl { max-width: 64rem; }

/* 文本类 */
.text-\[clamp\(1\.8rem\,4vw\,2\.8rem\)\] { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-\[\#165DFF\] { color: #165DFF; }
.text-white { color: #fff; }
.text-primary { color: #2E7D32; }
.text-secondary { color: #81C784; }
.text-neutral { color: #F5F5F5; }
.text-dark { color: #263238; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-blue-100 { color: #dbeafe; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-green-100 { color: #dcfce7; }
.text-green-600 { color: #16a34a; }
.text-orange-100 { color: #ffedd5; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-purple-100 { color: #f3e8ff; }
.text-purple-600 { color: #9333ea; }
.text-red-500 { color: #ef4444; }

.text-center { text-align: center; }
.line-clamp-2 { 
  display: box; 
  overflow: hidden; 
  box-orient: vertical; 
  -webkit-line-clamp: 2; 
}
.leading-relaxed { line-height: 1.625; }
.line-height-45px { line-height: 45px; }

/* 背景类 */
.bg-white { background-color: #fff; }
.bg-primary { background-color: #2E7D32; }
.bg-dark { background-color: #263238; }
.bg-neutral { background-color: #F5F5F5; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-100 { background-color: #F3F4F6; }
.bg-gray-200 { background-color: #E5E7EB; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-red-50 { background-color: #fef2f2; }

.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-primary\/10 { background-color: rgba(46, 125, 50, 0.1); }
.bg-primary\/90 { background-color: rgba(46, 125, 50, 0.9); }

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

.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0)); }
.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0)); }
.from-green-50 { --tw-gradient-from: #f0fdf4; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 253, 244, 0)); }
.from-green-600 { --tw-gradient-from: #16a34a; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(22, 163, 74, 0)); }
.from-orange-50 { --tw-gradient-from: #fff7ed; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 247, 237, 0)); }
.from-orange-600 { --tw-gradient-from: #ea580c; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(234, 88, 12, 0)); }
.from-purple-50 { --tw-gradient-from: #faf5ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0)); }
.from-purple-600 { --tw-gradient-from: #9333ea; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0)); }
.from-primary\/90 { --tw-gradient-from: rgba(46, 125, 50, 0.9); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(46, 125, 50, 0)); }

.to-blue-100 { --tw-gradient-to: #dbeafe; }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }
.to-green-100 { --tw-gradient-to: #dcfce7; }
.to-green-700 { --tw-gradient-to: #15803d; }
.to-orange-100 { --tw-gradient-to: #ffedd5; }
.to-orange-700 { --tw-gradient-to: #c2410c; }
.to-purple-100 { --tw-gradient-to: #f3e8ff; }
.to-purple-700 { --tw-gradient-to: #7e22ce; }
.to-primary { --tw-gradient-to: #2E7D32; }

/* 边框类 */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }

.border-gray-100 { border-color: #F3F4F6; }
.border-gray-200 { border-color: #E5E7EB; }
.border-gray-300 { border-color: #D1D5DB; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1F2937; }
.border-blue-200 { border-color: #bfdbfe; }
.border-green-200 { border-color: #bbf7d0; }
.border-orange-200 { border-color: #fed7aa; }
.border-purple-200 { border-color: #e9d5ff; }
.border-primary { border-color: #2E7D32; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-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); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.overflow-hidden { overflow: hidden; }

/* 变换 */
.rotate-0 { transform: rotate(0deg); }
.rotate-2 { transform: rotate(2deg); }
.-rotate-1 { transform: rotate(-1deg); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-x-8 { transform: translateX(-2rem); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-y-10 { transform: translateY(-2.5rem); }
.translate-x-1\/2 { transform: translateX(50%); }
.translate-x-10 { transform: translateX(2.5rem); }
.translate-y-8 { transform: translateY(2rem); }

/* 过渡和动画 */
.transition-opacity { 
  transition-duration: 150ms; 
  transition-property: opacity; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
}
.transition-colors { 
  transition-duration: 150ms; 
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
}
.transition-all { 
  transition-duration: 300ms; 
  transition-property: all; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
}
.transition-transform { 
  transition-duration: 500ms; 
  transition-property: transform; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
}
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-1000 { transition-duration: 1000ms; }

/* 交互类 */
.cursor-pointer { cursor: pointer; }

.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-gray-50:hover { background-color: #F9FAFB; }
.hover\:bg-gray-100:hover { background-color: #F3F4F6; }
.hover\:bg-gray-200:hover { background-color: #E5E7EB; }
.hover\:bg-primary\/90:hover { background-color: rgba(46, 125, 50, 0.9); }

.hover\:text-primary:hover { color: #2E7D32; }
.hover\:text-secondary:hover { color: #81C784; }
.hover\:text-\[\#165DFF\]:hover { color: #165DFF; }
.hover\:text-gray-700:hover { color: #374151; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-green-700:hover { color: #15803d; }
.hover\:text-orange-700:hover { color: #c2410c; }
.hover\:text-purple-700:hover { color: #7e22ce; }
.hover\:underline:hover { text-decoration: underline; }

.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\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }

.group-hover\/item\:text-blue-600:hover { color: #2563eb; }
.group-hover\/item\:text-green-600:hover { color: #16a34a; }
.group-hover\/item\:text-orange-600:hover { color: #ea580c; }
.group-hover\/item\:text-purple-600:hover { color: #9333ea; }

.focus\:border-primary:focus { border-color: #2E7D32; }
.focus\:ring-2:focus { 
  --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(2px + 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);
}
.focus\:ring-primary\/20:focus { --tw-ring-color: rgba(46, 125, 50, 0.2); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* 对齐类 */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* 其他工具类 */
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.flex-col { flex-direction: column; }
.min-h-screen { min-height: 100vh; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.object-cover { object-fit: cover; }
.whitespace-nowrap { white-space: nowrap; }

/* 自定义类 */
.card-hover { 
  transition: all 0.3s ease; 
}
.card-hover:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); 
}

.nav-active { 
  color: #2E7D32; 
  border-bottom: 2px solid #2E7D32; 
}

.banner-slider { 
  position: relative; 
}
.banner-item { 
  opacity: 0; 
  transition: opacity 1s ease; 
}

.content-auto { 
  content-visibility: auto; 
}

.auth-card-shadow { 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
}

.input-focus {
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 2.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
}

.input-focus:focus {
  border-color: #2E7D32;
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.btn-hover {
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dropdown-content {
  position: absolute;
  z-index: 50;
  display: none;
  width: 12rem;
  margin-top: 0.5rem;
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #374151;
}

.dropdown-item:hover {
  background-color: #F3F4F6;
}

/* Font Awesome 伪类 */
.fa { 
  display: inline-block; 
  font-style: normal; 
  line-height: 1; 
  text-rendering: auto; 
  font-variant: normal; 
}

/* 按钮重置 */
button { 
  cursor: pointer;
  background: none; 
  border: none;
}

/* 容器类 */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

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

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
  
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:p-8 { padding: 2rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
  
  .lg\:block { display: block; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
}

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

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

/* 表单元素样式重置 */
input[type="email"],
input[type="password"],
input[type="text"] {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  background-color: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  appearance: none;
}

input[type="checkbox"] {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  padding: 0;
  color: #2E7D32;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 0.25rem;
  appearance: none;
  user-select: none;
  print-color-adjust: exact;
  background-origin: border-box;
  flex-shrink: 0;
}

input[type="checkbox"]:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

input[type="checkbox"]:checked {
  background-color: currentColor;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: transparent;
}

/* 修改 TDesign 登录界面主题色：蓝色 -> 绿色 */

:root {
  /* 主品牌色系 - 绿色主题 */
  --td-brand-color: #2e7d32 !important;
  --td-brand-color-hover: #1b5e20 !important;
  --td-brand-color-active: #43a047 !important;
  --td-brand-color-focus: #388e3c !important;
  
  /* 衍生透明度颜色 */
  --td-brand-color-1: rgba(46, 125, 50, 0.05) !important;
  --td-brand-color-2: rgba(46, 125, 50, 0.1) !important;
  --td-brand-color-3: rgba(46, 125, 50, 0.2) !important;
  --td-brand-color-4: rgba(46, 125, 50, 0.4) !important;
  --td-brand-color-5: rgba(46, 125, 50, 0.6) !important;
  --td-brand-color-6: rgba(46, 125, 50, 0.8) !important;
  --td-brand-color-7: #2e7d32 !important;
  --td-brand-color-8: rgba(46, 125, 50, 0.9) !important;
  --td-brand-color-9: rgba(46, 125, 50, 0.95) !important;
  --td-brand-color-10: rgba(46, 125, 50, 1) !important;
}

.t-input__inner{
      font-size: 16px !important;    
      border: none !important;
}