时里院子市集
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

212 lines
4.0 KiB

.coupon-card {
position: relative;
display: flex;
width: 100%;
height: 120px;
margin-bottom: 16px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
background: #fff;
transition: all 0.3s ease;
&:active {
transform: scale(0.98);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
&.disabled {
opacity: 0.6;
}
.coupon-left {
flex-shrink: 0;
width: 110px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
position: relative;
&.theme-red {
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}
&.theme-orange {
background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}
&.theme-blue {
background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}
&.theme-purple {
background: linear-gradient(135deg, #ab47bc 0%, #9c27b0 100%);
}
&.theme-green {
background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}
.amount-wrapper {
display: flex;
align-items: baseline;
margin-bottom: 8px;
.currency {
font-size: 28px;
font-weight: 600;
margin-right: 2px;
}
.amount {
font-size: 36px;
font-weight: bold;
line-height: 1;
}
}
.condition {
font-size: 22px;
opacity: 0.9;
text-align: center;
line-height: 1.2;
}
}
.coupon-divider {
flex-shrink: 0;
width: 2px;
position: relative;
background: #f5f5f5;
.divider-line {
width: 100%;
height: 100%;
background: repeating-linear-gradient(
to bottom,
transparent 0px,
transparent 4px,
#ddd 4px,
#ddd 8px
);
}
.divider-circle-top {
position: absolute;
width: 16px;
height: 16px;
background: #f5f5f5;
border-radius: 50%;
top: -8px;
left: -7px;
}
.divider-circle-bottom {
position: absolute;
width: 16px;
height: 16px;
background: #f5f5f5;
border-radius: 50%;
bottom: -8px;
left: -7px;
}
}
.coupon-right {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 16px;
.coupon-info {
flex: 1;
.coupon-title {
font-size: 32px;
font-weight: 600;
color: #1f2937;
margin-bottom: 6px;
line-height: 1.3;
}
.coupon-validity {
font-size: 26px;
color: #6b7280;
line-height: 1.2;
}
}
.coupon-actions {
display: flex;
justify-content: flex-end;
align-items: center;
.coupon-btn {
min-width: 120px;
height: 60px;
border-radius: 30px;
font-size: 26px;
border: none;
color: #fff;
font-weight: 600;
transition: all 0.2s ease;
&:active {
transform: scale(0.95);
}
&.theme-red {
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}
&.theme-orange {
background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}
&.theme-blue {
background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}
&.theme-purple {
background: linear-gradient(135deg, #ab47bc 0%, #9c27b0 100%);
}
&.theme-green {
background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}
}
.status-text {
font-size: 26px;
color: #9ca3af;
padding: 8px 12px;
font-weight: 500;
}
}
}
.status-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
.status-badge {
background: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 4px 12px;
border-radius: 12px;
font-size: 28px;
font-weight: 500;
}
}
}