/* ============================================
   首页专用 CSS - 替换 Tailwind CDN
   颜色主题: primary=#328F36, secondary=#36D399, accent=#FF9F43
   ============================================ */

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

/* PC端隐藏移动端Banner */
#mobileBanner {
  display: none !important;
}

/* --- 登录状态：现在由 JavaScript 完全控制显示/隐藏 --- */
/* 移除了 #loginStatus { display: none !important; } 因为 JS 会控制 */
/* 移除了 #loginStatus.show { display: flex !important; } 因为 JS 直接设置 style.display */

/* --- 颜色变量 --- */
:root {
  --color-primary: #328F36;
  --color-primary-dark: #2E7D32;
  --color-primary-light: #E8F5E9;
  --color-secondary: #36D399;
  --color-accent: #FF9F43;
  --color-neutral: #F8F9FA;
  --color-neutral-dark: #343A40;
}

/* --- flexbox --- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }

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

/* --- gap --- */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* --- 间距: padding --- */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }

/* --- margin auto（水平居中） --- */
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- 间距: margin --- */
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* --- 尺寸 --- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.h-64 { height: 16rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-48 { width: 12rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-full { max-width: 100%; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-h-\[calc\(90vh-120px\)\] { max-height: calc(90vh - 120px); }

/* --- 文字 --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.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-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-sans { font-family: 'Inter', 'system-ui', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.whitespace-nowrap { white-space: nowrap; }
.whitespace-normal { white-space: normal; }

/* --- 背景色 --- */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-light { background-color: var(--color-primary-light); }
.bg-primary-dark { background-color: var(--color-primary-dark); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.bg-neutral { background-color: var(--color-neutral); }
.bg-neutral-dark { background-color: var(--color-neutral-dark); }
.bg-red-500 { background-color: #ef4444; }
.bg-red-100 { background-color: #fee2e2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-black { background-color: #000; }

/* --- 文字色 --- */
.text-primary { color: var(--color-primary) !important; }
.text-primary-dark { color: var(--color-primary-dark) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-neutral-dark { color: var(--color-neutral-dark); }
.text-white { color: #ffffff !important; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #16a34a; }
.text-green-100 { color: #dcfce7; }
.text-purple-600 { color: #9333ea; }
.text-blue-800 { color: #1e40af; }
.text-blue-600 { color: #2563eb; }

/* --- 边框色 --- */
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-primary { border-color: var(--color-primary); }
.border-primary\/10 { border-color: rgba(50, 143, 54, 0.1); }
.border-secondary\/10 { border-color: rgba(54, 211, 153, 0.1); }
.border-accent\/10 { border-color: rgba(255, 159, 67, 0.1); }
.border-purple-100 { border-color: #f3e8ff; }
.border-black { border-color: #000; }
.border-t { border-top-width: 1px; border-top-style: solid; }

/* --- 边框 --- */
.rounded { border-radius: 0.25rem; }
.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; }
.rounded-t-md { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }
.rounded-b-md { border-bottom-left-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
.rounded-l-md { border-top-left-radius: 0.375rem; border-bottom-left-radius: 0.375rem; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }

/* --- 阴影 --- */
.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); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-none { box-shadow: none; }

/* --- 定位 --- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-10px { top: 10px; }
.right-16 { right: 4rem; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.bottom-20px { bottom: 20px; }
.bottom-6 { bottom: 1.5rem; }
.left-0 { left: 0; }
.left-55pct { left: 55%; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* --- 尺寸(宽高简写) --- */
.w-44px { width: 44px; }
.h-44px { height: 44px; }

/* --- display --- */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

/* md:hidden 基础样式（默认显示，PC端媒体查询会覆盖为隐藏） */
.md\:hidden { display: block; }

/* 导航栏容器 - 基础设置 */
header#navbar .container,
#navbar > .container,
#navbar .container.mx-auto {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 防止页面横向滚动 */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* --- 汉堡按钮默认样式（基础） --- */
#mobileMenuBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #328F36 !important;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  outline: none;
  flex-shrink: 0;
  margin-left: 12px;
}

/* 汉堡按钮图标 */
#mobileMenuBtn i {
  color: #ffffff !important;
  font-size: 20px;
}

/* 移动端隐藏汉堡按钮（由媒体查询控制） */
@media (min-width: 768px) {
  #mobileMenuBtn {
    display: none !important;
  }
}

/* 导航栏容器 - 允许溢出显示 */
#navbar,
#navbar .container {
  overflow: visible !important;
}

/* --- overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* --- transition --- */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-transform { transition: transform 0.3s ease; }

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

/* --- opacity --- */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

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

/* --- border-width --- */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }

/* --- 其他 --- */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.divide-y > * + * { border-top-width: 1px; border-top-color: #e5e7eb; }
.list-disc { list-style-type: disc; }
.pl-5 { padding-left: 1.25rem; }

/* --- scroll-mt 锚点偏移 --- */
.scroll-mt-24 { scroll-margin-top: 6rem; }

/* ============================================
   媒体查询 - 响应式断点
   ============================================ */

/* md: 768px */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block; }
  .md\:inline-flex { display: inline-flex; }
  .md\:inline-block { display: inline-block; }
  .md\:w-1\/4 { width: 25%; }
  .md\:w-1\/2 { width: 50%; }
  .md\:w-2\/5 { width: 40%; }
  .md\:w-3\/5 { width: 60%; }
  .md\:w-3\/4 { width: 75%; }
  .md\:w-auto { width: auto; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-left { text-align: left; }
  .md\:text-center { text-align: center; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:mt-0 { margin-top: 0; }
  .md\:mt-4 { margin-top: 1rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:flex-row { flex-direction: row; }
  .md\:justify-start { justify-content: flex-start; }
  .md\:items-center { align-items: center; }
}

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

/* max-width: 767px (移动端) */
@media (max-width: 767px) {
  .max-\[767px\]\:flex-col { flex-direction: column; }
  
  /* 移动端：整体导航栏不裁剪 */
  #navbar {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  /* 移动端：容器宽度适应视口 */
  #navbar .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  
  /* 移动端：Logo 区域缩小 */
  #navbar .container > div:first-child {
    flex-shrink: 1;
    min-width: 0;
  }
  #navbar .container > div:first-child img {
    width: 32px !important;
    height: 32px !important;
  }
  #navbar .container > div:first-child h1 {
    font-size: 14px !important;
    white-space: nowrap;
  }
  #navbar .container > div:first-child p {
    font-size: 10px !important;
  }
  
  /* 移动端：隐藏 PC 端桌面导航（仅隐藏 .container 直子 nav，不误伤移动菜单内的 nav） */
  #navbar > .container > nav {
    display: none !important;
  }
  
  /* 移动端：隐藏 PC 端登录按钮 */
  #loginButtons {
    display: none !important;
  }
  
  /* 移动端：显示汉堡按钮（最高优先级） */
  #mobileMenuBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #328F36 !important;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    outline: none;
    flex-shrink: 0;
  }
  
  /* 汉堡按钮图标颜色 */
  #mobileMenuBtn i {
    color: #ffffff !important;
    font-size: 18px;
  }
  
  /* 移动端：显示移动端菜单 */
  #mobileMenu {
    display: none;
  }
  #mobileMenu:not(.hidden) {
    display: block;
  }
  
  /* 移动端：隐藏 PC 端登录状态 */
  #loginStatus {
    display: none !important;
  }
  
  /* 移动端：导航栏不裁剪 */
  #navbar {
    overflow: visible !important;
  }
  
  /* ========== 移动端菜单美化 ========== */
  
  /* 移动端菜单整体样式 */
  #mobileMenu {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* 移动端菜单项 */
  #mobileMenu nav a,
  #mobileMenu nav > a {
    display: block;
    padding: 12px 16px !important;
    color: #374151 !important;
    font-size: 15px !important;
    margin: 2px 0 !important;
    transition: all 0.2s ease !important;
  }
  #mobileMenu nav a:hover {
    color: #328F36 !important;
  }
  
  /* 二级菜单容器 */
  .mobile-submenu {
    margin: 0 !important;
  }
  
  /* 二级菜单触发按钮 - 无背景无边框，像普通链接一样 */
  .mobile-submenu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    width: 100%;
    padding: 12px 16px !important;
    color: #374151 !important;
    font-size: 15px !important;
    font-weight: normal !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
  }
  .mobile-submenu-toggle:hover {
    color: #328F36 !important;
  }
  
  /* 二级菜单展开图标 */
  .mobile-submenu-toggle .fa-chevron-down {
    transition: transform 0.3s ease !important;
    color: #9ca3af !important;
    font-size: 12px !important;
  }
  .mobile-submenu.open .mobile-submenu-toggle .fa-chevron-down {
    transform: rotate(180deg) !important;
  }
  
  /* 二级菜单内容 */
  .mobile-submenu-content {
    padding-left: 12px !important;
  }
  
  /* 二级菜单项 */
  .mobile-submenu-content a {
    display: block;
    padding: 10px 16px !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
  }
  .mobile-submenu-content a:hover {
    background: #f0fdf4 !important;
    color: #328F36 !important;
    padding-left: 20px !important;
  }
  
  /* 移动端登录区域 */
  #mobileLoginStatus {
    background: #f0fdf4 !important;
    border: 1px solid #dcfce7 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-top: 12px !important;
  }
  #mobileLoginButtons {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e5e7eb !important;
    overflow: hidden !important;
  }
  #mobileLoginButtons a {
    font-size: 15px !important;
    padding: 12px 16px !important;
    background-color: #1a73e8 !important;
    color: #ffffff !important;
    border: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #mobileLoginButtons a:hover {
    background-color: #1557b0 !important;
  }

  /* 移动端：显示简化Banner，隐藏原Banner */
  #mobileBanner {
    display: block !important;
  }
  #home {
    display: none !important;
  }
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-in-out; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ============================================
   页面滚动偏移（导航栏固定定位）
   ============================================ */
html { scroll-behavior: smooth; }

/* ============================================
   card-hover 效果
   ============================================ */
.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), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   补充遗漏的实用类
   ============================================ */

/* sr-only（屏幕阅读器专用） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* container（容器居中） */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 绝对/固定定位 */
.absolute { position: absolute; }
.fixed { position: fixed; }

/* 定位偏移 */
.top-10px { top: 10px; }
.bottom-20px { bottom: 20px; }
.left-55pct { left: 55%; }

/* w-44px（箭头按钮） */
.w-44px { width: 44px; }
.h-44px { height: 44px; }

/* w-48 */
.w-48 { width: 12rem; }

/* max-w-[clamp] / text-[clamp] */
.text-\[clamp\(1\.5rem\,3vw\,2\.2rem\)\] {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.max-w-\[calc\(90vh-120px\)\] { max-height: calc(90vh - 120px); }

/* transform（reset） */
.transform { transform: translateX(0); }

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

/* z-0 */
.z-0 { z-index: 0; }

/* 渐变色 */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--color-primary), var(--color-primary-dark)); }
.from-primary { --tw-gradient-from: var(--color-primary); --tw-gradient-to: var(--color-primary); }
.to-primary-dark { --tw-gradient-to: var(--color-primary-dark); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }

/* 透明背景色 */
.bg-black { background-color: #000; }
.bg-opacity-50 { --tw-bg-opacity: 0.5; }

/* 其他偏移 */
.right-1 { right: 0.25rem; }
.top-1 { top: 0.25rem; }
.top-50pct { top: 50%; }

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

/* divide */
.divide-gray-200 > * + * { border-top: 1px solid #e5e7eb; }

/* border 方向 */
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-gray-700 { border-color: #374151; }
.border-2 { border-width: 2px; }

/* leading-5 */
.leading-5 { line-height: 1.25rem; }

/* pl-6 */
.pl-6 { padding-left: 1.5rem; }

/* 额外颜色 */
.bg-accent-light { background-color: rgba(255, 159, 67, 0.15); }
.bg-secondary-light { background-color: rgba(54, 211, 153, 0.15); }

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

/* overflow-visible */
.overflow-visible { overflow: visible; }

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

/* ============================================
   全局链接样式 - 去掉下划线
   ============================================ */
a { text-decoration: none !important; }

/* ============================================
   Bootstrap 链接样式覆盖
   ============================================ */
/* 绿色主色调（覆盖 Bootstrap 默认蓝色链接） */
a.text-primary,
.text-primary a,
button.text-primary {
  color: #328F36 !important;
}
a.text-primary:hover,
.text-primary a:hover,
button.text-primary:hover {
  color: #2E7D32 !important;
}

/* 边框主色 */
a.border-primary,
.border-primary {
  border-color: #328F36 !important;
}

/* 绿色按钮 hover 效果 */
a.hover\:bg-primary:hover,
button.hover\:bg-primary:hover {
  background-color: #328F36 !important;
}

/* ============================================
   政策卡片标题链接 - 覆盖 Bootstrap 紫色
   ============================================ */
.policy-card h3 a,
#policyList h3 a,
.policy-card h3 a:visited,
#policyList h3 a:visited {
  color: #1f2937 !important;
  text-decoration: none !important;
}
.policy-card h3 a:hover,
#policyList h3 a:hover {
  color: #328F36 !important;
}

/* 人才资讯卡片标题链接 */
#talent-news h3 a,
#talent-news h3 a:visited {
  color: #1f2937 !important;
  text-decoration: none !important;
}
#talent-news h3 a:hover {
  color: #328F36 !important;
}

/* ============================================
   按钮 hover 文字颜色
   ============================================ */
/* 边框按钮 hover 时文字和图标都变白 */
button.rounded-full.border-2.border-primary:hover,
a.rounded-full.border-2.border-primary:hover,
button.rounded-full.border-2.border-primary:hover i,
a.rounded-full.border-2.border-primary:hover i {
  color: #fff !important;
}

/* ============================================
   留言表单 grid 布局修复
   ============================================ */
#liuyanForm .grid > div {
  display: block !important;
  width: 100% !important;
  flex: unset !important;
}

/* ============================================
   登录状态显示修复
   ============================================ */
/* 注意：现在登录状态完全由 JavaScript 控制，不再使用 CSS 强制显示/隐藏 */
/* JS 会设置 style.display = 'none' (未登录) 或 'flex' (已登录) */

/* 登录状态子元素 - 允许 JS 通过 .hidden class 控制显示 */
#loginStatus .admin-link.hidden,
#loginStatus .admin-separator.hidden,
#loginStatus .admin-logout.hidden,
#loginStatus .user-logout.hidden {
  display: none !important;
}
#loginStatus .admin-link:not(.hidden),
#loginStatus .admin-separator:not(.hidden),
#loginStatus .admin-logout:not(.hidden),
#loginStatus .user-logout:not(.hidden) {
  display: inline-block !important;
}

/* 移动端登录状态 */
#mobileLoginStatus.hidden {
  display: none !important;
}

#liuyanForm input[type="text"],
#liuyanForm input[type="tel"],
#liuyanForm select,
#liuyanForm textarea {
  display: block !important;
  width: 100% !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 14px;
  color: #374151;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
#liuyanForm input[type="text"]:hover,
#liuyanForm input[type="tel"]:hover,
#liuyanForm select:hover,
#liuyanForm textarea:hover {
  border-color: #328F36 !important;
  background-color: #f9fdf9;
}
#liuyanForm input[type="text"]:focus,
#liuyanForm input[type="tel"]:focus,
#liuyanForm select:focus,
#liuyanForm textarea:focus {
  outline: none !important;
  border-color: #328F36 !important;
  box-shadow: 0 0 0 3px rgba(50,143,54,0.15) !important;
  background-color: #fff;
}
#liuyanForm textarea {
  resize: vertical;
  min-height: 100px;
}
#liuyanForm select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px !important;
}

/* ============================================
   筛选标签样式优化
   ============================================ */
/* 未选中标签默认边框 */
.policy-tab:not(.active),
.service-tab:not(.active),
.notice-tab:not(.active) {
  border: 1px solid #e5e7eb;
}

/* 未选中标签 hover 效果 */
.policy-tab:not(.active):hover,
.service-tab:not(.active):hover,
.notice-tab:not(.active):hover {
  border-color: #328F36 !important;
  color: #328F36 !important;
  background-color: #E8F5E9;
}

/* float 相关 */
.float-btn, .float-close, .float-desc, .float-inner, .float-keywords,
.float-kw, .float-mobile-icon, .float-mobile-only, .float-mobile-sub,
.float-mobile-text, .float-tag, .float-title {
  /* 浮窗组件样式，预留 */
}

