/*==========================================================================
  经典案例 · 卡片（2026-09-23）
  版式参考：客户提供的 "Choose Your Destination" 卡片模板（默认态 + hover 态）
  设计要点：
    · 竖版满图卡片（2:3），图片铺满整卡、圆角裁切
    · 底部深色渐变压边，承载「图标 + 标题 + 副标题」
    · hover：卡片上浮、图片缓慢放大 → 标题微上移、胶囊按钮向下展开
  作用域：全部使用 .cc-* 前缀，不影响站内其它页面沿用的 .case-card
========================================================================== */

.cc-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
  width: 100%;
}

.cc-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  /* 短屏保护：高度不跟着容器宽度无限长，保证本屏仍是一屏 */
  max-height: min(52vh, 560px);
  border-radius: 8px;
  background: #0a1430;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(3, 10, 28, 0.35);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
  -webkit-tap-highlight-color: transparent;
}

/* 内描边：在深色背景图上勾出卡片轮廓 */
.cc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: box-shadow 0.55s ease;
}

.cc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(3, 10, 28, 0.55);
}

.cc-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.42);
}

.cc-card:focus-visible {
  outline: 2px solid #7aa8ff;
  outline-offset: 3px;
}

.cc-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-transform: scale(1.001);
  transform: scale(1.001);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-card:hover .cc-card__img {
  -webkit-transform: scale(1.07);
  transform: scale(1.07);
}

.cc-card__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 70%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(3, 8, 26, 0.97) 0%,
    rgba(3, 8, 26, 0.9) 20%,
    rgba(3, 8, 26, 0.62) 48%,
    rgba(3, 8, 26, 0.2) 78%,
    rgba(3, 8, 26, 0) 100%
  );
}

.cc-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  padding: 0 clamp(14px, 1.6vw, 24px) clamp(18px, 2.4vh, 26px);
}

.cc-card__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-card:hover .cc-card__meta {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
}

/* 图标槽：对应模版里国旗的位置，全站不改配色，沿用品牌蓝渐变 */
.cc-card__badge {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 30px;
  height: 20px;
  border-radius: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(to top, #00154c, #12376e, #23487f);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.cc-card__badge svg {
  display: block;
  width: 14px;
  height: 14px;
}

.cc-card__title {
  color: #ffffff;
  font-size: clamp(0.95rem, 1.05vw, 1.12rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.cc-card__desc {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.76rem, 0.78vw, 0.86rem);
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* hover 才展开的胶囊按钮（模版第二张的状态）：默认高度 0，hover 撑开 */
.cc-card__cta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 0;
  margin-top: 0;
  padding: 0 22px;
  overflow: hidden;
  opacity: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  background: linear-gradient(to top, #00154c, #12376e, #23487f);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
  transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-card:hover .cc-card__cta,
.cc-card:focus-visible .cc-card__cta {
  height: 38px;
  margin-top: 14px;
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* 触屏设备没有 hover：按钮常显，否则手机上永远看不到入口 */
@media (hover: none) {
  .cc-card__cta {
    height: 36px;
    margin-top: 12px;
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

/* 尊重系统的「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  .cc-card,
  .cc-card__img,
  .cc-card__meta,
  .cc-card__cta {
    transition: none !important;
  }
}

/* ---------- 板块标题间距：给卡片让出高度，保证一屏装得下 ---------- */
.destination-section .section-title .title {
  margin-bottom: 14px;
}

.destination-section .section-title .description {
  margin-bottom: 0;
}

.destination-section .section-title.mb-5 {
  margin-bottom: 30px !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199.98px) {
  .cc-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .cc-card {
    max-height: 460px;
  }
}

@media (max-width: 575.98px) {
  .cc-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  /* 单列时保持竖版，与模版一致；用 max-height 兜住，避免卡片过长 */
  .cc-card {
    aspect-ratio: 4 / 5;
    max-height: 400px;
  }

  .cc-card__badge {
    width: 26px;
    height: 18px;
  }

  .cc-card__badge svg {
    width: 12px;
    height: 12px;
  }
}
