/*!
 * WindiCSS 兼容工具类库 v1.0.0
 * 一个完整的工具类CSS框架，兼容WindiCSS大部分属性
 * 支持响应式布局、现代CSS特性
 * 
 * 组件：
 * - 基础样式重置
 * - 颜色系统
 * - 间距系统 
 * - 布局和响应式系统
 * - 排版系统
 * - 高级工具类（阴影、边框、变换、过渡、动画）
 * 
 * 作者：AI Assistant
 * 许可证：MIT
 */

/* 按钮组件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  outline: none;
}

.mask {
  background: -webkit-linear-gradient(top,
      transparent,
      rgba(0, 0, 0, 0.8));
  background: -moz-linear-gradient(top,
      transparent,
      rgba(0, 0, 0, 0.8));
  background: -o-linear-gradient(top,
      transparent,
      rgba(0, 0, 0, 0.8));
  background: linear-gradient(to bottom,
      transparent,
      rgba(0, 0, 0, 0.8));
}

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

/* 针对苹果设备的额外优化 */
@supports (-webkit-overflow-scrolling: touch) {
  .business-wrap {
    -webkit-overflow-scrolling: touch;
    flex-wrap: wrap;
  }
}

.business-item {
  flex-shrink: 0;
  border-bottom: 2px solid #ffffff;
  transition: border-bottom 0.3s ease;
  padding: 0 15px;
}

.business-item:hover {
  border-bottom: 2px solid #dc2626;
}

.business-item:hover .business-text {
  color: #dc2626 !important;
  transition: all 0.5s ease;
}

.business-active {
  border-bottom: 2px solid #dc2626;
}

.business-active .business-image {
  filter:
    grayscale(100%) sepia(100%) hue-rotate(-50deg) saturate(800%) brightness(60%) contrast(120%);
}

.business-image-wrap {
  border: 1px solid transparent;
  margin-bottom: 6px;
}

.business-active .business-image-wrap {
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow:
    0 2px 8px rgba(220, 38, 38, 0.15),
    0 8px 24px rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.1);
}

.business-active .business-text {
  color: #dc2626 !important;
}

.scale:hover {
  transform: scale(1.05);
}

/* 如果希望有平滑的过渡效果 */
.scale {
  transition: transform 0.3s ease;
}

.article-text {
  color: #333333;
  transition: color 0.3s ease;
}

.article-text:hover {
  color: #dc2626;
}


.btn-slide {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

.btn-slide::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: #ef4444;
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-slide:hover::before {
  width: 100%;
}

.more {
  display: inline-flex;
  align-items: center;
  color: #999;
  font-size: 14px;
}

.more-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  text-align: center;
  border-radius: 100%;
  border: 1px solid #999;
  color: #999;
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  align-items: center;
  margin-right: 4px;
}

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

.btn-primary {
  background-color: #3b82f6;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-primary:focus {
  --tw-ring-color: rgb(59 130 246 / 0.5);
}

.btn-secondary {
  background-color: #6b7280;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-secondary:focus {
  --tw-ring-color: rgb(107 114 128 / 0.5);
}

/* 友情链接滚动样式 */
.link-carousel {
  overflow: hidden;
  position: relative;
  height: 80px;
  width: 100%;
}

.link-track {
  display: flex;
  width: max-content;
  /* 移除CSS动画，改用JavaScript实现更精确的控制 */
}

.link-item {
  flex-shrink: 0;
  width: 220px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: content-box;
}

.link-item img {
  max-width: 100%;
  max-height: 100%;
  transition: all 0.3s ease;
}

.link-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 轮播图样式 */
.carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 816px;
}

@media (max-width: 768px) {
  .carousel-section {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .carousel-section {
    height: 200px;
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: #fff;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

/* 图片渐入动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-fade-in {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

/* 卡片组件 */
.card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* 导航组件 */
.nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  line-height: 100px;
}

.nav-item {
  display: flex;
  height: 100%;
  position: relative;
  display: inline-block;
}

.nav-item .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  height: 40px;
  line-height: 40px;
  color: #666666;
  font-size: 14px;
  text-align: center;
}

.dropdown-menu a:hover {
  color: #A10006;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-link {
  display: block;
  display: flex;
  height: 100%;
  width: 120px;
  color: #333333;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.nav-link:hover {
  background-color: #A10006;
  color: #FFFFFF;
}

.nav-link.active {
  background-color: #A10006;
  color: #FFFFFF;
}

.info-nav-warp {
  display: inline-flex;
  align-items: center;
  overflow-x: auto;
}

.info-nav {
  background-color: transparent;
  color: #FFFFFF;
  transition: all 0.5s ease;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .info-nav {
    height: 74px;
    line-height: 74px;
    padding: 0 54px;
  }
}

.info-nav.active {
  background-color: #FFFFFF;
  color: #A10006;
}

.info-nav:hover {
  background-color: #FFFFFF;
  color: #A10006;
}

.item-box {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow:
    0 2px 4px rgba(220, 38, 38, 0.15),
    0 4px 8px rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.1);
}

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

.search-input {
  border-bottom: 1px solid #ffffff;
  font-size: 13px;
}

.search-input::placeholder {
  color: transparent;
  transition: all 0.3s ease;
}

.search-warp:hover .search-input::placeholder {
  color: #999;
}

.search-warp:hover .search-input {
  border-bottom: 1px solid #ccc;
}

/* 表单组件 */
.form-input {
  appearance: none;
  background-color: #ffffff;
  border-color: #d1d5db;
  border-width: 1px;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #111827;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --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(1px + 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);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* 工具类补充 */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

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

/* 文本省略 */
.text-ellipsis {
  text-overflow: ellipsis;
}

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

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

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

/* 响应式间距工具类补充 */
@media (min-width: 640px) {
  .sm\:p-0 {
    padding: 0px !important;
  }

  .sm\:p-1 {
    padding: 0.25rem !important;
  }

  .sm\:p-2 {
    padding: 0.5rem !important;
  }

  .sm\:p-3 {
    padding: 0.75rem !important;
  }

  .sm\:p-4 {
    padding: 1rem !important;
  }

  .sm\:p-5 {
    padding: 1.25rem !important;
  }

  .sm\:p-6 {
    padding: 1.5rem !important;
  }

  .sm\:p-8 {
    padding: 2rem !important;
  }

  .sm\:p-10 {
    padding: 2.5rem !important;
  }

  .sm\:p-12 {
    padding: 3rem !important;
  }

  .sm\:m-0 {
    margin: 0px !important;
  }

  .sm\:m-1 {
    margin: 0.25rem !important;
  }

  .sm\:m-2 {
    margin: 0.5rem !important;
  }

  .sm\:m-3 {
    margin: 0.75rem !important;
  }

  .sm\:m-4 {
    margin: 1rem !important;
  }

  .sm\:m-5 {
    margin: 1.25rem !important;
  }

  .sm\:m-6 {
    margin: 1.5rem !important;
  }

  .sm\:m-8 {
    margin: 2rem !important;
  }

  .sm\:m-10 {
    margin: 2.5rem !important;
  }

  .sm\:m-12 {
    margin: 3rem !important;
  }

  .sm\:mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 768px) {
  .md\:p-0 {
    padding: 0px !important;
  }

  .md\:p-1 {
    padding: 0.25rem !important;
  }

  .md\:p-2 {
    padding: 0.5rem !important;
  }

  .md\:p-3 {
    padding: 0.75rem !important;
  }

  .md\:p-4 {
    padding: 1rem !important;
  }

  .md\:p-5 {
    padding: 1.25rem !important;
  }

  .md\:p-6 {
    padding: 1.5rem !important;
  }

  .md\:p-8 {
    padding: 2rem !important;
  }

  .md\:p-10 {
    padding: 2.5rem !important;
  }

  .md\:p-12 {
    padding: 3rem !important;
  }

  .md\:m-0 {
    margin: 0px !important;
  }

  .md\:m-1 {
    margin: 0.25rem !important;
  }

  .md\:m-2 {
    margin: 0.5rem !important;
  }

  .md\:m-3 {
    margin: 0.75rem !important;
  }

  .md\:m-4 {
    margin: 1rem !important;
  }

  .md\:m-5 {
    margin: 1.25rem !important;
  }

  .md\:m-6 {
    margin: 1.5rem !important;
  }

  .md\:m-8 {
    margin: 2rem !important;
  }

  .md\:m-10 {
    margin: 2.5rem !important;
  }

  .md\:m-12 {
    margin: 3rem !important;
  }

  .md\:mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1024px) {
  .lg\:p-0 {
    padding: 0px !important;
  }

  .lg\:p-1 {
    padding: 0.25rem !important;
  }

  .lg\:p-2 {
    padding: 0.5rem !important;
  }

  .lg\:p-3 {
    padding: 0.75rem !important;
  }

  .lg\:p-4 {
    padding: 1rem !important;
  }

  .lg\:p-5 {
    padding: 1.25rem !important;
  }

  .lg\:p-6 {
    padding: 1.5rem !important;
  }

  .lg\:p-8 {
    padding: 2rem !important;
  }

  .lg\:p-10 {
    padding: 2.5rem !important;
  }

  .lg\:p-12 {
    padding: 3rem !important;
  }

  .lg\:m-0 {
    margin: 0px !important;
  }

  .lg\:m-1 {
    margin: 0.25rem !important;
  }

  .lg\:m-2 {
    margin: 0.5rem !important;
  }

  .lg\:m-3 {
    margin: 0.75rem !important;
  }

  .lg\:m-4 {
    margin: 1rem !important;
  }

  .lg\:m-5 {
    margin: 1.25rem !important;
  }

  .lg\:m-6 {
    margin: 1.5rem !important;
  }

  .lg\:m-8 {
    margin: 2rem !important;
  }

  .lg\:m-10 {
    margin: 2.5rem !important;
  }

  .lg\:m-12 {
    margin: 3rem !important;
  }

  .lg\:mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1280px) {
  .xl\:p-0 {
    padding: 0px !important;
  }

  .xl\:p-1 {
    padding: 0.25rem !important;
  }

  .xl\:p-2 {
    padding: 0.5rem !important;
  }

  .xl\:p-3 {
    padding: 0.75rem !important;
  }

  .xl\:p-4 {
    padding: 1rem !important;
  }

  .xl\:p-5 {
    padding: 1.25rem !important;
  }

  .xl\:p-6 {
    padding: 1.5rem !important;
  }

  .xl\:p-8 {
    padding: 2rem !important;
  }

  .xl\:p-10 {
    padding: 2.5rem !important;
  }

  .xl\:p-12 {
    padding: 3rem !important;
  }

  .xl\:m-0 {
    margin: 0px !important;
  }

  .xl\:m-1 {
    margin: 0.25rem !important;
  }

  .xl\:m-2 {
    margin: 0.5rem !important;
  }

  .xl\:m-3 {
    margin: 0.75rem !important;
  }

  .xl\:m-4 {
    margin: 1rem !important;
  }

  .xl\:m-5 {
    margin: 1.25rem !important;
  }

  .xl\:m-6 {
    margin: 1.5rem !important;
  }

  .xl\:m-8 {
    margin: 2rem !important;
  }

  .xl\:m-10 {
    margin: 2.5rem !important;
  }

  .xl\:m-12 {
    margin: 3rem !important;
  }

  .xl\:mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 打印样式 */
@media print {
  .print\:hidden {
    display: none !important;
  }
}

.pagination { 
  display: flex; 
  justify-content: center; 
  align-items: center;
  margin-top: 2rem; 
  gap: 0.25rem;
}

.pagination a,
.pagination span { 
  padding: 0.5rem 1rem; 
  background: #FFF; 
  color: #000; 
  text-decoration: none; 
  border: #999 solid 1px; 
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #f5f5f5;
  border-color: #666;
}

.pagination a.active { 
  background: #A10006; 
  color: #FFF; 
  font-weight: bold; 
  border: #A10006 solid 1px;
}

.pagination-ellipsis {
  padding: 0.5rem 1rem;
  color: #666;
  border: none !important;
  background: transparent !important;
  cursor: default;
}

.pagination-prev,
.pagination-next {
  padding: 0.5rem 1rem;
  background: #FFF;
  color: #A10006;
  border: #A10006 solid 1px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
  background: #A10006;
  color: #FFF;
}

.pagination-info {
  padding: 0.5rem 1rem;
  color: #666;
  border: none !important;
  background: transparent !important;
  margin-left: 1rem;
}

.cont { overflow: hidden;}
.cont img { max-width: 100%; height: auto;}