/* 中育Toolbox 官网样式。 版式、分层与动效改写自 FlClash 官网(chen08209/FlClash,GPL-3.0), 配色与内容改为中育Toolbox:Material 3 的色调表面 + 状态层 + 弹簧曲线。 */ @font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 500 800; font-stretch: 100% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } :root { --paper: var(--page); --ink: var(--on-surface); --muted: var(--on-surface-variant); --rule: color-mix(in srgb, var(--on-surface) 14%, transparent); --display: "Archivo", "Arial Black", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", monospace; --bar-h: 80px; --edge: clamp(20px, 3.9vw, 56px); --gutter: max(var(--edge), calc((100vw - 1200px) / 2)); --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --spring: cubic-bezier(0.22, 1, 0.36, 1); --float: var(--card); --float-fill: var(--block); color-scheme: light dark; } @media (prefers-color-scheme: dark) { :root { --float: var(--block); --float-fill: var(--inset); } } /* Registered so the page eases into each accent's palette as scene.js steps through them on scroll. */ @property --page { syntax: ""; inherits: true; initial-value: transparent; } @property --card { syntax: ""; inherits: true; initial-value: transparent; } @property --block { syntax: ""; inherits: true; initial-value: transparent; } @property --inset { syntax: ""; inherits: true; initial-value: transparent; } @property --on-surface { syntax: ""; inherits: true; initial-value: transparent; } @property --on-surface-variant { syntax: ""; inherits: true; initial-value: transparent; } @property --primary { syntax: ""; inherits: true; initial-value: transparent; } @property --on-primary { syntax: ""; inherits: true; initial-value: transparent; } @property --primary-container { syntax: ""; inherits: true; initial-value: transparent; } @property --on-primary-container { syntax: ""; inherits: true; initial-value: transparent; } @media (prefers-reduced-motion: no-preference) { :root { transition: --page 0.6s, --card 0.6s, --block 0.6s, --inset 0.6s, --on-surface 0.6s, --on-surface-variant 0.6s, --primary 0.6s, --on-primary 0.6s, --primary-container 0.6s, --on-primary-container 0.6s; } } @supports (transition-timing-function: linear(0, 1)) { :root { --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1); } } /* 每个种子色派生出的 Material 3 配色,对应 App 设置里的“主题色”。 默认这套取自 App 的默认蓝 #1565C0(ThemePrefs.defaultBlue);其余几套沿用同一套色阶。 */ :root { --page: #eef2f9; --card: #fbfdff; --block: #e8edf6; --inset: #dde4ee; --on-surface: #101419; --on-surface-variant: #414854; --primary: #1565c0; --on-primary: #ffffff; --primary-container: #d8e3ff; --on-primary-container: #001c3b; --success: #006e1c; --warning: #8b5000; --error: #ba1a1a; --error-container: #ffdad6; --on-error-container: #93000a; } :root[data-accent="purple"] { --page: #f3ecef; --card: #fef8f9; --block: #f3ecef; --inset: #e8e1e3; --on-surface: #221822; --on-surface-variant: #524151; --primary: #cb30e0; --on-primary: #ffffff; --primary-container: #ffd6fc; --on-primary-container: #6b2d72; } :root[data-accent="pink"] { --page: #f6ebeb; --card: #fff8f7; --block: #f6ebeb; --inset: #ebe0e0; --on-surface: #281718; --on-surface-variant: #5d3f40; --primary: #ff2d55; --on-primary: #ffffff; --primary-container: #ffdada; --on-primary-container: #7d2933; } :root[data-accent="red"] { --page: #f6ebea; --card: #fff8f7; --block: #f6ebea; --inset: #ebe0df; --on-surface: #291715; --on-surface-variant: #5d3f3d; --primary: #ff383c; --on-primary: #ffffff; --primary-container: #ffdad7; --on-primary-container: #7e2a27; } :root[data-accent="orange"] { --page: #f6ece7; --card: #fff8f5; --block: #f6ece7; --inset: #eae1dc; --on-surface: #241913; --on-surface-variant: #564336; --primary: #de7405; --on-primary: #ffffff; --primary-container: #ffdcc5; --on-primary-container: #703700; } :root[data-accent="yellow"] { --page: #f3ede6; --card: #fef8f5; --block: #f3ede6; --inset: #e7e2db; --on-surface: #1f1b10; --on-surface-variant: #4e4632; --primary: #b08c00; --on-primary: #ffffff; --primary-container: #ffe08b; --on-primary-container: #584400; } :root[data-accent="green"] { --page: #eeeee9; --card: #fbf9f6; --block: #eeeee9; --inset: #e3e3de; --on-surface: #161d16; --on-surface-variant: #3d4a3c; --primary: #00a741; --on-primary: #ffffff; --primary-container: #a5f5a8; --on-primary-container: #00531c; } @media (prefers-color-scheme: dark) { :root { --page: #101418; --card: #1b2026; --block: #232930; --inset: #2f3640; --on-surface: #e3e8f1; --on-surface-variant: #c0c7d4; --primary: #a8c8ff; --on-primary: #003063; --primary-container: #00468c; --on-primary-container: #d8e3ff; --success: #78dc77; --warning: #ffb870; --error: #ffb4ab; --error-container: #93000a; --on-error-container: #ffdad6; } :root[data-accent="purple"] { --page: #151315; --card: #282527; --block: #353234; --inset: #433f41; --on-surface: #fff3fa; --on-surface-variant: #d7c0d3; --primary: #d43be9; --on-primary: #ffffff; --primary-container: #6b2d72; --on-primary-container: #ffd6fc; } :root[data-accent="pink"] { --page: #171212; --card: #2a2525; --block: #373131; --inset: #443e3e; --on-surface: #fff4f3; --on-surface-variant: #e6bcbd; --primary: #ff4962; --on-primary: #ffffff; --primary-container: #7d2933; --on-primary-container: #ffdada; } :root[data-accent="red"] { --page: #171212; --card: #2a2524; --block: #373131; --inset: #453e3e; --on-surface: #fff4f3; --on-surface-variant: #e6bdb9; --primary: #ff504d; --on-primary: #ffffff; --primary-container: #7e2a27; --on-primary-container: #ffdad7; } :root[data-accent="orange"] { --page: #171310; --card: #292522; --block: #37322f; --inset: #443f3c; --on-surface: #fff4ef; --on-surface-variant: #ddc1b0; --primary: #ff9a49; --on-primary: #301400; --primary-container: #703700; --on-primary-container: #ffdcc5; } :root[data-accent="yellow"] { --page: #15130f; --card: #282521; --block: #35322e; --inset: #42403b; --on-surface: #fff5e5; --on-surface-variant: #d2c5ab; --primary: #e0b300; --on-primary: #241a00; --primary-container: #584400; --on-primary-container: #ffe08b; } :root[data-accent="green"] { --page: #121411; --card: #252624; --block: #313330; --inset: #3f403d; --on-surface: #f1f9ec; --on-surface-variant: #bccbb8; --primary: #3fd060; --on-primary: #002107; --primary-container: #00531c; --on-primary-container: #a5f5a8; } } *, *::before, *::after { box-sizing: border-box; } [hidden] { display: none !important; } html { scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } body { margin: 0; background: var(--paper); color: var(--ink); font: 16px / 1.5 var(--sans); -webkit-font-smoothing: antialiased; } a { color: inherit; } button, input { font: inherit; color: inherit; } p { margin: 0; } :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; } .skip { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transform: translateY(-200%); } .skip:focus-visible { transform: none; } /* Material's state layer: each control names its fill and the content color laid over it on hover and press. */ :where(.brand, .seg, .release-tag, .cta, .file, .go, .copy, .feat) { --state: 0%; background-color: color-mix(in srgb, var(--on) var(--state), var(--fill)); transition: background-color 0.2s, color 0.2s, border-radius 0.4s var(--spring); } @media (hover: hover) { :where(.brand, .seg, .release-tag, .cta, .file, .copy, .feat):hover, .file:hover .go { --state: 8%; } } :where(.brand, .seg, .release-tag, .cta, .file, .copy, .feat):active, .file:active .go { --state: 10%; } .bar { position: fixed; top: 12px; left: var(--gutter); right: var(--gutter); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 8px 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--float) 72%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); transition: translate 0.45s var(--ease-out), opacity 0.3s; } .bar.away:not(:focus-within) { translate: 0 calc(-100% - 16px); opacity: 0; pointer-events: none; } .brand, .seg { --fill: transparent; --on: var(--on-surface); display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; color: inherit; font: inherit; text-decoration: none; cursor: pointer; } /* Material's connected button group: --r is half an item's height and the radius of the group's ends and of the selected item; the corners between items are a third of it and tighten on press. */ .segs { --r: 24px; display: flex; flex-wrap: wrap; gap: 2px; } .seg { --fill: var(--seg-fill, var(--card)); height: calc(var(--r) * 2); padding: 0 calc(var(--r) - 2px); border-radius: calc(var(--r) / 3); } .seg:first-child { border-top-left-radius: var(--r); border-bottom-left-radius: var(--r); } .seg:last-child { border-top-right-radius: var(--r); border-bottom-right-radius: var(--r); } .seg:active { border-radius: calc(var(--r) * 0.6); } .seg:is([aria-current], [aria-selected="true"]), .seg:is([aria-current], [aria-selected="true"]):active { --fill: var(--primary); --on: var(--on-primary); border-radius: var(--r); color: var(--on-primary); font-weight: 600; } .seg-icon { display: grid; flex: none; place-items: center; } .brand { gap: 10px; padding-left: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; } .glyph { width: 22px; height: 22px; } .links { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; } .links .segs { --r: 20px; --seg-fill: var(--float-fill); flex-wrap: nowrap; } .links .nav { --seg-fill: transparent; font-size: 14px; } @media (max-width: 760px) { .links .nav { display: none; } } .stage { --dock-w: calc((100vw - 2 * var(--gutter)) * 0.42); --mark: min(calc(var(--dock-w) - 24px), 62vh, 560px); --spot: calc(var(--mark) * 0.72); position: relative; overflow-x: clip; } .dock { position: absolute; inset: 0; z-index: 2; pointer-events: none; } /* 首屏的大图标是个按钮:上传箭头画在图标形状里,点一下换形状、换配色。 */ .emblem { position: absolute; width: var(--mark); height: var(--mark); padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font: inherit; visibility: hidden; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; } .emblem.ready { visibility: visible; } .emblem-press { position: relative; display: block; width: 100%; height: 100%; transition: scale 0.4s var(--spring); } .emblem:active .emblem-press { scale: 0.94; } .emblem-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .emblem-shape path { --state: 0%; fill: color-mix(in srgb, var(--on-primary) var(--state), var(--primary)); transition: fill 0.2s; } @media (hover: hover) { .emblem:hover .emblem-shape path { --state: 8%; } } .emblem:active .emblem-shape path { --state: 10%; } .emblem-glyph { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; overflow: visible; color: var(--on-primary); transition: opacity 0.25s var(--ease-out); } .dock-part { grid-area: 1 / 1; opacity: 0; } /* data-part is the section the docked column names: 0 while the emblem travels, 1 features, 2 downloads, 3 the changelog. */ [data-part="1"] .dock-part:first-child, [data-part="2"] .dock-part:nth-child(2), [data-part="3"] .dock-part:last-child { opacity: 1; } .dock-title { display: none; } .dock-name { font-family: var(--display); font-size: clamp(44px, 4.6vw, 72px); font-stretch: 118%; font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; } .dock-sub { min-height: 1.5em; margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 12px; } .hero { --title: clamp(50px, min(9.4vw, 15.2vh), 136px); position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: calc(var(--bar-h) + clamp(16px, 5.8vh, 52px)) var(--gutter) clamp(96px, 14vh, 124px); } .spot { pointer-events: none; } .hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; } .hero-copy > * { pointer-events: auto; } .release-tag { --fill: var(--card); --on: var(--on-surface); display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 7px; border-radius: 18px; font-family: var(--mono); font-size: 12px; text-decoration: none; } .release-tag:active { border-radius: 11px; } #hero-release-text { padding-right: 9px; } #hero-release-text:empty { display: none; } .title { display: flex; flex-direction: column; margin: 16px 0 0 -0.05em; font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; } .title-word { font-size: var(--title); font-stretch: 118%; line-height: 0.92; } .title-for { margin: 0.35em 0 0 0.15em; color: var(--muted); font-size: max(22px, calc(var(--title) * 0.256)); font-weight: 500; line-height: 1; letter-spacing: -0.02em; } .lede { width: min(452px, 35vw); margin-top: clamp(20px, 4.3vh, 39px); font-size: 19px; line-height: 1.5; text-wrap: pretty; } .cta-block { display: grid; justify-items: start; gap: 10px; margin-top: clamp(22px, 5.6vh, 51px); } .cta { --fill: var(--primary); --on: var(--on-primary); display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px 0 22px; border-radius: 28px; color: var(--on-primary); font-size: 16px; font-weight: 600; text-decoration: none; } .cta:active { border-radius: 16px; } .cta-icon { display: grid; place-items: center; } .cta-sub, .cta-note { color: var(--muted); font-family: var(--mono); font-size: 11px; } .cta-note { max-width: 34em; font-family: var(--sans); font-size: 13px; } .scroll-hint { position: absolute; left: var(--gutter); bottom: clamp(32px, 7.8vh, 70px); display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; } .flow { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(48px, 8vw, 96px); } .part + .part { margin-top: clamp(96px, 16vh, 168px); } .headline { margin: 0; font-family: var(--display); font-size: clamp(52px, 6.4vw, 96px); font-stretch: 118%; font-weight: 800; line-height: 0.9; letter-spacing: -0.035em; } .lead { max-width: 560px; margin-top: 22px; font-size: 18px; line-height: 1.5; text-wrap: pretty; } .meta, .section-sub { min-height: 1.5em; margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 12px; } /* 功能:两列 bento,第一张占满整行。卡片只用色调表面分层次,不加阴影和描边。 */ .feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; } .feat { --fill: var(--card); --on: var(--on-surface); position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 216px; padding: 22px 24px 24px; border-radius: 28px; } .feat.wide { grid-column: 1 / -1; min-height: 0; } .feat-no { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--primary-container); color: var(--on-primary-container); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; } .feat h3 { margin: 0; font-family: var(--display); font-size: clamp(30px, 3vw, 42px); font-stretch: 118%; font-weight: 800; line-height: 1; letter-spacing: -0.03em; } .feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; } .feat.wide p { max-width: 62ch; } .feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; } .feat-tags span { padding: 3px 10px; border-radius: 999px; background: var(--block); color: var(--ink); font-family: var(--mono); font-size: 11px; line-height: 18px; } .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 13px; } .chips span { padding: 6px 13px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; } .tabs { margin-top: 28px; font-size: 16px; font-weight: 500; } .segs.small { --r: 18px; font-size: 14px; } .panel { margin-top: 36px; } .panel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 36px; margin-bottom: 14px; } .panel-hint { color: var(--muted); font-family: var(--mono); font-size: 12px; } .files { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; } .file, .tip { border-radius: 6px; } .file { --fill: var(--card); --on: var(--on-surface); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; } :is(.file, .tip):first-child { border-top-left-radius: 24px; border-top-right-radius: 24px; } :is(.file, .tip):last-child { border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; } .file-main { min-width: 0; } .file-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; } .file-title { font-size: 16px; font-weight: 600; text-decoration: none; } .file-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } .rec-tag, .latest, .scope { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 16px; } .rec-tag, .latest { letter-spacing: 0.06em; text-transform: uppercase; } .rec-tag { background: var(--primary-container); color: var(--on-primary-container); } .file-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 11px; } .note { margin-right: 4px; font-family: var(--sans); font-size: 13px; } .sha { position: relative; z-index: 1; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; } .sha.done { text-decoration: none; } /* scene.js sets the start button's circle and cookie at this size as --circle and --cookie on the root. */ .go { --fill: var(--block); --on: var(--on-surface); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; color: var(--ink); clip-path: var(--circle, none); } @media (hover: hover) { .file:hover .go { clip-path: var(--cookie, none); } } .file.rec .go { --fill: var(--primary); --on: var(--on-primary); color: var(--on-primary); } .dl-error { margin-top: 10px; padding: 16px 20px; border-radius: 16px; background: var(--error-container); color: var(--on-error-container); } .extras { display: grid; gap: 2px; margin-top: 16px; } .extras:empty { display: none; } .tip { min-width: 0; padding: 14px 20px 16px; background: var(--card); } .tip h3 { margin: 0 0 2px; font-size: 15px; font-weight: 600; } .tip p { color: var(--muted); font-size: 13px; } .tip p + p { margin-top: 6px; } .cmd { position: relative; margin-top: 10px; border-radius: 12px; background: var(--block); } .cmd pre { margin: 0; padding: 10px 48px 10px 14px; overflow-x: auto; font-family: var(--mono); font-size: 11px; line-height: 1.7; } .copy { --fill: transparent; --on: var(--on-surface); position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 18px; cursor: pointer; } .copy .ico-check, .copy.done .ico-copy { display: none; } .copy.done .ico-check { display: block; } .dl-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-family: var(--mono); font-size: 12px; } .dl-links a { text-underline-offset: 4px; } .search { display: flex; align-items: center; gap: 12px; width: min(440px, 100%); height: 56px; margin-top: 28px; padding: 0 12px 0 20px; border-radius: 28px; background: var(--card); color: var(--muted); cursor: text; } .search:focus-within { outline: 2px solid var(--primary); outline-offset: 3px; } .search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; } .search input::placeholder { color: var(--muted); } .search input::-webkit-search-cancel-button { display: none; } kbd { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 16px; background: var(--block); color: var(--muted); font-family: var(--mono); font-size: 11px; } .cl-status { min-height: 1.5em; margin-top: 16px; color: var(--muted); font-family: var(--mono); font-size: 12px; } .cl-status button { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; } .cl-status a { text-underline-offset: 3px; } .year { padding: 48px 0 12px; border-bottom: 1px solid var(--rule); font-family: var(--display); font-size: 22px; font-stretch: 118%; font-weight: 800; letter-spacing: -0.02em; } .timeline > .year:first-child { padding-top: 8px; } .release { display: grid; grid-template-columns: minmax(0, 168px) minmax(0, 1fr); gap: 14px 32px; padding: 32px 0; border-bottom: 1px solid var(--rule); } .release-head { position: sticky; top: 28px; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; } .ver-row { display: flex; align-items: center; gap: 10px; } .ver { font-family: var(--display); font-size: 30px; font-stretch: 118%; font-weight: 800; line-height: 1; letter-spacing: -0.03em; text-decoration: none; } .latest { background: var(--primary); color: var(--on-primary); } .when { color: var(--muted); font-family: var(--mono); font-size: 12px; } .when a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; } .when a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } .release-body { display: grid; gap: 22px; min-width: 0; } .group { --type: var(--muted); } .group[data-type="feat"] { --type: var(--success); } .group[data-type="fix"] { --type: var(--primary); } .group[data-type="perf"] { --type: var(--warning); } .group[data-type="breaking"] { --type: var(--error); } .group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; } .mark { width: 10px; height: 10px; border-radius: 50%; background: var(--type); } .entries { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } .entry { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 1.55; } .entry-text { min-width: 0; overflow-wrap: anywhere; } .scope { margin-right: 8px; padding: 2px 9px; background: var(--card); color: var(--muted); vertical-align: 1px; } .hash { flex: none; color: var(--muted); font-family: var(--mono); font-size: 11px; text-decoration: none; } .hash:hover { color: var(--ink); text-decoration: underline; } .empty { color: var(--muted); } mark { border-radius: 4px; background: var(--primary-container); color: var(--on-primary-container); } .foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding: 48px var(--gutter) max(48px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); } .foot-main { display: grid; gap: 10px; } .foot-name { font-family: var(--display); font-size: 28px; font-stretch: 118%; font-weight: 800; letter-spacing: -0.03em; } .foot-text { max-width: 46ch; color: var(--muted); font-family: var(--mono); font-size: 12px; } .foot-links { font-size: 14px; font-weight: 500; } @media (prefers-reduced-motion: no-preference) { .hero-copy > * { animation: rise 0.9s var(--ease-out) backwards; } .hero-copy > :nth-child(2) { animation-delay: 0.06s; } .hero-copy > :nth-child(3) { animation-delay: 0.12s; } .hero-copy > :nth-child(4) { animation-delay: 0.18s; } .hero-copy > :nth-child(5) { animation-delay: 0.24s; } .scroll-hint { animation: rise 0.9s var(--ease-out) 0.5s backwards; } .emblem.ready .emblem-press { animation: grow 0.9s var(--spring) 0.15s backwards; } .cta-icon svg, .file .go svg { transition: translate 0.4s var(--spring); } .go { transition: background-color 0.2s, clip-path 0.45s var(--spring); } .dock-part { translate: 0 12px; transition: opacity 0.09s linear, translate 0.09s linear; } /* 点按钮时:箭头往上送出去,再从下方回到原位。 */ .emblem.pop .glyph-arrow { animation: upload-arrow 0.78s cubic-bezier(0.3, 0, 0.2, 1) both; } .emblem.pop .glyph-tray { animation: tray-bump 0.78s var(--spring) both; } [data-part="1"] .dock-part:first-child, [data-part="2"] .dock-part:nth-child(2), [data-part="3"] .dock-part:last-child { translate: none; transition: opacity 0.21s linear 0.09s, translate 0.5s var(--spring) 0.09s; } #features { transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out), translate 0.7s var(--spring); } .cta:hover .cta-icon svg, .file:hover .go svg { translate: 0 3px; } .release.pending { opacity: 0; translate: 0 24px; } .release.shown { transition: opacity 0.6s var(--ease-out), translate 0.8s var(--spring); } } @keyframes rise { from { opacity: 0; translate: 0 18px; } } @keyframes grow { from { opacity: 0; scale: 0.4; } } @keyframes upload-arrow { 0% { translate: 0 0; opacity: 1; } 35% { translate: 0 -18%; opacity: 0; } 50% { translate: 0 16%; opacity: 0; } 85%, 100% { translate: 0 0; opacity: 1; } } @keyframes tray-bump { 0%, 100% { scale: 1; } 50% { scale: 1.06; } } /* Wide screens split below the hero: the emblem docks in the left column above the name of the section the right column is showing. The downloads start under the hero and stay hidden until the emblem has docked, then appear in place with their top on --rest, the line the docked column starts on, instead of scrolling up through empty space. */ @media (min-width: 960px) { .stage { --mark: min(calc(var(--dock-w) - 24px), 48vh, 440px); --spot: calc(var(--mark) * 0.8); --rest: max(20vh, 96px); } .dock-view { position: sticky; top: 0; height: 100vh; } .emblem { left: var(--gutter); top: var(--rest); } .dock-title { position: absolute; left: var(--gutter); top: calc(var(--rest) + var(--mark) + 32px); display: grid; width: var(--dock-w); } .part-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .part-head + * { margin-top: 0; } [data-part="0"] #features { opacity: 0; filter: blur(16px); translate: 0 32px; pointer-events: none; } .spot { position: absolute; left: calc(78% - var(--spot) / 2); top: calc(50% - var(--spot) / 2); width: var(--spot); height: var(--spot); } /* 55vh is the scroll by which scene.js has docked the emblem, DOCKED_VH. */ .flow { margin-top: calc(var(--rest) - 55vh); padding-left: calc(var(--gutter) + var(--dock-w) + clamp(32px, 3vw, 56px)); } } @media (min-width: 960px) and (max-width: 1279.98px) { .release { grid-template-columns: minmax(0, 1fr); } .release-head { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; } } @media (max-width: 959.98px) { .feat { min-height: 0; } .stage { --mark: min(64vw, 38vh, 340px); --spot: calc(var(--mark) / 1.15); } .emblem { left: 0; top: 0; } .hero { min-height: 0; padding-bottom: 48px; } .spot { order: 1; align-self: center; width: var(--spot); height: var(--spot); margin-top: 40px; } .lede { width: auto; max-width: 30em; font-size: 17px; } .scroll-hint { display: none; } .flow { padding-top: 24px; } .release { grid-template-columns: minmax(0, 1fr); } .release-head { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; } .ver { font-size: 26px; } } @media (max-width: 640px) { .feats { grid-template-columns: minmax(0, 1fr); margin-top: 28px; } .feat.wide { grid-column: auto; } :root { --bar-h: 72px; } .bar { top: 8px; height: 52px; } .gh-name { display: none; } .links .seg { padding: 0 10px; } .note { flex-basis: 100%; } .foot-links { flex-direction: column; width: 100%; } .foot-links .seg, .foot-links .seg:is(:first-child, :last-child) { border-radius: calc(var(--r) / 3); } .foot-links .seg:first-child { border-top-left-radius: var(--r); border-top-right-radius: var(--r); } .foot-links .seg:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); } .tabs { --r: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 15px; } .tabs .seg { padding: 0 6px; } }