/* ============================================================
   cards.css — 首页板块 + 卡片 + 列表 + case-item
   ============================================================ */

/* ============ 首页板块标题 ============ */
.section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 80px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  letter-spacing: 1px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(212, 184, 122, 0.4), transparent);
}

/* ============ 网格布局 ============ */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ============ 首页卡片：card-link ============ */
.card-link {
  display: block;
  background: rgba(255, 255, 255, 0.03); /* 稍微调暗一点点背景，让白字更凸显 */
  backdrop-filter: blur(2px);
  padding: 1.5rem 1rem; /* 稍微增加一点上下内边距，更舒展 */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.card-link:hover {
  background: rgba(212, 184, 122, 0.06); /* 悬停背景微微泛金 */
  transform: translateY(-4px); /* 悬浮更明显一点 */
  border-color: rgba(212, 184, 122, 0.3);
  box-shadow: 0 8px 30px rgba(212, 184, 122, 0.1);
}

.card-link .icon { 
  font-size: 2rem; 
  display: block; 
  margin-bottom: 0.6rem; 
}

/* 英文主标题：纯白加粗 */
.card-link .name { 
  font-weight: 600; 
  color: #ffffff; 
  font-size: 1.05rem;
}

/* 中文副标题：统一纯白，字号稍小 */
.card-link .sub-name {
  font-weight: 400;
  font-size: 0.95rem;
  color: #ffffff; /* 🌟 统一为纯白 */
  margin-top: 4px;
}

/* 底部描述：暗灰（保持层级最弱） */
.card-link .desc {
  font-size: 0.8rem;
  color: #888888; 
  margin-top: 6px;
  font-weight: 300;
}

/* 🌟 关键联动：鼠标悬停卡片时，中文副标题亮起金色 */
.card-link:hover .sub-name {
  color: var(--gold);
}

/* ============ 首页卡片：plan-card ============ */
.plan-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.plan-card:hover {
  background: rgba(212, 184, 122, 0.05);
  transform: translateY(-3px);
  border-color: rgba(212, 184, 122, 0.2);
}
.plan-card .title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.plan-card .desc {
  font-size: 0.9rem;
  color: var(--muted-2);
}

/* ============ 资讯大图卡片 ============ */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.news-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02); /* 极暗背景 */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-card:hover {
  background: rgba(212, 184, 122, 0.05);
  border-color: rgba(212, 184, 122, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.news-img-box {
  width: 180px; /* 稍微加宽了一点点，更能展示大图的细节 */
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden; /* 关键：切掉图片多余部分 */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* 给图片加个极细边框显得更精致 */
}

/* 图片填充模式 */
.news-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 关键：保证图片铺满不拉伸 */
  transition: transform 0.3s ease;
}

/* 悬浮时图片微微放大，增加动感 */
.news-card:hover .news-img-box img {
  transform: scale(1.05);
}

.news-emoji {
  font-size: 40px;
}

.news-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.4;
  transition: color 0.3s;
}

.news-card:hover .news-title {
  color: var(--gold); /* 悬浮时标题变金色 */
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.news-label {
  color: var(--muted);
}

.news-date {
  color: var(--dim); /* 或者用 #888 */
}

/* 移动端适配 */
@media (max-width: 640px) {
  .news-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-img-box {
    width: 100%;
    height: 160px;
    margin-right: 0;
    margin-bottom: 16px;
  }
}

/* ============ 子页面列表：case-item ============ */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.case-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  transition: 0.3s;
}
.case-item:hover {
  background: var(--gold-bg);
  border-color: var(--gold-border);
  transform: translateX(4px);
}
.case-item .left .name {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
}
.case-item .left .date,
.case-item .left .desc {
  font-size: 0.8rem;
  color: var(--dim);
  margin-top: 2px;
}
.case-item .left .badge {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--gold-light);
  background: rgba(212, 184, 122, 0.15);
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 4px;
  border: 1px solid rgba(212, 184, 122, 0.15);
}
.case-item .right {
  color: var(--gold);
  font-size: 0.85rem;
  padding: 4px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  transition: 0.3s;
}
.case-item:hover .right {
  background: rgba(212, 184, 122, 0.1);
}
.case-item .right a {
  color: var(--gold);
  text-decoration: none;
}

/* ============ 2列大图卡片 ============ */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.feature-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 280px; /* 卡片高度 */
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
  display: flex;
  align-items: flex-end; /* 文字靠下 */
}

/* 背景图 */
.feature-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 暗黑渐变遮罩（核心：保证上方看得到图，下方文字清晰） */
.feature-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 1;
}

/* 文字内容 */
.feature-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  width: 100%;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 184, 122, 0.15);
  color: var(--gold);
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 12px;
  border: 1px solid rgba(212, 184, 122, 0.3);
}

.feature-title {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.feature-desc {
  font-size: 0.95rem;
  color: #cccccc;
  margin: 0;
}

/* Hover 交互效果 */
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 184, 122, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 184, 122, 0.1);
}
.feature-card:hover .feature-bg {
  transform: scale(1.08); /* 图片放大 */
}

/* 移动端适配 */
@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .feature-card {
    height: 220px;
  }
}

/* ============ 大图卡片文字交互 ============ */
/* 鼠标悬浮时：大标题变成金色，并带一点微光 */
.feature-card:hover .feature-title {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 184, 122, 0.4);
  transition: all 0.3s ease;
}

/* 鼠标悬浮时：底部描述文字从灰变白，提高可读性 */
.feature-card:hover .feature-desc {
  color: #ffffff;
  transition: all 0.3s ease;
}

/* ============ 卡片错落入场延迟 ============ */
.grid-3col > .scroll-anim:nth-child(1),
.plan-grid > .scroll-anim:nth-child(1) { transition-delay: 0s; }
.grid-3col > .scroll-anim:nth-child(2),
.plan-grid > .scroll-anim:nth-child(2) { transition-delay: 0.1s; }
.grid-3col > .scroll-anim:nth-child(3),
.plan-grid > .scroll-anim:nth-child(3) { transition-delay: 0.2s; }
.grid-3col > .scroll-anim:nth-child(4),
.plan-grid > .scroll-anim:nth-child(4) { transition-delay: 0.3s; }

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .grid-3col { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .case-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .case-item .right { align-self: flex-start; }
}