/**
|
* @author 韩天尊
|
* @time 2024-01-15
|
* @version 1.0.0
|
* @description 首页样式
|
*/
|
|
/* 轮播图样式 */
|
.carousel-container {
|
position: relative;
|
height: 200px;
|
overflow: hidden;
|
border-radius: 0 0 8px 8px;
|
background: linear-gradient(135deg, #ff6b6b 0%, #ffb199 100%);
|
color: #fff;
|
box-shadow: 0 4px 16px rgba(255,107,107,0.08);
|
}
|
|
.carousel-wrapper {
|
height: 100%;
|
position: relative;
|
display: flex;
|
transition: transform 0.5s ease-in-out;
|
}
|
|
.carousel-slide {
|
min-width: 100%;
|
height: 100%;
|
position: relative;
|
}
|
|
.carousel-slide img {
|
width: 100%;
|
height: 100%;
|
object-fit: cover;
|
}
|
|
.carousel-dots {
|
position: absolute;
|
bottom: 16px;
|
left: 50%;
|
transform: translateX(-50%);
|
display: flex;
|
gap: 8px;
|
}
|
|
.dot {
|
width: 8px;
|
height: 8px;
|
border-radius: 50%;
|
background-color: rgba(255, 255, 255, 0.5);
|
cursor: pointer;
|
transition: background-color 0.3s;
|
}
|
|
.dot.active {
|
background-color: white;
|
}
|
|
/* 功能按钮区域 */
|
.function-buttons {
|
display: flex;
|
gap: 16px;
|
padding: 20px 16px 8px 16px;
|
background: #fff;
|
border-radius: 16px;
|
box-shadow: 0 2px 12px rgba(255,107,107,0.08);
|
margin-top: -40px;
|
position: relative;
|
z-index: 2;
|
}
|
|
.function-btn {
|
flex: 1;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
background: none;
|
border: none;
|
box-shadow: none;
|
cursor: pointer;
|
transition: transform 0.2s, box-shadow 0.2s;
|
}
|
|
.function-btn:active, .function-btn:hover {
|
transform: translateY(-2px) scale(1.05);
|
}
|
|
.function-btn i {
|
width: 48px;
|
height: 48px;
|
border-radius: 50%;
|
background: linear-gradient(135deg, #ffb199 0%, #ff6b6b 100%);
|
color: #fff;
|
font-size: 24px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
margin-bottom: 8px;
|
box-shadow: 0 2px 8px rgba(255,107,107,0.15);
|
}
|
|
.function-btn:nth-child(2) i {
|
background: linear-gradient(135deg, #4ecdc4 0%, #38b2ac 100%);
|
}
|
|
.function-btn:nth-child(3) i {
|
background: linear-gradient(135deg, #ffe66d 0%, #f6d365 100%);
|
color: #ff6b6b;
|
}
|
|
.function-btn:nth-child(4) i {
|
background: linear-gradient(135deg, #95e1d3 0%, #4ecdc4 100%);
|
}
|
|
.function-btn span {
|
font-size: 13px;
|
color: #333;
|
font-weight: 500;
|
text-align: center;
|
}
|
|
/* 活动列表样式 */
|
.activity-list {
|
padding: 0 16px;
|
background: #fff;
|
border-radius: 16px;
|
box-shadow: 0 2px 12px rgba(255,107,107,0.08);
|
margin-top: 16px;
|
padding-bottom: 4px;
|
}
|
|
/* 区域头部样式 */
|
.section-header {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
padding: 16px 16px 0 16px;
|
margin-bottom: 16px;
|
}
|
|
.section-header .section-title {
|
margin-bottom: 0;
|
padding: 0;
|
font-size: 18px;
|
font-weight: 600;
|
color: #333333;
|
}
|
|
/* 更多按钮样式 */
|
.more-btn {
|
display: flex;
|
align-items: center;
|
gap: 4px;
|
background: none;
|
border: none;
|
color: #ff6b6b;
|
font-size: 14px;
|
cursor: pointer;
|
padding: 4px 8px;
|
border-radius: 4px;
|
transition: background-color 0.3s;
|
}
|
|
.more-btn:hover {
|
background: rgba(255, 107, 107, 0.1);
|
}
|
|
/* 活动网格布局 */
|
.activity-grid {
|
display: grid;
|
grid-template-columns: 1fr;
|
gap: 16px;
|
padding: 0 16px 16px 16px;
|
}
|
|
/* 活动项样式 */
|
.activity-item {
|
background: white;
|
border-radius: 12px;
|
padding: 16px;
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
border: 1px solid #e9ecef;
|
transition: all 0.3s ease;
|
cursor: pointer;
|
}
|
|
.activity-item:hover {
|
transform: translateY(-2px);
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
}
|
|
.activity-item .cover {
|
width: 100%;
|
height: 120px;
|
object-fit: cover;
|
border-radius: 8px;
|
margin-bottom: 12px;
|
}
|
|
.activity-info {
|
display: flex;
|
flex-direction: column;
|
gap: 8px;
|
}
|
|
.activity-info-row {
|
display: flex;
|
justify-content: space-between;
|
align-items: flex-start;
|
margin-bottom: 8px;
|
}
|
|
.activity-info h4 {
|
font-size: 16px;
|
font-weight: 600;
|
color: #333333;
|
margin: 0;
|
flex: 1;
|
margin-right: 12px;
|
}
|
|
.activity-status {
|
font-size: 12px;
|
padding: 4px 8px;
|
border-radius: 12px;
|
font-weight: 500;
|
white-space: nowrap;
|
}
|
|
.activity-status.ongoing,
|
.activity-status['2'] {
|
background: #d4edda;
|
color: #155724;
|
}
|
|
.activity-status.upcoming,
|
.activity-status['1'] {
|
background: #fff3cd;
|
color: #856404;
|
}
|
|
.activity-status.completed,
|
.activity-status['3'] {
|
background: #f8d7da;
|
color: #721c24;
|
}
|
|
.activity-info-detail {
|
display: flex;
|
align-items: center;
|
font-size: 14px;
|
color: #666666;
|
gap: 6px;
|
}
|
|
.activity-info-detail i {
|
color: #ff6b6b;
|
font-size: 12px;
|
width: 14px;
|
}
|
|
.category-tag {
|
background: #e3f2fd;
|
color: #1976d2;
|
padding: 2px 6px;
|
border-radius: 4px;
|
font-size: 12px;
|
font-weight: 500;
|
}
|
|
.activity-points {
|
color: #ff6b6b;
|
font-weight: 600;
|
}
|
|
/* 移动端适配 */
|
@media (max-width: 480px) {
|
.function-buttons {
|
gap: 12px;
|
padding: 16px 12px 6px 12px;
|
}
|
|
.function-btn i {
|
width: 40px;
|
height: 40px;
|
font-size: 20px;
|
}
|
|
.function-btn span {
|
font-size: 12px;
|
}
|
|
.carousel-container {
|
height: 180px;
|
}
|
|
.activity-list {
|
padding: 0 12px;
|
}
|
|
.section-header {
|
padding: 12px 12px 0 12px;
|
}
|
|
.activity-grid {
|
padding: 0 12px 12px 12px;
|
}
|
|
.activity-item {
|
padding: 12px;
|
}
|
|
.activity-item .cover {
|
height: 100px;
|
}
|
}
|
|
@media (max-width: 360px) {
|
.function-buttons {
|
gap: 8px;
|
padding: 12px 8px 4px 8px;
|
}
|
|
.function-btn i {
|
width: 36px;
|
height: 36px;
|
font-size: 18px;
|
}
|
|
.function-btn span {
|
font-size: 11px;
|
}
|
|
.carousel-container {
|
height: 160px;
|
}
|
|
.activity-list {
|
padding: 0 8px;
|
}
|
|
.section-header {
|
padding: 8px 8px 0 8px;
|
}
|
|
.activity-grid {
|
padding: 0 8px 8px 8px;
|
}
|
|
.activity-item {
|
padding: 8px;
|
}
|
|
.activity-item .cover {
|
height: 80px;
|
}
|
}
|