/* Tailwind 自定义工具类 */
@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  .nav-shadow {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
  }
  .animate-float {
    animation: float 6s ease-in-out infinite;
  }
  .animate-fade-in {
    animation: fadeIn 1.5s ease-out forwards;
  }
}

/* 全局样式 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 导航栏样式 */
#navbar {
  background-color: transparent;
}

#navbar.scrolled, #navbar:hover {
  background-color: rgba(10, 36, 99, 0.9);
  @apply nav-shadow;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 隐藏滚动条但保留功能 */
body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 链接过渡效果 */
a {
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #00A3FF;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* 按钮效果 */
button, .btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button::before, .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: all 0.75s ease;
  z-index: -1;
}

button:hover::before, .btn:hover::before {
  width: 0;
  height: 0;
}
    
    
/* used to love    
/* 强制重置默认样式 */
div.ship-inspection {
  all: initial;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 4rem 1rem;
  background-color: #f8fafc;
  background-image: linear-gradient(to bottom, #B0C4DE 0%, #FFFFFF 100%);
  box-sizing: border-box;
}

.ship-inspection__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.ship-inspection__content {
  flex: 0 0 auto;        /* 禁止伸缩，保持原始宽度 */
  width: 400px;          /* 固定宽度或使用min-width */
  min-width: 300px;      /* 最小宽度保证可读性 */
  /* 保持你原有的样式 */
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 46, 109, 0.1);
  border: 1px solid rgba(10, 36, 99, 0.1);
}

.content-wrapper::-webkit-scrollbar {
  display: none;
}
.content-wrapper {
  display: flex;          /* 启用Flex布局 */
  gap: 150px;             /* 两个内容块之间的间距 */
  overflow-x: auto;      /* 如果内容超出容器允许横向滚动 */
  padding: 10px 0;       /* 上下内边距 */
}
/* 标题增强样式 */
h2.ship-inspection__title {
  color: #0a2463;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  text-align: center;
  position: relative;
}

.ship-inspection__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0a2463;
  margin: 0.5rem auto 0;
}

/* 正文文本 */
.ship-inspection__detail {
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
  hyphens: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  div.ship-inspection {
    padding: 2rem 1rem;
  }
  
  .ship-inspection__content {
    padding: 1.5rem;
  }
  
  h2.ship-inspection__title {
    font-size: 1.5rem;
  }
  
  .ship-inspection__detail {
    font-size: 1rem;
  }
}

.ship-inspection {
  padding: 20px 0; /* 上下内边距 */
  background: #f5f5f5; /* 背景色（可选） */
}

/* like lions in the wild */
/* 新增标题样式 */
.inspection-title {
  text-align: center;
  font-size: 2rem;
  color: #0a2463;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.inspection-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #0a2463;
}

/* 保持原有图片布局 */


.ship-inspection__container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  transition: transform 0.3s;
}

.image-card:hover {
  transform: translateY(-5px);
}

.image-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.image-card figcaption {
  font-size: 1rem;
  color: #333;
  text-align: center;
  font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .inspection-title {
    font-size: 1.5rem;
  }
  
  .ship-inspection__container {
    gap: 1rem;
  }
  
  .image-card {
    width: 120px;
  }
}

/*breach*/

div.ship-inspection2 {
  all: initial;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中 */
  min-height: 100vh;      /* 确保全屏高度 */
  padding: 20px;   align-items: center;
  position: relative;
  background-color: #f8fafc;
  background-image: linear-gradient(to bottom, #FFFFFF 0%, #B0C4DE 100%);
  box-sizing: border-box;
}

.ship-inspection__container2 {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

