/* ===== 七虎AI 前台首页 · 遵循 DESIGN.md(亮色/单一靛蓝/渐变/玻璃拟态/SEO) ===== */ /* LandingPage 不在 FrontLayout 壳内,而 global.css 全局锁死了 html/body/#root 的滚动; 故本页自成一个可滚动容器,避免内容超出 100vh 被裁切且无法翻阅。 */ .lp { color: var(--color-text-primary); background: var(--color-bg-primary); height: 100vh; overflow-y: auto; overflow-x: hidden; } /* 玻璃拟态工具类(DESIGN.md §4) */ .glass { background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-md); } /* ===== 顶栏 ===== */ .lp-header { position: sticky; top: 0; z-index: var(--z-sticky); border-bottom: 1px solid var(--color-border-light); } .lp-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-2xl); height: 64px; display: flex; align-items: center; gap: var(--space-2xl); } .lp-brand { display: flex; align-items: center; gap: var(--space-sm); } .brand-name { font-weight: 700; font-size: var(--text-lg); letter-spacing: .2px; } .lp-nav { display: flex; gap: var(--space-xl); flex: 1; } .lp-nav a { color: var(--color-text-secondary); text-decoration: none; font-size: var(--text-base); font-weight: 500; cursor: pointer; transition: color var(--transition-fast); } .lp-nav a:hover { color: var(--color-accent); } .lp-header-actions { display: flex; gap: var(--space-sm); align-items: center; } /* 按钮(DESIGN.md §4) */ .lp-btn { font-family: var(--font-sans); font-size: var(--text-base); font-weight: 600; border-radius: var(--radius-md); padding: 9px 18px; cursor: pointer; transition: all var(--transition-normal); border: 1px solid transparent; white-space: nowrap; } .lp-btn-lg { padding: 13px 26px; font-size: var(--text-md); } .lp-btn-primary { background: var(--color-accent); color: #fff; } .lp-btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); } .lp-btn-outline { background: transparent; color: var(--color-accent); border-color: var(--color-accent); } .lp-btn-outline:hover { background: var(--color-accent-subtle); transform: translateY(-1px); } .lp-btn-ghost { background: transparent; color: var(--color-text-secondary); } .lp-btn-ghost:hover { background: var(--color-bg-hover); color: var(--color-text-primary); } .lp-menu-toggle { display: none; background: transparent; border: none; color: var(--color-text-primary); cursor: pointer; margin-left: auto; } .lp-mobile-menu { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-md) var(--space-2xl) var(--space-2xl); border-top: 1px solid var(--color-border-light); background: var(--color-bg-secondary); } .lp-mobile-menu a { color: var(--color-text-secondary); text-decoration: none; padding: 12px 0; font-weight: 500; cursor: pointer; } .lp-mobile-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); } .lp-mobile-actions .lp-btn { flex: 1; } /* ===== 通用容器 / 标题 ===== */ .lp-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-2xl); } .lp-section { padding: var(--space-5xl) 0; } /* 锚点跳转时避开 sticky 顶栏遮挡 */ .lp-section[id] { scroll-margin-top: 76px; } .lp-section-alt { background: var(--color-bg-tertiary); } .lp-section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-4xl); } .lp-h2 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -.2px; } .lp-sub { color: var(--color-text-secondary); font-size: var(--text-md); margin-top: var(--space-sm); } /* ===== Hero ===== */ .lp-hero { background: linear-gradient(180deg, #EEEDFF 0%, #F8F9FB 42%); padding: var(--space-5xl) 0 var(--space-4xl); overflow: hidden; } .lp-hero-grid { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-2xl); display: grid; /* minmax(0,..) 锁死轨道最小宽=0,防止右侧轮播的 flex 内容把列撑破而"超出免费注册边框" */ grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-4xl); align-items: center; } /* 左右两列都允许收缩,杜绝内容撑破网格导致的水平溢出 */ .lp-hero-text { min-width: 0; } .lp-eyebrow { display: inline-block; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); background: var(--color-accent-light); padding: 4px 12px; border-radius: var(--radius-full); margin-bottom: var(--space-lg); } .lp-title { font-size: var(--text-3xl); font-weight: 800; line-height: 1.25; letter-spacing: -.5px; } .lp-accent { color: var(--color-accent); } .lp-desc { color: var(--color-text-secondary); font-size: var(--text-md); line-height: 1.7; margin: var(--space-lg) 0 var(--space-2xl); max-width: 520px; } .kw { color: var(--color-accent); font-weight: 600; } .lp-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; } .lp-stats { display: flex; gap: var(--space-3xl); margin-top: var(--space-3xl); } .lp-stats > div { display: flex; flex-direction: column; } .lp-stat-num { font-size: var(--text-xl); font-weight: 800; color: var(--color-text-primary); } .lp-stat-label { font-size: var(--text-sm); color: var(--color-text-tertiary); margin-top: 2px; } /* 右侧广告位:min-width:0 让其严格贴合网格右轨道,右边框与顶栏"免费注册"垂直对齐、绝不外溢 */ .lp-hero-ad { display: flex; flex-direction: column; min-width: 0; } .lp-ad-head { display: flex; justify-content: center; align-items: center; margin-bottom: var(--space-lg); } .lp-ad-title { font-size: var(--text-lg); font-weight: 700; color: var(--color-text-primary); text-align: center; } .lp-hero-ad .lp-carousel { width: 100%; } .lp-hero-ad .lp-carousel-card { min-height: 340px; } .lp-hero-ad .lp-cc-content { max-width: 62%; } .lp-hero-ad .lp-cc-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; } .lp-hero-ad .lp-cc-cover + .lp-cc-content { color: #fff; } .lp-hero-ad .lp-cc-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%); } /* ===== 轮播广告位 ===== */ .lp-band { padding: var(--space-4xl) 0; } .lp-carousel { position: relative; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--color-border); } .lp-track { display: flex; transition: transform var(--transition-slow); } .lp-slide { min-width: 100%; } .lp-carousel-card { border-radius: var(--radius-xl); padding: var(--space-4xl); color: #fff; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 280px; box-shadow: var(--shadow-lg); } .lp-cc-content { position: relative; z-index: 2; max-width: 60%; } .lp-cc-badge { display: inline-block; background: rgba(255,255,255,.22); padding: 4px 12px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; margin-bottom: var(--space-md); } .lp-cc-title { font-size: var(--text-xl); font-weight: 700; } .lp-cc-sub { font-size: var(--text-sm); opacity: .9; margin-top: var(--space-xs); } .lp-cc-cta { margin-top: var(--space-lg); display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--color-accent); border: none; border-radius: var(--radius-md); padding: 9px 18px; font-weight: 600; font-size: var(--text-sm); cursor: pointer; transition: all var(--transition-normal); } .lp-cc-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.18); } .lp-cc-visual { position: relative; width: 120px; height: 120px; } .lp-cc-visual .c1, .lp-cc-visual .c2, .lp-cc-visual .c3 { position: absolute; border-radius: 50%; background: rgba(255,255,255,.25); } .lp-cc-visual .c1 { width: 70px; height: 70px; top: 0; right: 0; } .lp-cc-visual .c2 { width: 48px; height: 48px; bottom: 6px; right: 30px; } .lp-cc-visual .c3 { width: 30px; height: 30px; bottom: 0; left: 0; } .lp-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.5); color: var(--color-accent); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: none; opacity: 0; pointer-events: none; transition: opacity var(--transition-normal), background var(--transition-normal), transform var(--transition-normal); } .lp-carousel:hover .lp-arrow { opacity: 1; pointer-events: auto; } .lp-arrow:hover { background: rgba(255,255,255,.9); transform: translateY(-50%) scale(1.05); } .lp-arrow-l { left: 12px; } .lp-arrow-r { right: 12px; } .lp-dots { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-lg); } .lp-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: rgba(91,95,237,.14); cursor: pointer; transition: all var(--transition-fast); } .lp-dot.on { width: 22px; border-radius: var(--radius-full); background: var(--color-accent); } /* ===== 栅格 ===== */ .lp-grid { display: grid; gap: var(--space-2xl); } .lp-grid-3 { grid-template-columns: repeat(3, 1fr); } .lp-grid-4 { grid-template-columns: repeat(4, 1fr); } .lp-grid-5 { grid-template-columns: repeat(5, 1fr); } /* 痛点卡 */ .lp-pain { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-2xl); transition: all var(--transition-normal); } .lp-pain:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--color-border-hover); } .lp-pain-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-accent-light); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-lg); } .lp-pain-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-sm); } .lp-pain-desc { color: var(--color-text-secondary); font-size: var(--text-sm); line-height: 1.65; } /* 价值卡 */ .lp-value { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-2xl); transition: all var(--transition-normal); } .lp-value:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } .lp-value-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--gradient-brand, #EEEDFF); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-lg); } .lp-value-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-sm); } .lp-value-desc { color: var(--color-text-secondary); font-size: var(--text-sm); line-height: 1.65; } /* 能力卡 */ .lp-feature { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-2xl); transition: all var(--transition-normal); } .lp-feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } .lp-feature-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-accent-light); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-lg); } .lp-feature-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-sm); } .lp-feature-desc { color: var(--color-text-secondary); font-size: var(--text-sm); line-height: 1.65; } /* ===== 热门技能榜 ===== */ .lp-rank { list-style: none; display: flex; flex-direction: column; gap: var(--space-md); counter-reset: rank; } .lp-rank-item { display: grid; grid-template-columns: 44px 64px 1fr auto; gap: var(--space-lg); align-items: center; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-xl); cursor: pointer; transition: all var(--transition-normal); } .lp-rank-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--color-accent-light); } .lp-rank-no { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-bg-tertiary); color: var(--color-text-secondary); font-weight: 700; font-size: var(--text-md); } .lp-rank-no.top { background: linear-gradient(135deg, #5B5FED, #4F8DF9); color: #fff; box-shadow: var(--shadow-md); } .lp-rank-cover { position: relative; width: 64px; height: 64px; border-radius: var(--radius-md); overflow: hidden; } .lp-rank-badge { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-full); color: #fff; } .badge-skill { background: var(--color-success); } .badge-agent { background: var(--color-accent); } .badge-mcp { background: var(--color-warning); } .lp-rank-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .lp-rank-name { font-weight: 600; font-size: var(--text-md); } .lp-rank-desc { color: var(--color-text-tertiary); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lp-rank-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--color-text-secondary); font-size: var(--text-sm); } .lp-rank-installs { display: inline-flex; align-items: center; gap: 4px; color: var(--color-accent); font-weight: 600; } .lp-rank-rating { color: var(--color-warning); font-weight: 600; } /* ===== 应用市场网格 ===== */ .lp-app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2xl); } .lp-app-card { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all var(--transition-normal); } .lp-app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); } .lp-app-cover { position: relative; height: 120px; } .lp-app-badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); color: #fff; } .lp-app-price { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-full); background: rgba(255,255,255,.9); color: var(--color-text-primary); } .lp-app-body { padding: var(--space-lg); } .lp-app-name { font-size: var(--text-md); font-weight: 600; margin-bottom: 6px; } .lp-app-desc { color: var(--color-text-tertiary); font-size: var(--text-sm); line-height: 1.6; height: 42px; overflow: hidden; } .lp-app-meta { display: flex; justify-content: space-between; margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-text-secondary); } .lp-app-meta span { display: inline-flex; align-items: center; gap: 4px; } .lp-more { text-align: center; margin-top: var(--space-3xl); } /* ===== CTA ===== */ .lp-cta { padding: var(--space-5xl) 0; background: linear-gradient(135deg, #5B5FED 0%, #4F8DF9 100%); } .lp-cta .lp-inner { text-align: center; color: #fff; } .lp-cta-title { font-size: var(--text-2xl); font-weight: 800; } .lp-cta-desc { opacity: .92; margin: var(--space-md) 0 var(--space-2xl); font-size: var(--text-md); } .lp-cta .lp-btn-primary { background: #fff; color: var(--color-accent); } .lp-cta .lp-btn-primary:hover { background: #f0f0ff; } /* ===== Footer ===== */ .lp-footer { background: #fff; border-top: 1px solid var(--color-border); padding: var(--space-4xl) 0 var(--space-2xl); } .lp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-2xl); } .lp-footer-brand p { color: var(--color-text-tertiary); font-size: var(--text-sm); margin-top: var(--space-md); max-width: 280px; line-height: 1.6; } .lp-footer-col h4 { font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-md); } .lp-footer-col a, .lp-footer-col span { display: block; color: var(--color-text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-sm); cursor: pointer; text-decoration: none; transition: color var(--transition-fast); } .lp-footer-col a:hover { color: var(--color-accent); } .lp-footer-bottom { margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border-light); color: var(--color-text-tertiary); font-size: var(--text-xs); text-align: center; } /* ===== 响应式 ===== */ @media (max-width: 1024px) { .lp-hero-grid { grid-template-columns: 1fr; } .lp-hero-visual { min-height: 260px; margin-top: var(--space-2xl); } .lp-grid-5 { grid-template-columns: repeat(3, 1fr); } .lp-grid-4 { grid-template-columns: repeat(2, 1fr); } .lp-app-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 768px) { .lp-nav, .lp-header-actions { display: none; } .lp-menu-toggle { display: inline-flex; } .lp-section { padding: var(--space-3xl) 0; } .lp-grid-5, .lp-grid-4, .lp-grid-3 { grid-template-columns: repeat(2, 1fr); } .lp-app-grid { grid-template-columns: repeat(2, 1fr); } .lp-footer-grid { grid-template-columns: 1fr 1fr; } .lp-stats { gap: var(--space-2xl); } .lp-rank-item { grid-template-columns: 36px 52px 1fr; } .lp-rank-meta { display: none; } } @media (max-width: 480px) { .lp-inner, .lp-header-inner, .lp-hero-grid { padding-left: var(--space-lg); padding-right: var(--space-lg); } .lp-grid-5, .lp-grid-4, .lp-grid-3, .lp-app-grid { grid-template-columns: 1fr; } .lp-footer-grid { grid-template-columns: 1fr; } .lp-stats { flex-wrap: wrap; gap: var(--space-lg); } .lp-title { font-size: var(--text-2xl); } .lp-cc-content { max-width: 100%; } .lp-cc-visual { display: none; } } /* 尊重减弱动效偏好 */ @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }