html,body {
    width: 100%;
    height: 100%;
}
.coupon-list {
    width: 100%;
    height: 100%;
}
.coupon-item {
    width: 380px;
    height: 100px;
    margin: 0 auto;
    border-bottom: 1px dashed #e2e2e2;
    margin-bottom: 10px;
}
.coupon-item-list {
    width: 100%;
    height: 100px;
    border-bottom: 1px dashed #e2e2e2;
    margin-top: 10px;
}
.coupon {
    width: 20rem;
    height: 4rem;
    position: relative;
    float: left;
}

.coupon::before, .coupon::after {
    content: '';
    position: absolute;
    top: calc(1rem + 2px);
    width: calc(2rem - 4px);
    height: calc(2rem - 4px);
    background-color: white;
    z-index: 2;
}

.coupon::before {
    left: -1rem;
    border-radius: 0 calc(1rem - 2px) calc(1rem - 2px) 0;
}

.coupon::after {
    right: -1rem;
    border-radius: calc(1rem - 2px) 0 0 calc(1rem - 2px);
}

.coupon-inner {
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.coupon-inner::before, .coupon-inner::after {
    background-color: white;
    border-radius: 1rem;
    box-shadow: inset 1px 1px 6px rgba(0, 0, 0, 0.15);
    content: '';
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 1rem;
    z-index: 1;
}

.coupon-inner::before {
    left: -1rem;
}

.coupon-inner::after {
    right: -1rem;
}

.coupon-inner div {
    float: left;
}

.coupon-inner .title {
    width: 30%;
    height: 100%;
    background: #e93323;
    line-height: 64px;
    text-align: center;
    color: #fff;
}

.coupon-inner .content {
    width: 69%;
    height: 100%;
    font-size: 12px;
}

.coupon-inner .content .name {
    font-size: 14px;
    margin-left: 45px;
    margin-top: 10px;
    display: inline-block;
    font-weight: 500;
}

.coupon-inner .content .date {
    margin-left: 5px;
    color:#757575;
    margin-top: 10px;
    display: inline-block;
}

.coupon-select {
    float: right;
    width: 30px;
    height: 30px;
    margin-top: 22px;
    cursor: pointer;
}

.coupon-select input {
    height: 20px;
    width: 20px;
}

.overdue {
    background: #757575 !important;
}
.overdue-txt {
    color: #757575 !important;
    display: inline-flex !important;
    align-items: center;
}

.notice {
    text-align: left;
    color: #757575;
    clear: both;
    font-size: 13px;
    padding-top: 10px;
}

.coupon-type {
    border-radius: 20px;
    background: #e93323;
    color: #fff;
    font-size: 10px !important;
    padding: 3px;
    margin-right: 8px;
}

/* ============ 领券中心页面（按商户分组） ============ */
.coupon-banner {
    margin-top: 10px;
    height: 130px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff6a4d, #e93323);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.coupon-banner-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
}
.coupon-banner-sub {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* 商户分组 */
.coupon-group {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.group-head {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 18px;
}
.group-head span {
    line-height: 1;
}
.group-shop-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}
.group-tag {
    margin-left: 10px;
    font-size: 12px;
    font-weight: normal;
    color: #fff;
    background: #ff9800;
    border-radius: 3px;
    padding: 2px 6px;
    line-height: 1.2;
}
.group-go-shop {
    margin-left: auto;
    font-size: 13px;
    font-weight: normal;
    color: #e93323;
}

/* 优惠券卡片列表容器 */
.coupon-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* 单张优惠券票据卡片 */
.stamp {
    position: relative;
    width: 360px;
    height: 130px;
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
}
/* 红色带圆点纹理背景 */
.stamp02 {
    background: #e93323;
}
/* 装饰斜条纹 */
.stamp i {
    position: absolute;
    left: 20%;
    top: 40px;
    height: 180px;
    width: 360px;
    background-color: rgba(255, 255, 255, 0.15);
    transform: rotate(-30deg);
    pointer-events: none;
}

/* 左侧面值区 */
.stamp .par {
    flex: 0 0 220px;
    width: 220px;
    padding: 16px 12px;
    box-sizing: border-box;
    border-right: 2px dashed rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.stamp .par .val {
    font-size: 38px;
    color: #fff;
    line-height: 42px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
}
.stamp .par .sign {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-right: 2px;
}
.stamp .par p {
    color: #fff;
    font-size: 13px;
    line-height: 18px;
    margin: 6px 0 4px;
}
.stamp .par .date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 16px;
}

/* 右侧券名+按钮 */
.stamp .copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}
.stamp .copy .coupon-name {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin-bottom: 14px;
}
.stamp .copy .btn {
    background-color: #fff;
    color: #333;
    font-size: 13px;
    padding: 6px 0;
    border-radius: 3px;
    width: 90px;
    text-align: center;
    cursor: pointer;
    transition: opacity ease 0.2s;
    box-sizing: border-box;
}
.stamp .copy .btn:hover {
    opacity: 0.85;
}
.stamp .copy .btn-disabled {
    background-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
    cursor: not-allowed;
}
.stamp .copy .btn-disabled:hover {
    opacity: 1;
}

/* 角标：平台/商家 */
.ribbon-wrapper-1 {
    width: 90px;
    height: 90px;
    overflow: hidden;
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 3;
}
.ribbon-1 {
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    position: relative;
    padding: 5px 0;
    left: -8px;
    top: 14px;
    width: 100px;
    background-color: #67C23A;
}
.ribbon-1::before,
.ribbon-1::after {
    content: "";
    position: absolute;
}
.ribbon-1::before {
    left: 0;
    bottom: -4px;
    z-index: -1;
    border-top: 4px solid #67C23A;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}
.ribbon-1::after {
    right: 0;
    bottom: -4px;
    z-index: -1;
    border-top: 4px solid #67C23A;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

/* 空状态 */
.coupon-empty {
    text-align: center;
    padding: 80px 0;
    color: #999;
}
.coupon-empty img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}
.coupon-empty p {
    margin-top: 14px;
    font-size: 14px;
    color: #999;
}