重构关于我们、商家申请和案例页面,优化布局和内容展示
This commit is contained in:
289
website/css/reward.css
Normal file
289
website/css/reward.css
Normal file
@@ -0,0 +1,289 @@
|
||||
/* 推广奖励页面样式 */
|
||||
|
||||
/* 页面头部样式 */
|
||||
.page-header.reward-header {
|
||||
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
|
||||
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f39c12"/><circle cx="20" cy="30" r="5" fill="%23ffffff" opacity="0.8"/><circle cx="40" cy="20" r="4" fill="%23ffffff" opacity="0.6"/><circle cx="30" cy="45" r="6" fill="%23ffffff" opacity="0.7"/><circle cx="60" cy="35" r="5" fill="%23ffffff" opacity="0.9"/><circle cx="50" cy="60" r="7" fill="%23ffffff" opacity="0.8"/><circle cx="75" cy="50" r="4" fill="%23ffffff" opacity="0.6"/></svg>');
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
.benefit-box {
|
||||
text-align: center;
|
||||
padding: 30px;
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
height: 100%;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
.benefit-box:hover {
|
||||
transform: translateY(-10px);
|
||||
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.benefit-icon {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
font-size: 2rem;
|
||||
margin: 0 auto 20px;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.benefit-box:hover .benefit-icon {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.commission-card {
|
||||
padding: 30px 20px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
height: 100%;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.commission-card:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.commission-icon {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
font-size: 1.5rem;
|
||||
margin: 0 auto 20px;
|
||||
}
|
||||
|
||||
.commission-rate {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: #f39c12;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.promotion-method {
|
||||
padding: 30px 20px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
height: 100%;
|
||||
border: 1px solid #eee;
|
||||
}
|
||||
|
||||
.promotion-method:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.method-icon {
|
||||
width: 70px;
|
||||
height: 70px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
font-size: 1.5rem;
|
||||
margin: 0 auto 20px;
|
||||
}
|
||||
|
||||
.card {
|
||||
border: none;
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
.form-control, .form-select {
|
||||
padding: 10px 15px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.btn-rounded {
|
||||
border-radius: 50px;
|
||||
padding: 10px 30px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
position: relative;
|
||||
padding-bottom: 15px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.section-title::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 60px;
|
||||
height: 3px;
|
||||
background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.result-area {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
#resultAmount {
|
||||
color: #f39c12;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* 响应式调整 */
|
||||
@media (max-width: 768px) {
|
||||
.benefit-box {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.benefit-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.commission-card {
|
||||
padding: 20px 15px;
|
||||
}
|
||||
|
||||
.commission-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.commission-rate {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.promotion-method {
|
||||
padding: 20px 15px;
|
||||
}
|
||||
|
||||
.promotion-method .method-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
#promotionForm {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* 动画效果 */
|
||||
@keyframes rewardPulse {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.02);
|
||||
box-shadow: 0 15px 35px rgba(108, 92, 231, 0.2);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.benefit-box,
|
||||
.commission-card,
|
||||
.promotion-method {
|
||||
animation: rewardPulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* 加载动画 */
|
||||
.reward-loading {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.reward-loading .spinner-border {
|
||||
color: #6c5ce7;
|
||||
}
|
||||
|
||||
/* 空状态样式 */
|
||||
.reward-empty {
|
||||
text-align: center;
|
||||
padding: 3rem 1rem;
|
||||
color: #6c757d;
|
||||
}
|
||||
|
||||
.reward-empty i {
|
||||
font-size: 4rem;
|
||||
color: #dee2e6;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.reward-empty h4 {
|
||||
color: #495057;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* 进度条样式 */
|
||||
.progress-bar-reward {
|
||||
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
|
||||
}
|
||||
|
||||
/* 标签样式 */
|
||||
.reward-tag {
|
||||
display: inline-block;
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 15px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
background: rgba(108, 92, 231, 0.1);
|
||||
color: #6c5ce7;
|
||||
margin-right: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* 统计数字样式 */
|
||||
.reward-stat {
|
||||
text-align: center;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.reward-stat-number {
|
||||
font-size: 2.5rem;
|
||||
font-weight: bold;
|
||||
color: #6c5ce7;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.reward-stat-label {
|
||||
color: #6c757d;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* 渐变背景效果 */
|
||||
.gradient-bg {
|
||||
background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #6c5ce7 100%);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.gradient-bg h1, .gradient-bg h2, .gradient-bg h3, .gradient-bg h4, .gradient-bg h5, .gradient-bg h6 {
|
||||
color: white;
|
||||
}
|
||||
Reference in New Issue
Block a user