:root { --primary: #6366f1; --primary-light: #818cf8; --primary-dark: #4f46e5; --secondary: #f43f5e; --accent: #fbbf24; --bg: #f8fafc; --card-bg: #ffffff; --text: #0f172a; --text-muted: #64748b; --border: #e2e8f0; --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06); --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08); --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12); --shadow-btn: 0 6px 16px rgba(99, 102, 241, 0.28); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; } body { background: linear-gradient(135deg, #f0f4ff 0%, #fef2f7 100%); -webkit-tap-highlight-color: transparent; } /* PWA容器 */ .pwa-container { max-width: 100%; min-height: 100vh; margin: 0 auto; padding-bottom: 80px; } /* 文字Logo导航栏 */ .pwa-header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 18px 24px; border-bottom: 1px solid rgba(226, 232, 240, 0.6); z-index: 100; display: flex; align-items: center; justify-content: space-between; } /* 文字Logo */ .site-logo { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; font-size: 1.9rem; font-weight: 800; text-decoration: none; letter-spacing: 2px; line-height: 1.2; background: linear-gradient(135deg, #4f46e5, #ec4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: transform 0.3s ease; } .site-logo:hover { transform: scale(1.03); } /* 搜索框 */ .search-box { display: flex; align-items: center; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-radius: 999px; padding: 10px 16px; flex: 1; max-width: 320px; margin-left: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 232, 240, 0.7); transition: box-shadow 0.25s ease, border-color 0.25s ease; } .search-box:focus-within { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22); border-color: rgba(129, 140, 248, 0.6); } .search-box input { border: none; background: transparent; width: 100%; padding: 4px 6px; font-size: 14px; color: var(--text); } .search-box input:focus { outline: none; } .search-box i { color: #94a3b8; margin-right: 8px; } /* 促销横幅 */ .promo-banner { background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%); margin: 18px 16px; border-radius: 24px; padding: 22px; color: white; position: relative; overflow: hidden; box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25); transition: transform 0.3s ease, box-shadow 0.3s ease; } .promo-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(99, 102, 241, 0.32); } .banner-sparkle { position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; background: rgba(255, 255, 255, 0.18); transform: rotate(45deg); } .promo-banner h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; } .promo-banner p { font-size: 14px; opacity: 0.9; } /* 热门推荐标题 */ .section-title { font-size: 19px; font-weight: 700; color: var(--text); padding: 18px 16px 10px; } /* 应用列表 */ #app-list { display: grid; gap: 14px; padding: 0 16px; } /* 应用卡片 */ .app-card { display: flex; align-items: center; padding: 18px; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); border-radius: 26px; transition: transform 0.25s ease, box-shadow 0.25s ease; box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 232, 240, 0.6); } .app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .app-card:active { transform: scale(0.98); } .app-icon { width: 68px; height: 68px; border-radius: 18px; background: #f1f5f9; margin-right: 18px; flex-shrink: 0; overflow: hidden; box-shadow: var(--shadow-sm); } .app-icon img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; } .app-icon:hover img { transform: scale(1.1); } .app-content { flex: 1; min-width: 0; } .app-title { font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; margin-bottom: 4px; } .app-badge { background: linear-gradient(135deg, #f43f5e, #f59e0b); color: white; font-size: 12px; padding: 3px 8px; border-radius: 999px; margin-left: 8px; } .app-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .app-stats { display: flex; justify-content: space-between; color: #94a3b8; font-size: 12px; } .install-btn { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; padding: 11px 26px; border-radius: 999px; border: none; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.25s ease; flex-shrink: 0; box-shadow: var(--shadow-btn); } .install-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99, 102, 241, 0.38); } .install-btn:active { transform: scale(0.95); } /* 底部导航 */ .pwa-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; justify-content: space-around; padding: 12px 0 10px; border-top: 1px solid rgba(226, 232, 240, 0.6); z-index: 90; } .nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #94a3b8; padding: 8px 12px; border-radius: 16px; transition: all 0.25s ease; } .nav-item.active { color: white; background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3); } .nav-item:hover { background: rgba(99, 102, 241, 0.1); } .nav-icon { font-size: 22px; margin-bottom: 4px; } .nav-label { font-size: 12px; font-weight: 600; } /* 加载动画 */ .skeleton { animation: skeleton-loading 1.5s linear infinite alternate; background: #f0f0f0; border-radius: 8px; } @keyframes skeleton-loading { 0% { opacity: 0.6; } 100% { opacity: 1; } } /* ========== PC 大屏适配 ========== */ @media (min-width: 768px) { .pwa-container { max-width: 960px; padding: 0 20px 40px; } .pwa-header { max-width: 960px; margin: 0 auto; border-radius: 0 0 20px 20px; } .search-box { max-width: 440px; } .promo-banner { max-width: 920px; margin: 24px auto; border-radius: 28px; padding: 26px; } .section-title { max-width: 920px; margin: 0 auto; padding-left: 0; padding-right: 0; } #app-list { grid-template-columns: repeat(2, 1fr); padding: 0; gap: 16px; } .pwa-nav { position: static; max-width: 560px; margin: 30px auto 0; border-radius: 999px; border-top: none; padding: 14px 20px; box-shadow: var(--shadow-sm); } } @media (min-width: 1024px) { .pwa-container { max-width: 1140px; } .promo-banner { max-width: 1100px; } .section-title { max-width: 1100px; } #app-list { grid-template-columns: repeat(3, 1fr); } }