.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(255,255,255,0.3) 100%);
  background-repeat: repeat;
}

.gallery-card {
  background-image: url('../img/image/6.jpg'), linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(255,255,255,0.3));
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 0;
  background-position: top;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
}

.gallery-card .card-body {
  display: flex;
  align-items: flex-end;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .gallery-card {
    height: 300px;
  }
}

/* 在自定义CSS文件中添加 */
.topnav.navbar {
  transition: all 0.3s ease !important;
}

/* 强制所有导航文字保持白色 */
.topnav.navbar .nav-link,
.topnav.navbar .navbar-brand,
.topnav.navbar .btn {
  color: white !important;
  opacity: 0.9;
}

/* 鼠标悬停效果 */
.topnav.navbar .nav-link:hover {
  opacity: 1;
  text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

/* 标题 */
.section-title {
  text-align: center; /* 标题居中 */
  color: white; /* 标题颜色为白色 */
  font-size: 48px; /* 自定义标题大小，可根据需要调整 */
  margin-top: 2rem; /* 自定义标题上方间距 */
  margin-bottom: 2rem; /* 自定义标题下方间距 */
  /* 其他样式保持不变 */
}

/* From Uiverse.io by samuelfcosta18 */ 
section.card {
  position: relative;
  width: 560px;
  height: 380px;
  background-color: #4e4e4e27;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card svg {
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 3px;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px #000000;
  background-color: #69696927;
  color: #ffffff;
}

.card__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #42424234;/* 鼠标悬浮后显示的颜色 */ 
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0;
  padding-left: 5px;
  font-size: 24px;
  color: var(--white);
  font-weight: 700;
}

.card:hover svg {
  scale: 0;
}

.card__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
}

/* 布局控制变量 */
:root {
  --card-width: 560px;    /* 卡片基准宽度 */
  --card-height: auto;    /* 高度自适应 */
  --grid-gap: 5rem;       /* 卡片间距 */
  --container-padding: 3rem 5%; /* 容器边距 */
}

/* 保持原有布局样式 */
.card-container {
display: grid;
grid-template-columns: repeat(2, minmax(var(--card-width), 1fr));
gap: var(--grid-gap);
padding: var(--container-padding);
margin: 0 auto;
max-width: 1440px;
justify-content: center;
align-items: start;
}

/* 卡片尺寸调整 */
.card {
  width: 1000%; 
  height: var(--card-height);
  min-height: 200px; /* 最小高度限制 */
  /* 内部内容定位 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 内容间距分布 */
  position: relative;
  padding-top: 2rem;
}
.card__content {
padding: 1rem 0;
}
/* 移除悬浮效果 */
.card:hover {
transform: none;
box-shadow: none;  
}

/* 新增样式 */
.image-container {
position: relative;
width: 100%;
height: 300px; /* 根据图片高度调整 */
overflow: hidden;
border-radius: 8px;
}

.base-image{
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}

.overlay-wrapper {
position: absolute;
top: 0;
left: 0;
width: 50%; /* 初始宽度 */
height: 100%;
overflow: hidden;
border-right: 2px solid #fff;
clip-path: inset(0 0 0 0); /* 新增裁剪区域 */
}

.overlay-image {
  position: fixed;
  left: 0; /* 固定左对齐 */
  width: 100%; /* 相对于父容器 */
  height: 100%;
  object-fit: cover;
  transform: translateX(0); /* 禁用变换 */
  transition: none; /* 取消过渡 */
}

.slider {
position: absolute;
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 100%;
background: transparent;
z-index: 2;
margin: 0;
}

.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 4px;
height: 300px;
background: #fff;
cursor: col-resize;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
backdrop-filter: blur(2px); /* 毛玻璃效果 */
}

.image-caption {
text-align: center;
color: #666;
margin-top: 1rem;
font-size: 0.9em;
}
/* 移除冲突样式 */
.card:hover,
.card:hover svg,
.card:hover .card__content {
  transform: none;
  box-shadow: none;
  background-color: transparent;
  scale: 1;
}
/* 响应式调整 */
@media (max-width: 1200px) {
  .card-container {
  grid-template-columns: repeat(1, 1fr); /* 中等屏幕2列 */
  --card-width: 240px;
  }
}

@media (max-width: 768px) {
  :root {
  --grid-gap: 1.5rem; /* 移动端缩小间距 */
  }
  .card-container {
  grid-template-columns: 1fr; /* 移动端单列 */
  --container-padding: 1rem 5%;
  }
}

/* From Uiverse.io by AnthonyPreite */ 
.main__heading {
  font-weight: 600;
  font-size: 2.25em;
  margin-bottom: 0.75em;
  text-align: center;
  color: #eceff1;
}

.cards {
  position: relative;
}

/* 价格卡片容器 - 替换通用.card选择器避免冲突 */
.price-card {
  --flow-space: 0.5em;
  --hsl: var(--hue), var(--saturation), var(--lightness);
  flex: 1 1 14rem;
  padding: 1.5em 2em;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-items: start;
  gap: 1.25em;
  color: #eceff1;
  background-color: #2b2b2b79;
  border: 1px solid #eceff133;
  border-radius: 15px;
}

.card:nth-child(1) {
  --hue: 165;
  --saturation: 82.26%;
  --lightness: 51.37%;
}

.card__bullets {
  line-height: 1.4;
}

.card__heading {
  font-size: 1.05em;
  font-weight: 600;
}

.card__price {
  font-size: 1.75em;
  font-weight: 700;
}

.flow > * + * {
  margin-top: var(--flow-space, 1.25em);
}

.cta {
  display: block;
  align-self: end;
  margin: 1em 0 0.5em 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: transparent;
  outline: 1px solid white;
  padding: 0.7em;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

/* 价格卡片悬停效果 - 霓虹光效 */
.price-card:hover {
  --lightness: 80%;
  background: #ffffff80;
  color: #000;
  outline: 1px solid rgb(255, 255, 255);
  box-shadow: inset 0 0 80px whitesmoke, 
    inset 20px 0 80px rgba(255, 0, 255, 0.747),
    inset -20px 0 80px #0ff, 
    inset 20px 0 300px #f0f, 
    inset -20px 0 300px #0ff,
    0 0 50px #fff, 
    -10px 0 80px #f0f, 
    10px 0 80px #0ff;
  transition: all ease-in-out 0.3s;
}

.card:hover > .cta {
  outline: none;
  background-color: #0d0d0d;
}
/* From Uiverse.io by AnthonyPreite */

/* 定价容器样式 */
.pricing-container {
  --card-gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pricing-container > .col {
  padding: var(--card-gap);
}

@media (max-width: 768px) {
  .pricing-container {
      --card-gap: 1.5rem;
      padding: 1rem;
  }
}


/* 通用交互样式 */
.modal-overlay {
/* @apply 是 Tailwind CSS 特有的指令，报错说明当前环境可能不支持。下面是将 @apply 展开后的等效 CSS 代码 */
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}