/* 首页样式 */
.home-page {
max-width: 414px;
margin: 0 auto;
background: #fff;
min-height: 100vh;
box-shadow: 0 0 30px rgba(0,0,0,0.3);
position: relative;
}
/* 头部导航 */
.header {
background: linear-gradient(45deg, #ff6b6b, #ffa726);
padding: 20px 20px 15px;
color: white;
position: relative;
overflow: hidden;
}
.header::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: url('data:image/svg+xml,');
animation: float 20s infinite linear;
}
@keyframes float {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.header-content {
position: relative;
z-index: 2;
}
.header h1 {
font-size: 28px;
font-weight: 700;
margin-bottom: 5px;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.header p {
opacity: 0.9;
font-size: 14px;
}
/* 主要内容区域 */
.main-content {
padding-bottom: 100px; /* 增加底部padding确保内容不被底部导航遮挡 */
}
/* 轮播区域 */
.banner-section {
position: relative;
height: 200px;
overflow: hidden;
margin: 20px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.banner-slider {
display: flex;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
height: 100%;
}
.banner-slide {
min-width: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 18px;
font-weight: 600;
position: relative;
overflow: hidden;
cursor: pointer;
transition: transform 0.3s ease;
}
.banner-slide:hover {
transform: scale(0.98);
}
.banner-slide::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,');
pointer-events: none;
}
.banner-indicators {
position: absolute;
bottom: 15px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 8px;
}
.indicator {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255,255,255,0.5);
cursor: pointer;
transition: all 0.3s ease;
}
.indicator.active {
background: white;
transform: scale(1.2);
}
/* 快速设计入口 */
.quick-design {
margin: 20px;
padding: 25px;
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
border-radius: 20px;
text-align: center;
box-shadow: 0 8px 25px rgba(255, 154, 158, 0.4);
position: relative;
overflow: hidden;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-design:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(255, 154, 158, 0.6);
}
.quick-design::before {
content: '✨';
position: absolute;
top: 15px;
right: 20px;
font-size: 24px;
animation: sparkle 2s infinite;
}
@keyframes sparkle {
0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}
.quick-design h2 {
font-size: 22px;
color: #fff;
margin-bottom: 8px;
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.quick-design p {
color: rgba(255,255,255,0.9);
font-size: 14px;
}
/* 热门作品区 */
.popular-works {
margin: 20px;
}
.section-title {
font-size: 20px;
font-weight: 700;
margin-bottom: 15px;
color: #333;
position: relative;
padding-left: 15px;
}
.section-title::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 20px;
background: linear-gradient(45deg, #ff6b6b, #ffa726);
border-radius: 2px;
}
.works-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.work-item {
background: #fff;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
}
.work-item:hover {
transform: translateY(-8px);
box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.work-image {
height: 120px;
background: linear-gradient(45deg, #a8edea 0%, #fed6e3 100%);
position: relative;
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
}
.work-info {
padding: 12px;
}
.work-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 4px;
color: #333;
}
.work-stats {
display: flex;
justify-content: space-between;
font-size: 12px;
color: #666;
}
/* AI推荐引擎样式 */
.ai-recommend-engine {
margin: 20px;
}
.ai-engine-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 20px;
padding: 25px;
color: white;
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.ai-engine-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.ai-brand {
display: flex;
align-items: center;
gap: 12px;
}
.ai-logo {
font-size: 32px;
animation: pulse 2s infinite;
}
.ai-brand-text h3 {
font-size: 20px;
margin: 0 0 4px 0;
font-weight: 700;
}
.ai-brand-text p {
font-size: 14px;
opacity: 0.9;
margin: 0;
}
.ai-status {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
opacity: 0.9;
}
.status-dot {
width: 8px;
height: 8px;
background: #4ade80;
border-radius: 50%;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
.ai-quick-actions {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin-bottom: 20px;
}
.quick-action {
background: rgba(255,255,255,0.15);
border-radius: 15px;
padding: 15px 12px;
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
min-height: 50px;
text-align: left;
}
.quick-action:hover {
background: rgba(255,255,255,0.25);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}
.action-icon {
font-size: 20px;
}
.action-text {
font-size: 14px;
font-weight: 500;
}
/* 移动端适配 */
@media (max-width: 768px) {
.home-page {
max-width: 100%;
}
.works-grid {
grid-template-columns: repeat(2, 1fr);
}
.ai-quick-actions {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 380px) {
.ai-quick-actions {
grid-template-columns: 1fr;
}
.quick-action {
justify-content: center;
text-align: center;
}
}