// 导航栏样式 .nav-title { font-size: 18px; font-weight: 600; color: var(--primary-color); } .nav-text { color: var(--primary-color); } .nav-right { margin-left: 4px; font-size: 12px; } .new-plan-btn { border-radius: 20px; padding: 4px 12px; height: 32px; font-size: 12px; background: var(--primary-gradient); border: none; box-shadow: 0 2px 8px var(--primary-shadow); &:active { transform: translateY(1px); box-shadow: 0 1px 4px var(--primary-shadow); } } // 页面容器 .scene-page { background: #f5f6fa; min-height: 100vh; padding: 0 0 60px 0; } // 错误提示 .error-notice { margin-bottom: 12px; padding: 8px 12px; background: #fff2e8; border: 1px solid #ffd591; border-radius: 8px; box-shadow: 0 1px 4px rgba(255, 213, 145, 0.2); } .error-notice-text { font-size: 12px; color: #d46b08; font-weight: 500; } // 加载状态 .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; gap: 12px; } .loading-text { font-size: 14px; color: #666; font-weight: 500; } // 错误状态 .error-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; gap: 16px; } .error-text { font-size: 14px; color: #ff4d4f; text-align: center; font-weight: 500; } .retry-button { min-width: 100px; border-radius: 20px; background: var(--primary-gradient); border: none; box-shadow: 0 2px 8px var(--primary-shadow); } // 页面头部 .scene-header { margin-bottom: 16px; text-align: center; } .header-title { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--primary-color); margin-bottom: 6px; } .header-icon { font-size: 20px; color: var(--primary-color); } .header-subtitle { font-size: 12px; color: #666; line-height: 1.4; } // 场景列表 .scenarios-list { display: flex; flex-direction: column; gap: 10px; } // 场景卡片 .scenario-item { cursor: pointer; transition: all 0.2s ease; &:hover { transform: translateY(-1px); } &:active { transform: translateY(0); } } .scenarios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; } .scenario-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; overflow: hidden; &:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.12); transform: translateY(-2px) scale(1.02); } } .card-inner { display: flex; flex-direction: column; align-items: center; padding: 18px 10px 14px 10px; } .card-img-wrap { margin-bottom: 8px; } .card-img-bg { width: 48px; height: 48px; background: #f0f2f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .card-img { width: 32px; height: 32px; object-fit: contain; } .card-title { font-size: 16px; font-weight: 600; color: #1677ff; text-align: center; margin-bottom: 2px; } .card-desc { font-size: 12px; color: #888; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .card-stats { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; } .card-count { font-size: 13px; color: #666; } .card-growth { font-size: 12px; color: #52c41a; display: flex; align-items: center; } // 空状态 .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; } .empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.6; } .empty-text { font-size: 14px; color: #666; margin-bottom: 16px; font-weight: 500; } .empty-action { border-radius: 20px; background: var(--primary-gradient); border: none; box-shadow: 0 2px 8px var(--primary-shadow); padding: 6px 16px; font-weight: 500; font-size: 12px; } // 响应式设计 @media (max-width: 480px) { .scenario-card { padding: 14px 16px; min-height: 70px; } .scenario-icon { width: 46px; height: 46px; } .scenario-image { width: 28px; height: 28px; } .scenario-name { font-size: 15px; } .stat-text { font-size: 12px; } .scenario-growth { font-size: 15px; } .growth-icon { font-size: 13px; } } @media (max-width: 500px) { .scenarios-grid { gap: 10px; padding: 10px; } .card-inner { padding: 12px 4px 10px 4px; } .card-img-bg { width: 60px; height: 60px; } .card-img { width: 40px; height: 40px; } .card-title { font-size: 15px; } .card-desc { font-size: 11px; } .card-count { font-size: 12px; } .card-growth { font-size: 11px; } }