208 lines
18 KiB
CSS
208 lines
18 KiB
CSS
/* 当前 LandingPage 的局部配色、两栏首屏、可选预览卡片、功能区和响应式布局;预览交互由组件状态驱动,不使用真实画布模型。 */
|
|
/* 页面作用域内定义墨色/弱文字/边线变量,局部规则覆盖全局品牌类时使用 :global。 */
|
|
.page { --ink: #21221f; --muted: #797b73; --line: #e5e6df; background: #fff; color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
|
|
/* 移除触摸高亮并保留明确的键盘可见焦点描边。 */
|
|
.page a, .page button { -webkit-tap-highlight-color: transparent; }
|
|
.page a:focus-visible, .page button:focus-visible { outline: 2px solid #6879c2; outline-offset: 4px; }
|
|
/* 导航内容限制最大宽度,品牌、导航链接和右侧操作区横排。 */
|
|
.nav { display: flex; align-items: center; gap: 40px; height: 88px; max-width: 1320px; padding: 0 48px; margin: auto; }
|
|
.page :global(.brand) { color: var(--ink); gap: 8px; font-size: 19px; letter-spacing: -0.6px; }
|
|
.page :global(.brand img) { width: 30px; height: 30px; }
|
|
.page :global(.brand small) { color: #92958c; font-size: 11px; font-weight: 400; letter-spacing: 0; }
|
|
.nav nav { display: flex; gap: 28px; font-size: 13px; color: #72766c; }
|
|
.nav nav a:hover { color: var(--ink); }
|
|
/* margin-left:auto 将登录和小 CTA 推到最右侧,hover 只改变表面色。 */
|
|
.navActions { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 13px; }
|
|
.smallCta { display: inline-flex; align-items: center; gap: 12px; padding: 10px 15px; border: 1px solid #cfd2c8; border-radius: 5px; }
|
|
.smallCta:hover { background: #f5f6f0; }
|
|
/* 桌面首屏文案/预览用接近等宽的两列;clamp 让标题在边界内随视口缩放。 */
|
|
.hero { max-width: 1320px; margin: auto; padding: 82px 48px 90px; display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: 46px; }
|
|
.eyebrow { font: 10px/1.6 ui-monospace, "SFMono-Regular", monospace; letter-spacing: 1.25px; color: #90958a; }
|
|
.heroCopy .eyebrow { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
|
|
.statusDot { width: 5px; height: 5px; background: #83966c; border-radius: 50%; }
|
|
.hero h1 { font-size: clamp(38px, 4.4vw, 61px); font-weight: 600; line-height: 1.23; letter-spacing: -3px; margin: 22px 0; }
|
|
.hero h1 > span { position: relative; white-space: nowrap; }
|
|
/* 标题装饰线通过伪元素绘制,不增加实际文本或影响行内宽度。 */
|
|
.hero h1 > span::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 5px; border-bottom: 2px solid #b9c87c; border-radius: 50%; rotate: -2deg; }
|
|
.heroCopy > p { color: #6f7369; font-size: 15px; line-height: 1.9; font-weight: 400; }
|
|
/* CTA 可换行,主按钮悬停上移 1px;旁边文字链接保持次级视觉权重。 */
|
|
.heroActions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
|
|
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 20px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 5px; font-size: 13px; font-weight: 500; box-shadow: 0 2px 2px #21221f08; transition: background 160ms, translate 160ms; }
|
|
.primary:hover { background: #41453b; translate: 0 -1px; }
|
|
.textLink { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #6e7565; }
|
|
.textLink:hover { color: #21221f; }
|
|
/* 手写风附注和星形装饰仅参与视觉排版。 */
|
|
.heroNote { margin-top: 34px; font-family: "Kaiti SC", "STKaiti", Georgia, serif; color: #969a8b; font-size: 13px; display: flex; align-items: center; gap: 8px; }
|
|
.scribbleStar { font-family: Georgia, serif; color: #929a74; font-size: 24px; }
|
|
/* 预览外壳轻微旋转并设置阴影,min-width:0 防止网格项被内容撑宽。 */
|
|
.preview { min-width: 0; border: 1px solid #e0e3d9; border-radius: 9px; background: #fafafa; box-shadow: 0 12px 50px #3c442508, 0 2px 8px #3c442505; rotate: -1deg; }
|
|
.previewHeading { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #777d70; }
|
|
.previewHeading > span:first-child { display: flex; align-items: center; gap: 7px; color: #69745e; }
|
|
.previewHeading > span:last-child { font: 8px ui-monospace, monospace; letter-spacing: 1px; }
|
|
.tinyLogo { font-size: 20px; color: #4c5841; }
|
|
/* 点阵预览固定宽高比,卡片和 SVG 连线在相同相对容器内绝对定位。 */
|
|
.scene { position: relative; aspect-ratio: 600 / 440; background-image: radial-gradient(#dce1d2 0.65px, transparent 0.65px); background-size: 17px 17px; }
|
|
.wires { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #a3ad90; stroke-width: 1; }
|
|
.wires circle { fill: #a3ad90; }
|
|
/* 预览卡片作为按钮可点击,hover 上移,activeCard 通过边框/阴影反馈当前选择。 */
|
|
.scene > button { position: absolute; display: flex; flex-direction: column; text-align: left; border: 1px solid #e1e4d8; border-radius: 5px; padding: 14px; background: #fff; color: #373a35; box-shadow: 0 2px 5px #32471504; transition: box-shadow 180ms, border-color 180ms, translate 180ms; }
|
|
.scene > button:hover { translate: 0 -3px; }
|
|
.scene .activeCard { border-color: #9aa77d; box-shadow: 0 0 0 2px #9aa77d15, 0 4px 12px #32471508; }
|
|
.cardLabel { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #9aab88; }
|
|
/* 三类预览卡片各有位置、旋转和排版;纸角、艺术图与标签是局部装饰。 */
|
|
.ideaCard { left: 5%; top: 17%; width: 42%; min-height: 41%; rotate: -3deg; }
|
|
.ideaCard strong { margin-top: 14px; margin-bottom: 13px; font-size: clamp(13px, 1.6vw, 22px); font-family: "Songti SC", Georgia, serif; font-weight: 400; line-height: 1.55; }
|
|
.cardText { font-size: 9px; line-height: 1.8; color: #9ba48f; }
|
|
.paperCorner { position: absolute; bottom: 4px; right: 4px; width: 10px; height: 10px; border-right: 1px solid #d9dece; border-bottom: 1px solid #d9dece; }
|
|
/* 艺术卡片给 SVG 可用高度,使用无填充线稿;便签另有底色与字号。 */
|
|
.scene .artCard { top: 8%; right: 7%; width: 29%; min-height: 49%; background: #edeaf7; rotate: 4deg; }
|
|
.artCard svg { width: 100%; max-height: 150px; flex: 1; stroke: #53584d; stroke-width: 1.2; fill: none; }
|
|
.artCaption { font: italic 8px Georgia, serif; text-align: center; color: #909e79; }
|
|
.scene .noteCard { left: 38%; bottom: 9%; width: 37%; min-height: 27%; background: #f0eedf; rotate: 2deg; }
|
|
.noteCard strong { margin: 9px 0 12px; font-size: clamp(11px, 1.4vw, 18px); font-family: "Songti SC", Georgia, serif; font-weight: 400; line-height: 1.5; }
|
|
.noteTag { align-self: flex-start; font-size: 8px; padding: 3px 5px; border: 1px solid #d6d6ba; border-radius: 3px; color: #8f9278; }
|
|
/* 随手附注与假协作光标定位在预览中,光标不拦截鼠标事件。 */
|
|
.looseNote { position: absolute; left: 8%; bottom: 12%; color: #aab39c; rotate: -10deg; font: italic 14px Georgia, serif; }
|
|
.cursor { position: absolute; right: 17%; bottom: 20%; color: #879567; rotate: -12deg; pointer-events: none; }
|
|
.cursor span { position: absolute; top: 20px; left: 12px; background: #879567; color: white; border-radius: 3px; padding: 3px 7px; font-size: 9px; }
|
|
/* 预览页脚横排指示点与页码,aria-pressed 标示当前点,最后一项推到右侧。 */
|
|
.previewFooter { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: 9px; color: #a1a992; }
|
|
.previewFooter > div { display: flex; gap: 5px; }
|
|
.previewFooter button { width: 5px; height: 5px; border-radius: 50%; background: #d8dfcc; }
|
|
.previewFooter button[aria-pressed="true"] { background: #879567; }
|
|
.previewFooter > span:last-child { margin-left: auto; font: 9px ui-monospace, monospace; }
|
|
/* 宣言横条用上下边线与两侧注记分隔首屏和后续内容。 */
|
|
.manifestoStrip { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1224px; margin: 0 auto; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
|
|
.manifestoStrip > span { font: 8px ui-monospace, monospace; letter-spacing: 0.6px; color: #a0a494; }
|
|
.manifestoStrip p { font-size: 13px; color: #646c58; letter-spacing: 0.3px; }
|
|
.manifestoStrip p span { color: #9ba28e; }
|
|
/* 功能区域限制最大宽度;标题与说明左右对齐,功能卡使用三列网格。 */
|
|
.space { max-width: 1320px; margin: auto; padding: 105px 48px; }
|
|
.sectionHeading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
|
|
.sectionHeading h2, .faq h2 { font-size: 34px; line-height: 1.5; letter-spacing: -1px; font-weight: 500; margin-top: 18px; }
|
|
.sectionHeading > p { padding-bottom: 5px; color: #6c7166; line-height: 1.9; font-size: 13px; }
|
|
.featureGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
|
|
.featureGrid article { min-width: 0; }
|
|
/* 每个功能插画使用固定高度裁剪容器,内部收集/连线/创作布局分别绘制。 */
|
|
.featureArt { position: relative; height: 185px; border: 1px solid #eaede4; border-radius: 6px; background: #f9faf6; overflow: hidden; margin-bottom: 25px; }
|
|
/* 收集示例用轻微旋转和水平位移错开三条素材,保持纵向居中。 */
|
|
.collectArt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
|
|
.collectArt span { display: flex; align-items: center; gap: 9px; padding: 8px 12px; min-width: 70%; border: 1px solid #e1e6d7; border-radius: 4px; background: #fff; font-size: 10px; color: #859471; rotate: -2deg; }
|
|
.collectArt span:nth-child(2) { rotate: 2deg; translate: 8px 0; }
|
|
.collectArt span:nth-child(3) { rotate: -1deg; translate: -5px 0; }
|
|
.collectArt svg { width: 14px; }
|
|
/* 连线示例 SVG 铺满插画,两个端点卡片和装饰字形单独定位。 */
|
|
.connectArt svg { width: 100%; height: 100%; stroke: #b1b99e; }
|
|
.connectArt span { position: absolute; top: 39px; left: 23px; padding: 10px 13px; border: 1px solid #e1e5d6; border-radius: 5px; background: #fff; color: #8a9877; font-size: 11px; }
|
|
.connectArt span:nth-of-type(2) { top: 110px; left: auto; right: 35px; background: #edf0e1; }
|
|
.connectArt i { position: absolute; top: 38px; right: 25px; color: #a0ad86; font: 32px Georgia, serif; }
|
|
/* 创作示例居中纸张和标题,编辑徽标独立固定在插画右下附近。 */
|
|
.createArt { display: grid; place-items: center; }
|
|
.createArt > div { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; background: #f1efe3; width: 72%; rotate: -2deg; border: 1px solid #e0dfcf; }
|
|
.createArt > div > span { font: 7px ui-monospace, monospace; letter-spacing: 1px; color: #9da184; }
|
|
.createArt strong { font: 25px "Songti SC", Georgia, serif; color: #6e7857; letter-spacing: 1px; }
|
|
.editBadge { position: absolute; right: 14px; bottom: 24px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #dce3cf; background: #fff; border-radius: 4px; font-size: 8px; color: #889874; }
|
|
/* 编号、功能标题与正文使用逐级字号,正文行高便于多行阅读。 */
|
|
.featureNumber { color: #a4ab98; font: 9px ui-monospace, monospace; letter-spacing: 0.7px; }
|
|
.featureGrid h3 { font-size: 18px; font-weight: 500; margin: 12px 0; letter-spacing: -0.4px; }
|
|
.featureGrid p { font-size: 12px; color: #6c7166; line-height: 1.9; }
|
|
/* 工作流区域用浅底与上下边线分隔,两列分别承载引语和步骤。 */
|
|
.workflow { background: #f7f7f4; border-top: 1px solid #e9ece1; border-bottom: 1px solid #e9ece1; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 85px max(48px, calc((100vw - 1224px) / 2)); }
|
|
/* 引号绝对定位在文案旁,标题自身保持相对定位,签名字体与正文区分。 */
|
|
.quote { position: relative; }
|
|
.quoteMark { font: 80px/1 Georgia, serif; position: absolute; top: -30px; left: -12px; color: #d9dfca; }
|
|
.quote h2 { position: relative; font: 31px/1.7 "Songti SC", Georgia, serif; color: #586449; }
|
|
.quote em { display: block; font-style: normal; }
|
|
.quote p { font-size: 12px; color: #747a6d; line-height: 2; margin-top: 18px; }
|
|
.signature { display: block; font: italic 13px Georgia, serif; color: #a3ad94; margin-top: 30px; }
|
|
/* 步骤纵向居中,每项含编号、文字和右侧不收缩的图标。 */
|
|
.workflowList { display: flex; flex-direction: column; justify-content: center; }
|
|
.workflowList > div { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid #dfe5d4; }
|
|
.workflowList > div:first-child { padding-top: 0; }
|
|
.workflowList > div > span { font: 9px/22px ui-monospace, monospace; color: #a4ad95; }
|
|
.workflowList h3 { font-size: 15px; font-weight: 500; color: #5e6e4e; margin-bottom: 8px; }
|
|
.workflowList p { font-size: 11px; line-height: 1.8; color: #747a6d; }
|
|
.workflowList svg { flex-shrink: 0; color: #a5b38e; margin-left: auto; }
|
|
/* FAQ 桌面为标题/问题两列,问题按钮整行可点击;展开内容是否存在由组件决定。 */
|
|
.faq { max-width: 1320px; padding: 105px 48px; margin: auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; }
|
|
.faqItem { border-bottom: 1px solid var(--line); }
|
|
.faqItem button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 23px 0; font-size: 14px; text-align: left; }
|
|
.faqItem svg { flex-shrink: 0; color: #929b84; transition: rotate 160ms; }
|
|
.faqItem p { padding: 0 28px 24px 0; font-size: 12px; line-height: 1.9; color: #8b947e; }
|
|
/* 收尾 CTA 居中,星形装饰绝对定位;页脚内容横排并用 auto margin 推开链接。 */
|
|
.closing { position: relative; border-top: 1px solid var(--line); text-align: center; padding: 85px 24px 90px; }
|
|
.closing h2 { font-size: 38px; letter-spacing: -1.3px; font-weight: 500; margin: 18px 0; }
|
|
.closing p { font-size: 13px; color: #74796d; margin-bottom: 28px; }
|
|
.closingDoodle { position: absolute; left: 12%; top: 75px; color: #b6c198; font: 75px Georgia, serif; rotate: -16deg; }
|
|
.footer { display: flex; align-items: center; gap: 30px; max-width: 1320px; padding: 30px 48px; margin: auto; border-top: 1px solid var(--line); }
|
|
.footer > p { font-size: 11px; color: #a1a992; }
|
|
.footer > a:not(:first-child) { margin-left: auto; display: flex; gap: 7px; align-items: center; font-size: 11px; color: #7e8b6a; }
|
|
.footer > span { color: #abb39d; font: 8px ui-monospace, monospace; }
|
|
/* 断行标记默认隐藏,本文件没有另行显示它的媒体查询。 */
|
|
.mobileBreak { display: none; }
|
|
/* 大屏仅增大首屏上下留白。 */
|
|
@media (min-width: 1400px) { .hero { padding-top: 105px; padding-bottom: 110px; } }
|
|
/* 中屏压缩页面边距、标题、按钮及区块间距,仍保留主要双栏/三栏结构。 */
|
|
@media (max-width: 1050px) {
|
|
.nav, .hero, .space, .faq, .footer { padding-left: 30px; padding-right: 30px; }
|
|
.hero { gap: 26px; }
|
|
.hero h1 { font-size: 43px; }
|
|
.heroActions { gap: 15px; }
|
|
.primary { font-size: 12px; padding: 12px 15px; gap: 10px; }
|
|
.manifestoStrip { margin: 0 30px; }
|
|
.manifestoStrip > span { display: none; }
|
|
.workflow { gap: 50px; padding-left: 30px; padding-right: 30px; }
|
|
.featureGrid { gap: 20px; }
|
|
.faq { gap: 45px; }
|
|
}
|
|
/* 窄屏隐藏导航链接,将首屏、功能、工作流和 FAQ 转为单列,并缩小装饰及页脚内容。 */
|
|
@media (max-width: 760px) {
|
|
.nav { height: 74px; gap: 15px; padding-left: 22px; padding-right: 22px; }
|
|
.nav nav { display: none; }
|
|
.navActions { gap: 15px; }
|
|
.smallCta { padding: 8px 10px; gap: 6px; }
|
|
.hero { grid-template-columns: 1fr; padding: 52px 24px 55px; gap: 45px; }
|
|
.hero h1 { font-size: clamp(37px, 8.2vw, 58px); letter-spacing: -2px; }
|
|
.heroCopy .eyebrow { font-size: 8px; letter-spacing: 0.8px; }
|
|
.heroCopy > p { font-size: 14px; }
|
|
.heroNote { margin-top: 22px; }
|
|
.preview { width: 100%; max-width: 600px; margin: auto; }
|
|
.ideaCard strong { font-size: clamp(14px, 3.4vw, 23px); }
|
|
.noteCard strong { font-size: clamp(12px, 2.9vw, 19px); }
|
|
.scene > button { padding: 12px; }
|
|
.manifestoStrip { margin: 0 24px; justify-content: center; }
|
|
.manifestoStrip p { font-size: 11px; }
|
|
.space { padding: 65px 24px; }
|
|
.sectionHeading { align-items: flex-start; gap: 20px; margin-bottom: 30px; }
|
|
.sectionHeading h2, .faq h2 { font-size: 27px; }
|
|
.sectionHeading > p { font-size: 10px; padding-top: 32px; }
|
|
.featureGrid { grid-template-columns: 1fr; gap: 35px; }
|
|
.featureArt { height: 210px; margin-bottom: 18px; }
|
|
.collectArt span { min-width: 60%; padding: 12px; font-size: 12px; }
|
|
.workflow { grid-template-columns: 1fr; gap: 35px; padding: 65px 24px; }
|
|
.quote h2 { font-size: 30px; }
|
|
.quote em { display: inline; }
|
|
.faq { padding: 65px 24px; grid-template-columns: 1fr; gap: 20px; }
|
|
.faqItem button { font-size: 13px; }
|
|
.closing { padding: 65px 24px; }
|
|
.closing h2 { font-size: 31px; }
|
|
.closingDoodle { left: auto; right: 22px; top: 20px; font-size: 35px; }
|
|
.footer { flex-wrap: wrap; gap: 18px; padding: 25px 24px; }
|
|
.footer > p { display: none; }
|
|
.footer > span { flex-basis: 100%; }
|
|
}
|
|
/* 极窄屏进一步压缩边距和预览卡片文字,隐藏品牌副标,避免最小视口拥挤。 */
|
|
@media (max-width: 380px) {
|
|
.page :global(.brand small) { display: none; }
|
|
.hero { padding-left: 20px; padding-right: 20px; }
|
|
.heroCopy .eyebrow { font-size: 7px; letter-spacing: 0.3px; }
|
|
.heroActions { gap: 16px; }
|
|
.scene > button { padding: 9px; }
|
|
.cardLabel { font-size: 8px; }
|
|
.cardText, .artCaption { font-size: 7px; }
|
|
.ideaCard strong { margin-top: 8px; margin-bottom: 8px; }
|
|
.noteTag { font-size: 7px; padding: 2px; }
|
|
}
|
|
/* 按减少动态效果偏好关闭链接、按钮和 FAQ 图标的过渡。 */
|
|
@media (prefers-reduced-motion: reduce) { .page a, .page button, .faqItem svg { transition: none; } }
|