/* Tailwind CSS v3 基础样式 */

/* 自定义颜色 */
:root {
  --color-primary: #008000;
  --color-secondary: #1e40af;
  --color-accent: #f97316;
  --color-neutral: #f5f5f5;
  --color-dark: #333333;
}

/* 屏幕阅读器文本样式 - 修复Skip to content显示问题 */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* 基础重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: white;
  color: var(--color-dark);
  line-height: inherit;
}

/* 响应式工具类 */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

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

/* 布局工具类 */
.flex {
  display: flex;
}

.grid {
  display: grid;
}

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

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

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

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.hidden {
  display: none;
}

.overflow-hidden {
  overflow: hidden;
}

/* 间距工具类 */
.gap-8 {
  gap: 2rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mr-3 {
  margin-right: 0.75rem;
}

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

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

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

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

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

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

.ml-1 {
  margin-left: 0.25rem;
}

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

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

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

.p-4 {
  padding: 1rem;
}

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

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

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

.pb-3 {
  padding-bottom: 0.75rem;
}

.space-x-1 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.25rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* 尺寸工具类 */
.h-12 {
  height: 3rem;
}

.h-48 {
  height: 12rem;
}

.h-1 {
  height: 0.25rem;
}

.w-16 {
  width: 4rem;
}

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.h-\[300px\] {
  height: 300px;
}

.h-\[400px\] {
  height: 400px;
}

/* 背景和边框 */
.bg-white {
  background-color: white;
}

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

.bg-gray-800 {
  background-color: #1f2937;
}

.bg-gray-700 {
  background-color: #374151;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-primary\/10 {
  background-color: rgba(0, 128, 0, 0.1);
}

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

.from-black\/40 {
  --tw-gradient-from: rgba(0, 0, 0, 0.4);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

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

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

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

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

.rounded {
  border-radius: 0.25rem;
}

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

/* 字体大小和颜色 */
.text-lg {
  font-size: 1.125rem;
}

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

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

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

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

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

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

.text-dark {
  color: var(--color-dark);
}

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

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

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

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-white {
  color: white;
}

.uppercase {
  text-transform: uppercase;
}

/* 定位 */
.top-0 {
  top: 0px;
}

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

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

.left-0 {
  left: 0px;
}

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

/* 过渡和变换 */
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

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

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

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:text-primary\/80:hover {
  color: rgba(0, 128, 0, 0.8);
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* 自定义工具类 */
.content-auto {
  content-visibility: auto;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 导航项样式 - 与原始设计一致 */
.nav-item {
  position: relative;
  padding: 0.75rem 1rem;
  transition: color 0.3s ease;
  font-size: 0.875rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-dark);
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0.125rem;
  background-color: var(--color-primary);
  left: 0;
  bottom: -0.25rem;
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item:hover {
  color: var(--color-primary);
}

/* 首页导航项特殊样式 */
.nav-item.text-primary {
  color: var(--color-primary);
}

.nav-item.text-primary::after {
  width: 100%;
}



.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式网格和布局 */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .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\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }
  .md\:h-\[400px\] {
    height: 400px;
  }
  .hidden.md\:flex {
    display: flex;
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:w-1\/4 {
    width: 25%;
  }
  .md\:w-3\/4 {
    width: 75%;
  }
  .md\:sticky {
    position: sticky;
  }
  .md\:top-24 {
    top: 6rem;
  }
  .md\:h-fit {
    height: fit-content;
  }
  .md\:text-3xl {
    font-size: 1.875rem;
  }
  .md\:text-4xl {
    font-size: 2.25rem;
  }
}

/* 对象适配 */
.object-cover {
  object-fit: cover;
}

/* 不透明度 */
.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

/* 可见性 */
.invisible {
  visibility: hidden;
}

.visible {
  visibility: visible;
}

/* 滚动行为 */
.scroll-smooth {
  scroll-behavior: smooth;
}

/* 光标 */
.cursor-pointer {
  cursor: pointer;
}

/* 选择 */
.select-none {
  user-select: none;
}

/* 指针事件 */
.pointer-events-none {
  pointer-events: none;
}

/* 间距 */
.p-4 {
  padding: 1rem;
}
.p-3 {
  padding: 0.75rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-2 {
  gap: 0.5rem;
}

/* 圆角 */
.rounded {
  border-radius: 0.375rem;
}
.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);
}

/* 过渡效果 */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

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

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

/* 显示/隐藏 */
.hidden {
  display: none;
}

.block {
  display: block;
}

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

/* 文本处理 */
.text-center {
  text-align: center;
}

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

.uppercase {
  text-transform: uppercase;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.bottom-6 {
  bottom: 1.5rem;
}

.right-6 {
  right: 1.5rem;
}

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

/* 尺寸 */
.w-full {
  width: 100%;
}

.w-16 {
  width: 4rem;
}

.w-12 {
  width: 3rem;
}

.h-1 {
  height: 0.25rem;
}

.h-full {
  height: 100%;
}

.h-12 {
  height: 3rem;
}

.h-48 {
  height: 12rem;
}

.w-auto {
  width: auto;
}

.h-auto {
  height: auto;
}

/* 交互 */
.hover\:text-primary\/80:hover {
  color: rgba(0, 128, 0, 0.8);
}

.hover\:text-gray-300:hover {
  color: #d1d5db;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

.hover\:bg-primary\/90:hover {
  background-color: rgba(0, 128, 0, 0.9);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* 背景 */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary\/10 {
  background-color: rgba(0, 128, 0, 0.1);
}

/* 空间分配 */
.space-x-1 > * + * {
  margin-left: 0.25rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* 溢出 */
.overflow-hidden {
  overflow: hidden;
}

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

.from-black\/40 {
  --tw-gradient-from: rgba(0, 0, 0, 0.4);
  --tw-gradient-to: transparent;
}

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

/* 图片处理 */
.object-cover {
  object-fit: cover;
}

/* 辅助功能 */
.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.invisible {
  visibility: hidden;
}

.visible {
  visibility: visible;
}

/* 输入元素 */
.focus\:outline-none:focus {
  outline: none;
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: rgba(0, 128, 0, 0.9);
}

/* 响应式字体大小 */
@media (max-width: 767px) {
  .text-lg {
    font-size: 1rem;
  }
  .text-xl {
    font-size: 1.125rem;
  }
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* 辅助网格 */
.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* 辅助尺寸 */
.h-10 {
  height: 2.5rem;
}

.w-10 {
  height: 2.5rem;
  width: 2.5rem;
}

/* 辅助布局 */
.flex-col {
  flex-direction: column;
}

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

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

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

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

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

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

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

/* 打印样式 */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}