增加接口读取发卡网优惠券

This commit is contained in:
huangzhenpc
2025-04-01 10:17:12 +08:00
parent 342e0b1269
commit c001659a18
6 changed files with 659 additions and 0 deletions

View File

@@ -614,4 +614,134 @@ footer {
100% {
box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
}
}
/* 优惠券部分样式 */
.coupons {
padding: 4rem 0;
background-color: #f8f9fa;
}
.section-desc {
text-align: center;
max-width: 800px;
margin: 0 auto 2rem;
color: #666;
}
.coupon-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.coupon-card {
background-color: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
border: 2px dashed #3498db;
position: relative;
}
.coupon-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.coupon-content {
padding: 1.5rem;
position: relative;
}
.coupon-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.coupon-value {
font-size: 1.8rem;
font-weight: bold;
color: #e74c3c;
}
.coupon-type {
background-color: #3498db;
color: white;
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.9rem;
}
.coupon-code {
background-color: #f0f0f0;
padding: 0.8rem;
text-align: center;
font-family: monospace;
font-size: 1.2rem;
font-weight: bold;
letter-spacing: 1px;
border-radius: 5px;
margin: 1rem 0;
border: 1px dashed #ccc;
user-select: all;
}
.coupon-date {
font-size: 0.85rem;
color: #777;
margin-bottom: 1rem;
}
.btn-copy {
width: 100%;
background-color: #2ecc71;
border: none;
}
.btn-copy:hover {
background-color: #27ae60;
}
.coupon-note {
background-color: #f8f4e5;
padding: 0.8rem;
text-align: center;
font-size: 0.9rem;
color: #b58105;
}
.coupon-instructions {
max-width: 700px;
margin: 0 auto;
background-color: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.coupon-instructions h3 {
text-align: center;
margin-bottom: 1.5rem;
color: #2c3e50;
}
.coupon-instructions ol {
margin-left: 1.5rem;
line-height: 1.8;
}
.coupon-instructions a {
color: #3498db;
text-decoration: underline;
}
@media (max-width: 768px) {
.coupon-grid {
grid-template-columns: 1fr;
}
}