/* ========== STACK CARDS - Interactive Stacked Layout ========== */
/* 此文件为交互堆叠效果的补充样式，与 stack-scroll.css 协同工作 */

/* 确保stack-scroll-area有足够的高度用于滚动触发 */
.stack-scroll-area {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0 5vh;
}

.stack-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Card Wrapper - Sticky positioning for stack effect */
.card-wrapper {
  position: sticky;
  top: 80px;
  height: 500px;
  width: 100%;
  margin-bottom: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform, filter, opacity;
}

/* Z-index for stacking order - later cards cover earlier ones */
.card-wrapper:nth-child(1) { z-index: 1; }
.card-wrapper:nth-child(2) { z-index: 2; }
.card-wrapper:nth-child(3) { z-index: 3; }
.card-wrapper:nth-child(4) { z-index: 4; }
.card-wrapper:nth-child(5) { z-index: 5; }

/* Card Inner */
.card-inner {
  height: 100%;
  width: 100%;
  background:
    linear-gradient(145deg, #16130d 0%, #0c0a07 62%, #050504 100%),
    radial-gradient(circle at 18% 18%, rgba(201, 169, 110, 0.06), transparent 34%);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow:
    0 42px 88px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 239, 204, 0.05),
    inset 0 -1px 0 rgba(201, 169, 110, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: all 0.5s ease;
}

/* Card Glow Effect */
.card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 244, 214, 0.035), transparent 24%, transparent 78%, rgba(201, 169, 110, 0.035)),
    radial-gradient(circle at 0% 0%, rgba(201, 169, 110, 0.055) 0%, transparent 56%);
  pointer-events: none;
  z-index: 1;
}

/* Top Gold Line */
.card-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 184, 0.42), rgba(201, 169, 110, 0.18), transparent);
  pointer-events: none;
  z-index: 3;
}

.card-inner .glow-border {
  display: none;
}

/* ===== 文字内容容器 ===== */
.card-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

/* ===== 标语 - 精致标签 ===== */
.card-tagline {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(201, 169, 110, 0.65);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
}

/* ===== 标题 - 核心信息 ===== */
.card-title {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #C9A96E;
  letter-spacing: 1px;
  margin: 0 0 20px;
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
  line-height: 1.35;
}

.card-wrapper:hover .card-title {
  color: #D4B87A;
}

/* ===== 分割线 - 精致分隔 ===== */
.card-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #C9A96E, rgba(201, 169, 110, 0.2));
  margin: 0 0 24px;
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
}

.card-wrapper:hover .card-divider {
  width: 56px;
  background: linear-gradient(90deg, #D4B87A, rgba(212, 184, 122, 0.3));
}

/* ===== 描述文字 - 核心内容 ===== */
.card-desc {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 15px;
  color: rgba(240, 234, 220, 0.88);
  line-height: 1.9;
  letter-spacing: 0.4px;
  position: relative;
  z-index: 2;
  margin: 0;
  font-weight: 300;
}

/* ===== 标签组 ===== */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.card-tags + .card-tags {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}

.card-tags::before,
.card-tags::after {
  display: none;
}

.card-tags span {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  color: rgba(201, 169, 110, 0.7);
  letter-spacing: 1px;
  padding: 8px 16px;
  background: rgba(201, 169, 110, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
}

.card-wrapper:hover .card-tags span {
  color: #C9A96E;
  background: rgba(201, 169, 110, 0.1);
  border-color: rgba(201, 169, 110, 0.25);
}

/* ===== 数字序号 - 右上角装饰 ===== */
.card-number {
  position: absolute;
  top: 36px;
  right: 48px;
  font-family: Arial, sans-serif;
  font-size: 5.5rem;
  font-weight: 600;
  color: rgba(201, 169, 110, 0.08);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: all 0.5s ease;
  z-index: 2;
  user-select: none;
}

.card-number::after {
  display: none;
}

.card-wrapper:nth-child(5) .card-number {
  font-weight: 500;
}

.card-wrapper:hover .card-number {
  color: rgba(201, 169, 110, 0.12);
}

/* Featured Card Styles */
.card-wrapper.featured .card-inner {
  background:
    linear-gradient(145deg, #1c160c 0%, #0c0905 100%),
    radial-gradient(circle at 20% 18%, rgba(214, 184, 122, 0.07), transparent 36%);
  border-color: rgba(201, 169, 110, 0.22);
}

.card-wrapper.featured .card-number {
  color: rgba(214, 184, 122, 0.12);
}

.card-wrapper.featured .card-title {
  color: #D4B87A;
}

/* Hover Effects */
.card-wrapper:hover .card-inner {
  border-color: rgba(201, 169, 110, 0.15);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(201, 169, 110, 0.05);
}

/* Responsive - 平板和手机 */
@media (max-width: 768px) {
  .card-wrapper {
    height: auto;
    min-height: 420px;
    margin-bottom: 20vh;
    top: 60px;
  }

  .card-inner {
    padding: 32px 28px;
  }

  .card-content {
    max-width: 100%;
  }

  .card-number {
    font-size: 4rem;
    top: 20px;
    right: 24px;
  }

  .card-tagline {
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }

  .card-title {
    font-size: 22px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }

  .card-divider {
    width: 32px;
    margin-bottom: 20px;
  }

  .card-desc {
    font-size: 14px;
    line-height: 1.85;
  }

  .card-tags {
    gap: 8px;
    margin-top: 24px;
  }

  .card-tags span {
    font-size: 11px;
    padding: 6px 12px;
  }

  .card-wrapper:hover .card-divider {
    width: 48px;
  }
}
