/* CouponTomato 本站样式：变量之外多写的部分。每一条都列在 docs/20 第 7 节。 */

/* 1. 头图标语下的手绘感划线 */
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em;
  background: var(--color-primary-line); z-index: -1; border-radius: 4px;
}

/* 2. 优惠券票根：打孔虚线和上下两个半圆缺口 */
.coupon::before, .coupon::after {
  content: ""; position: absolute; left: calc(var(--stub-width) - 10px); width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-bg); border: 1px solid var(--color-border);
}
.coupon::before { top: -11px; clip-path: inset(50% 0 0 0); }
.coupon::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
.coupon__stub { border-right: 2px dashed var(--color-primary-line); }
.coupon--deal .coupon__stub { border-right-color: #c9e2c5; }

/* 3. 拿码按钮的折角 */
.btn-code__label::after {
  content: ""; position: absolute; right: -14px; top: 0; border-style: solid;
  border-width: 0 14px 14px 0; border-color: transparent transparent var(--color-primary-hover) transparent;
}
.btn-code__label::before { content: ""; position: absolute; right: -14px; bottom: 0; top: 14px; width: 14px; background: var(--color-primary); }
.btn-code:hover .btn-code__label::before { background: var(--color-primary-hover); }
