/* 自定义CSS样式 - 华致科技网站 */

/* 全局样式 */
:root {
  --primary-color: #0066CC;
  --secondary-color: #2D3748;
  --accent-color: #FF6B35;
  --background-color: #F7FAFC;
}
.theme-text {
  color: #2e93d8 !important;
}
.theme-btn {
  background-color: #2e93d8 !important;
  border-color: #2e93d8 !important;
}
.bg-pink{
  background-color: #ffa8a8 !important;
}
/* 图片轮播 */
.slider { position: relative; height: calc(100vh - 4.25rem); width: 100%; aspect-ratio: 16 / 9; margin: 4.25rem auto 0; overflow: hidden; background: #000; }
.slides { position: relative; height: 100%;}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.slide.active { opacity: 1; }
.slide img { 
  width: 100%;
  height: 100%;
   /* object-fit: cover; */
    display: block; }

.btn-slider { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: 0; width: 3.75rem; height: 3.75rem; cursor: pointer; border-radius: 50%; }
.btn-slider:hover { background: rgba(0,0,0,.6); }
.btn-slider.prev { left: 10px; }
.btn-slider.next { right: 10px; }

.dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 8px; display: none;}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.dot.active { background: #fff; }
.silder-block{
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
}
.silder-btns{
  text-align: center;
  margin: 0 auto;
  margin-top: 1rem;
}
.silder-btns img{
  width: 7.5rem;
  display: inline-block;
  margin: 0.5rem 0.5rem 0;
  cursor: pointer;
}
.show-lg{
  display: block !important;
}
.show-mobile{
  display: none !important;
}
/* .text-base-content{
  font-size: 1.0625rem;
} */
/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}
.logo{
  height: 2.75rem;
}
.logo_icon{
  height: 1.5rem;
}
.space_icon{
  /* height: 1rem; */
  width: 1.125rem;
  margin-top: 0.25rem;
}
/* 导航栏样式 */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

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

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 首页横幅样式 */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(45, 55, 72, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.tech-icon-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.tech-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 业务卡片样式 */
.business-card {
  transition: all 0.3s ease;
  cursor: pointer;
}
.p-1{
  background: #fff url('../image/p-1.png') right bottom no-repeat;
  background-size: 40%;
}
.p-2{
  background: #fff url('../image/p-2.png') right bottom no-repeat;
  background-size: 40%;
}
.p-3{
  background: #fff url('../image/p-3.png') right bottom no-repeat;
  background-size: 40%;
}
.p-4{
  background: #fff url('../image/p-4.png') right bottom no-repeat;
  background-size: 40%;
}
.business-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.business-card .card-body {
  padding: 2rem;
  min-height: 25rem;
}

.business-card .card-body > div:first-child {
  transition: all 0.3s ease;
}

.business-card:hover .card-body > div:first-child {
  transform: scale(1.1);
}
.card-body .icon-1{
  width: 50%;
  height: 2rem;
  background: url('../image/icon_1.png') center center no-repeat;
  background-size: 100% 100%;
}
.business-card .items-center{
  color: #666;
}

/* 解决方案卡片动画 */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}
.content-block{
  background: #fff url('../image/content_bg.png') no-repeat;
  background-size: 100% 100%;
}
.content-block .card-body{
  min-height: 17rem;
}
/* 成功案例轮播样式 */
.carousel {
  position: relative;
}
.carousel-item {
  transition: all 0.5s ease;
}
.color-6{
  color: #666;
}
.color-4{
  color: #444;
  font-size: 1.125rem;
}
.item-ul .list-style{
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 3px;
  background-color: #666;
  margin-right: 0.25rem;
}
.icon-item-1{
  background: url('../image/icon-item-1.png') center center no-repeat;
  background-size: 100%;
}
.icon-item-2{
  background: url('../image/icon-item-2.png') center center no-repeat;
  background-size: 100%;
}
.icon-item-3{
  background: url('../image/icon-item-3.png') center center no-repeat;
  background-size: 100%;
}
.icon-item-4{
  background: url('../image/icon-item-4.png') center center no-repeat;
  background-size: 100%;
}
.icon-item-5{
  background: url('../image/icon-item-5.png') center center no-repeat;
  background-size: 100%;
}
.icon-item-6{
  background: url('../image/icon-item-6.png') center center no-repeat;
  background-size: 100%;
}
/* .partner-image{
  position: relative;
  top: -3.125rem;
} */
/* 联系表单样式 */
#contact{
  position: relative;
  top: -5.75rem;
  background: transparent;
}
.form-control {
  margin-bottom: 1rem;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* 按钮悬停效果 */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 渐变背景动画 */
.bg-gradient-to-br {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .show-lg{
    display: none !important;
  }
  .show-mobile{
    display: block !important;
  }
  .text-base-content-mobile{
    font-size: 0.9375rem;
  }
  #contact{
    top: 0;
    padding-top: 1rem;
  }
  .slider{
    height: 15rem;
  }
  .btn-slider{
    width: 2.25rem;
    height: 2.25rem;
  }
  .silder-btns img{
    width: 5rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .tech-icon {
    font-size: 3rem;
  }
  
  .business-card .card-body {
    padding: 1.5rem;
  }
}

/* 滚动指示器 */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 0.3s ease;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 成功提示样式 */
.success-message {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* 错误提示样式 */
.error-message {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* 页面加载动画 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* 打印样式 */
@media print {
  .navbar,
  .hero,
  #contact,
  footer {
    display: none;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .tech-icon {
    animation: none;
  }
  
  .bg-gradient-to-br {
    animation: none;
  }
}

.site-footer{background:#2f3133;color:#cfd3dc;width: 100%;margin-top: 1rem;}
.site-footer .footer-content{
  max-width:1200px;margin:0 auto;padding:0 1.25rem 1.875rem 1.25rem;
  display: flex;
  /* display:grid;grid-template-columns:1fr 1px 1fr 1px 1fr 1px 1fr;gap:24px;align-items:start */
}
.footer-col{
  width: 25%;
  padding-left: 10%;
  margin-top: 2.5rem;
}
.site-footer .footer-content div{
  display: inline-block;
}
.site-footer .footer-col h4{margin:0 0 1rem 0;color:#fff;font-size:1rem;font-weight:600}
.site-footer .footer-col ul{margin:0;padding:0;list-style:none}
.site-footer .footer-col li{line-height:1.75rem;font-size:1rem;color:#cfd3dc}
.site-footer .divider{width:1px;height:6.5rem;background:rgba(255,255,255,.12);justify-self:center;margin-top: 3rem;}
.site-footer .copyright{
  border-top:1px solid rgba(255,255,255,.1);background:#3a3c3e;text-align:center;
  padding:0.875rem 0.625rem;color:#e5e7eb;font-size:1rem;
}
/* @media (max-width: 900px){
  .site-footer .footer-content{grid-template-columns:1fr 1fr}
  .site-footer .divider{display:none}
}
@media (max-width:560px){
  .site-footer .footer-content{grid-template-columns:1fr}
} */
@media (max-width: 768px){
  .site-footer .footer-content{
    display: block;
  }
  /* .site-footer .footer-content{grid-template-columns:1fr 1fr} */
  .footer-col{
    width: calc(50% - 10px);
  }
  .site-footer .divider{
    display: none !important;
  }
  .site-footer .footer-col li{font-size:0.9375rem;}
  .site-footer .copyright{
    font-size:0.9375rem;
  }
}