/* 华然官网 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Sans SC", "HarmonyOS Sans", "HarmonyOS Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }
ul, ol { list-style: none; }

/* ========== 布局工具类 ========== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.grid { display: grid; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }

/* ========== Grid ========== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.gap-0 { gap: 0; }
.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-14 { gap: 10%; }
.gap-16 { gap: 64px; }

.gap-x-8 { column-gap: 32px; }
.gap-y-2\.5 { row-gap: 10px; }

/* ========== 间距 ========== */
.p-1 { padding: 4px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-10 { padding: 40px; }
.p-16 { padding: 64px; }

.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-10 { padding-left: 40px; padding-right: 40px; }

.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-3\.5 { padding-top: 14px; padding-bottom: 14px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-7 { padding-top: 28px; padding-bottom: 28px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-14 { padding-top: 56px; padding-bottom: 56px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }

.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pt-5 { padding-top: 20px; }
.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.pt-10 { padding-top: 40px; }
.pt-14 { padding-top: 56px; }
.pt-16 { padding-top: 64px; }
.pt-20 { padding-top: 80px; }

.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: 8px; }
.pb-6 { padding-bottom: 24px; }
.pb-8 { padding-bottom: 32px; }
.pb-10 { padding-bottom: 40px; }
.pb-14 { 
  padding-bottom: 56px; 
  border-bottom: 1px solid #D0D0D0;
}
.pb-16 { padding-bottom: 64px; }
.pb-20 { padding-bottom: 80px; }

.pl-2 { padding-left: 8px; }
.pl-4 { padding-left: 16px; }

.pr-4 { padding-right: 16px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-14 { margin-bottom: 56px; }

.mr-6 { margin-right: 24px; }
.mr-4 { margin-right: 16px; }

.mx-2 { margin-left: 8px; margin-right: 8px; }
.mx-6 { margin-left: 24px; margin-right: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.my-6 { margin-top: 24px; margin-bottom: 24px; }

.ml-1 { margin-left: 4px; }

/* ========== 尺寸 ========== */
.w-full { width: 100%; }
.w-1 { width: 4px; }
.w-4 { width: 16px; }
.w-8 { width: 32px; }
.w-10 { width: 40px; }
.w-11 { width: 44px; }
.w-12 { width: 48px; }
.w-14 { width: 56px; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-auto { width: auto; }

.h-px { height: 1px; }
.h-1 { height: 4px; }
.h-2 { height: 8px; }
.h-4 { height: 16px; }
.h-8 { height: 32px; }
.h-9 { height: 36px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-14 { height: 56px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-48 { height: 192px; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-\[44px\] { height: 44px; }
.h-\[48px\] { height: 48px; }
.h-\[56px\] { height: 56px; }
.h-\[120px\] { height: 120px; }
.h-\[160px\] { height: 160px; }
.h-\[180px\] { height: 180px; }
.h-\[260px\] { height: 260px; }

.min-h-\[260px\] { min-height: 260px; }
.min-h-screen { min-height: 100vh; }

.max-w-sm { max-width: 384px; }
.max-w-md { max-width: 448px; }
.max-w-lg { max-width: 512px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-\[800px\] { max-width: 800px; }
.max-w-\[900px\] { max-width: 900px; }
.max-w-\[1000px\] { max-width: 1000px; }
.max-w-\[1200px\] { max-width: 1200px; }
.max-w-\[1224px\] { max-width: 1224px; }
.max-w-\[1440px\] { max-width: 1440px; }

/* ========== 文字 ========== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-\[14px\] { font-size: 14px; line-height: 33px;}
.text-\[15px\] { font-size: 15px; }
.text-\[16px\] { font-size: 16px; }
.text-\[17px\] { font-size: 17px; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }
.text-\[24px\] { font-size: 24px; }
.text-\[28px\] { font-size: 28px; }
.text-\[32px\] { font-size: 32px; }
.text-\[34px\] { font-size: 34px; }
.text-\[36px\] { font-size: 36px; }
.text-\[44px\] { font-size: 44px; }
.text-\[48px\] { font-size: 48px; }
.text-\[52px\] { font-size: 52px; }
.text-\[56px\] { font-size: 56px; }
.text-\[30px\] { font-size: 2.6rem; }

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

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }
.leading-\[1\.5\] { line-height: 1.5; }
.leading-\[1\.7\] { line-height: 1.7; }
.leading-\[1\.8\] { line-height: 1.8; }
.leading-\[1\.9\] { line-height: 1.9; }

.tracking-\[-0\.02em\] { letter-spacing: -0.02em; }
.tracking-\[-0\.03em\] { letter-spacing: -0.03em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-wider { letter-spacing: 0.05em; }

.uppercase { text-transform: uppercase; }

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

/* ========== 颜色 ========== */
.text-white { color: #fff; }
.text-black { color: #333333; }
.text-\[\#111\] { color: #333333; }
.text-\[\#333\] { color: #333; }
.text-\[\#444\] { color: #444; }
.text-\[\#555\] { color: #555; }
.text-\[\#666\] { color: #666; }
.text-\[\#777\] { color: #777; }
.text-\[\#888\] { color: #888; }
.text-\[\#999\] { color: #999; }
.text-\[\#AAA\] { color: #aaa; }
.text-\[\#BBB\] { color: #bbb; }
.text-\[\#CCC\] { color: #ccc; }
.text-\[\#DDD\] { color: #ddd; }

.text-\[\#E02B2B\] { color: #E02B2B; }
.text-amber-400 { color: #fbbf24; }

.bg-white { background-color: #fff; }
.bg-\[\#FAFAFA\] { background-color: #FAFAFA; }
.bg-\[\#F5F5F5\] { background-color: #f1f3f5; }
.bg-\[\#F0F0F0\] { background-color: #F0F0F0; }
.bg-\[\#F8F8F8\] { background-color: #F8F8F8; }
.bg-\[\#111\] { background-color: #111; }
.bg-\[\#333\] { background-color: #333; }
.bg-\[\#444\] { background-color: #444; }
.bg-\[\#555\] { background-color: #555; }
.bg-\[\#E02B2B\] { background-color: #E02B2B; }
.bg-\[\#FFF0F0\] { background-color: #FFF0F0; }
.bg-\[\#FEFBFB\] { background-color: #FEFBFB; }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-\[\#E02B2B\] { --tw-gradient-from: #E02B2B; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(224, 43, 43, 0)); }
.to-\[\#FF6B6B\] { --tw-gradient-to: #FF6B6B; }

/* ========== 边框 ========== */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l-\[6px\] { border-left-width: 6px; }
.border-t-\[4px\] { border-top-width: 4px; }
.border-b-\[4px\] { border-bottom-width: 4px; }

.border-\[\#F0F0F0\] { border-color: #F0F0F0; }
.border-\[\#F5F5F5\] { border-color: #F5F5F5; }
.border-\[\#E0E0E0\] { border-color: #E0E0E0; }
.border-\[\#EEEEEE\] { border-color: #EEEEEE; }
.border-\[\#E5E5E5\] { border-color: #E5E5E5;
border-top: 1px solid #D0D0D0; }
.border-\[\#E02B2B\] { border-color: #E02B2B; }
.border-\[\#E02B2B\]\/20 { border-color: rgba(224, 43, 43, 0.2); }
.border-\[\#E02B2B\]\/30 { border-color: rgba(224, 43, 43, 0.3); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-t-transparent { border-top-color: transparent; }
.border-b-transparent { border-bottom-color: transparent; }
.border-l-transparent { border-left-color: transparent; }
.border-l-\[\#E02B2B\] { border-left-color: #E02B2B; }
.border-l-\[\#7C3AED\] { border-left-color: #7C3AED; }
.border-l-\[\#2563EB\] { border-left-color: #2563EB; }
.border-l-\[\#059669\] { border-left-color: #059669; }

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

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

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

/* ========== 纵横比 ========== */
.aspect-\[16\/10\] { aspect-ratio: 16/10; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }

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

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

/* ========== 行限制 ========== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 变换 ========== */
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-y-0 { transform: translateY(0); }
.translate-y-2 { transform: translateY(8px); }
.translate-y-4 { transform: translateY(16px); }
.translate-y-6 { transform: translateY(24px); }
.translate-y-8 { transform: translateY(32px); }
.rotate-180 { transform: rotate(180deg); }

/* ========== 过渡 ========== */
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-transform { transition-property: transform; }
.transition-opacity { transition-property: opacity; }

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-400 { transition-duration: 400ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }

.ease-out { transition-timing-function: ease-out; }

/* ========== 不透明度 ========== */
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }
.opacity-0 { opacity: 0; }

/* ========== 阴影 ========== */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

/* ========== 动画 ========== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ========== 导航栏 ========== */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
}

.nav-transparent { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.nav-gray { background: #F5F5F5; }
.nav-glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.08);
}

/* ========== 下拉菜单 ========== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #F0F0F0;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  min-width: 140px;
  z-index: 50;
}

.dropdown-menu a, .dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #F5F5F5;
  transition: all 0.2s;
}

.dropdown-menu a:last-child, .dropdown-menu button:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
  color: #E02B2B;
}

/* ========== 响应式 ========== */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:inline-flex { display: inline-flex; }

  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }

  .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\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }

  .md\:aspect-auto { aspect-ratio: auto; }
  .md\:h-full { height: 100%; }

  .md\:text-\[24px\] { font-size: 24px; }
  .md\:text-\[32px\] { font-size: 32px; }
  .md\:text-\[34px\] { font-size: 34px; }
  .md\:text-\[36px\] { font-size: 36px; }
  .md\:text-\[48px\] { font-size: 48px; }
  .md\:text-\[52px\] { font-size: 52px; }
  .md\:text-\[56px\] { font-size: 56px; }

  .md\:px-8 { padding-left: 32px; padding-right: 32px; }
  .md\:px-8 { padding-left: 32px; padding-right: 32px; }

  .md\:py-20 { padding-top: 80px; padding-bottom: 80px; }
  .md\:py-24 { padding-top: 96px; padding-bottom: 96px; }
  .md\:py-28 { padding-top: 112px; padding-bottom: 112px; }
  .md\:py-32 { padding-top: 128px; padding-bottom: 128px; }

  .md\:pb-28 { padding-bottom: 112px; }
  .md\:pt-28 { padding-top: 112px; }

  .md\:gap-10 { gap: 40px; }
  .md\:gap-6 { gap: 24px; }

  .md\:border-l { border-left-width: 1px; }
  .md\:border-\[\#F0F0F0\] { border-color: #F0F0F0; }

  .md\:w-8 { width: 32px; }
  .md\:h-px { height: 1px; }

  .md\:justify-items-end { justify-items: end; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:grid-cols-\[364px_1fr\] { grid-template-columns: 364px 1fr; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .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)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:w-\[40\%\] { width: 40%; }
  .lg\:w-\[50\%\] { width: 50%; }
  .lg\:gap-20 { gap: 80px; }
  .lg\:px-8 { padding-left: 32px; padding-right: 32px; }
}

/* ========== 导航Hover ========== */
.nav-link:hover { color: #E02B2B !important; }
.nav-link.active { color: #E02B2B !important; }

/* ========== 幻灯片轮播 ========== */
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(150,150,150,0.8); cursor: pointer; transition: all 0.3s ease; border: none; }
.slider-dot.active { background: white; width: 14px; height: 14px; box-shadow: 0 0 0 2px rgba(0,0,0,0.3), 0 0 0 3px rgba(255,255,255,0.9); }
.slider-dot:hover { background: rgba(200,200,200,0.9); }

.slider-arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.slider-arrow:hover { background: rgba(255,255,255,0.25); }

.slide-content { opacity: 0; transform: translateY(20px); transition: all 0.6s ease 0.2s; }
.slide.active .slide-content { opacity: 1; transform: translateY(0); }

.slide { opacity: 0; transition: opacity 0.8s ease; position: absolute; inset: 0; }
.slide.active { opacity: 1; z-index: 2; }

.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 6s ease; }
.slide.active .slide-bg { transform: scale(1.05); }

/* ========== 其他交互组件 ========== */
.dropdown-menu { display: none; }
.dropdown-menu.active { display: block; }
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.accordion-content { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.5s ease; }
.accordion-item.open .accordion-content { opacity: 1; }
.filter-btn.active { background: #444; color: white; }
.page-btn.active { background: #E02B2B; color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
#mobile-menu { display: none; }
#mobile-menu.active { display: block; }


