123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370 |
- /* 首页样式 */
- .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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
- 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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></linearGradient></defs><polygon points="0,0 100,0 0,100" fill="url(%23grad)"/></svg>');
- 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;
- }
- }
|