/*  卡片容器 */
.coupon-card {
  position: relative;
  width: 100%;
  max-width: 480px; /* 限制最大宽度 */
  height: 160px; /* 固定高度以保持设计比例 */
  filter: drop-shadow(0 4px 10px rgba(160, 100, 50, 0.2)); /* 柔和的投影 */
  transition: transform 0.2s;
  /* 卡片背景：使用温润的暖金色渐变 */
  --card-bg-start: #eacda3;
  --card-bg-end: #d6ae7b;

  /* 字体颜色：深咖啡色，比纯黑更融合 */
  --text-primary: #3e2723;
  --text-secondary: #5d4037;
  --text-muted: rgba(62, 39, 35, 0.6);

  /* 按钮颜色 */
  --btn-bg: #3e2723;
  --btn-text: #fff;
}

.coupon-card:hover {
  transform: translateY(-2px); /* 悬停轻微上浮 */
}

/* 3. 背景层：SVG 绝对定位在底层 */
.coupon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 4. 内容层：绝对定位在顶层，使用 Flex 布局 */
.coupon-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* 上半部分 */
.top-section {
  flex: 1; /* 占据剩余空间 */
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 下半部分 (底部标语) */
.bottom-section {
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title {
  font-size: 28px;
  font-weight: 800; /* 特粗字体 */
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 2px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.code-wrapper {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-val {
  font-family: "Courier New", Courier, monospace;
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.copy-btn {
  background-color: transparent;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
