From a953e95b993ef32b232321df56c28358f027746c Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 06 Jun 2026 01:46:23 +0800
Subject: [PATCH] Redesign hero: glass tilted screenshots with reflections; unified layout and header lang switch
---
docs/styles.css | 410 +++++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 291 insertions(+), 119 deletions(-)
diff --git a/docs/styles.css b/docs/styles.css
index 626f51d..8d5a908 100644
--- a/docs/styles.css
+++ b/docs/styles.css
@@ -1,26 +1,18 @@
:root {
- --bg: #f5f5f7;
- --surface: #ffffff;
+ --layout-max: 1080px;
+ --layout-pad: 28px;
+ --header-h: 64px;
+ --bg: #f4f6fb;
+ --bg-elevated: #ffffff;
--text: #1d1d1f;
- --muted: #6e6e73;
+ --muted: #5c5c66;
--accent: #0071e3;
--accent-hover: #0077ed;
--border: rgba(0, 0, 0, 0.08);
- --radius: 14px;
- --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
- --max: 920px;
- --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --bg: #000000;
- --surface: #1c1c1e;
- --text: #f5f5f7;
- --muted: #a1a1a6;
- --border: rgba(255, 255, 255, 0.12);
- --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
- }
+ --radius: 16px;
+ --shadow: 0 20px 50px rgba(30, 45, 90, 0.12);
+ --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
+ --hero-bg: linear-gradient(155deg, #eef2fa 0%, #e2e9f6 42%, #d6dff0 100%);
}
* {
@@ -34,10 +26,11 @@
body {
margin: 0;
font-family: var(--font);
- background: var(--bg);
color: var(--text);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
+ background: var(--bg);
+ min-height: 100vh;
}
a {
@@ -49,123 +42,258 @@
text-decoration: underline;
}
-.wrap {
- max-width: var(--max);
- margin: 0 auto;
- padding: 0 24px 80px;
+/* One width for header, main, footer */
+.layout {
+ width: 100%;
+ max-width: var(--layout-max);
+ margin-left: auto;
+ margin-right: auto;
+ padding-left: var(--layout-pad);
+ padding-right: var(--layout-pad);
}
+/* Header — fixed lang switch slot on the right */
.site-header {
position: sticky;
top: 0;
- z-index: 10;
- backdrop-filter: blur(16px);
- background: color-mix(in srgb, var(--bg) 82%, transparent);
+ z-index: 50;
+ height: var(--header-h);
+ background: rgba(244, 246, 251, 0.82);
border-bottom: 1px solid var(--border);
+ backdrop-filter: blur(16px) saturate(1.25);
}
-.site-header .inner {
- max-width: var(--max);
- margin: 0 auto;
- padding: 14px 24px;
- display: flex;
+.site-header__bar {
+ height: var(--header-h);
+ display: grid;
+ grid-template-columns: auto 1fr auto;
align-items: center;
- justify-content: space-between;
- gap: 16px;
+ gap: 20px;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
- font-weight: 600;
- font-size: 1.05rem;
+ font-weight: 650;
+ font-size: 1.02rem;
color: var(--text);
text-decoration: none;
+ white-space: nowrap;
}
.brand:hover {
text-decoration: none;
}
-.brand-mark {
- width: 32px;
- height: 32px;
+.brand img {
+ width: 34px;
+ height: 34px;
border-radius: 8px;
- background: linear-gradient(145deg, #5ac8fa, #0071e3 55%, #5856d6);
- box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
+ box-shadow: 0 4px 14px rgba(0, 113, 227, 0.22);
}
-nav {
+.site-nav {
display: flex;
flex-wrap: wrap;
- gap: 8px 18px;
+ justify-content: center;
+ gap: 6px 20px;
font-size: 0.92rem;
}
-nav a {
+.site-nav a {
color: var(--muted);
}
-nav a[aria-current="page"] {
+.site-nav a[aria-current="page"] {
color: var(--text);
font-weight: 600;
}
-.hero {
- padding: 56px 0 40px;
- text-align: center;
+.lang-switch {
+ display: inline-flex;
+ align-items: center;
+ padding: 4px;
+ border-radius: 999px;
+ background: rgba(0, 0, 0, 0.05);
+ border: 1px solid var(--border);
+ flex-shrink: 0;
}
-.hero h1 {
- margin: 0 0 12px;
- font-size: clamp(2rem, 5vw, 2.75rem);
- letter-spacing: -0.03em;
- line-height: 1.1;
-}
-
-.hero .lead {
- margin: 0 auto;
- max-width: 36em;
- font-size: 1.15rem;
- color: var(--muted);
-}
-
-.pill-row {
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- gap: 10px;
- margin-top: 28px;
-}
-
-.pill {
+.lang-switch a {
+ display: inline-block;
padding: 6px 14px;
border-radius: 999px;
- background: var(--surface);
- border: 1px solid var(--border);
- font-size: 0.85rem;
+ font-size: 0.82rem;
+ font-weight: 600;
color: var(--muted);
+ text-decoration: none;
+}
+
+.lang-switch a:hover {
+ text-decoration: none;
+ color: var(--text);
+}
+
+.lang-switch a.is-active {
+ background: var(--bg-elevated);
+ color: var(--text);
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
+}
+
+/* Hero — light studio, glass screenshots + reflection */
+.hero {
+ position: relative;
+ width: 100%;
+ min-height: calc(100svh - var(--header-h));
+ min-height: calc(100vh - var(--header-h));
+ padding: 40px 0 56px;
+ overflow: hidden;
+ background: var(--hero-bg);
+}
+
+.hero__mosaic {
+ position: relative;
+ width: min(1040px, 92vw);
+ height: min(560px, 58vh);
+ margin: 0 auto;
+ perspective: 1600px;
+ perspective-origin: 50% 40%;
+}
+
+.glass-panel {
+ position: absolute;
+ margin: 0;
+ transform-style: preserve-3d;
+}
+
+.glass-panel__frame {
+ border-radius: 22px;
+ padding: 11px;
+ background: rgba(255, 255, 255, 0.62);
+ backdrop-filter: blur(22px) saturate(1.35);
+ -webkit-backdrop-filter: blur(22px) saturate(1.35);
+ border: 1px solid rgba(255, 255, 255, 0.85);
+ box-shadow:
+ 0 1px 0 rgba(255, 255, 255, 0.95) inset,
+ 0 28px 70px rgba(40, 55, 100, 0.18),
+ 0 10px 28px rgba(40, 55, 100, 0.1);
+}
+
+.glass-panel__body {
+ border-radius: 14px;
+ overflow: hidden;
+ line-height: 0;
+ background: #fff;
+}
+
+.glass-panel__body img {
+ display: block;
+ width: 100%;
+ height: auto;
+}
+
+.glass-panel__shine {
+ position: absolute;
+ inset: 0;
+ border-radius: 22px;
+ pointer-events: none;
+ background: linear-gradient(
+ 125deg,
+ rgba(255, 255, 255, 0.55) 0%,
+ transparent 42%,
+ transparent 70%,
+ rgba(255, 255, 255, 0.15) 100%
+ );
+}
+
+.glass-panel__reflection {
+ margin-top: 10px;
+ padding: 0 11px 0;
+ transform: scaleY(-1);
+ opacity: 0.26;
+ filter: blur(0.3px);
+ mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 72%);
+ -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 72%);
+}
+
+.glass-panel__reflection img {
+ display: block;
+ width: 100%;
+ height: auto;
+ border-radius: 14px;
+}
+
+.glass-panel--main {
+ left: 50%;
+ top: 6%;
+ width: 62%;
+ transform: translateX(-50%) rotateY(-7deg) rotateX(7deg) translateZ(30px);
+ z-index: 2;
+}
+
+.glass-panel--memo {
+ right: -2%;
+ bottom: 2%;
+ width: 44%;
+ transform: rotateY(11deg) rotateX(-3deg) translateZ(80px);
+ z-index: 4;
+}
+
+.glass-panel--tags {
+ left: -4%;
+ top: 18%;
+ width: 42%;
+ transform: rotateY(-12deg) rotateX(4deg) translateZ(50px);
+ z-index: 3;
+}
+
+.hero__tagline {
+ margin: 36px auto 0;
+ text-align: center;
+ font-size: clamp(1.45rem, 3.8vw, 2.35rem);
+ font-weight: 650;
+ letter-spacing: -0.03em;
+ line-height: 1.2;
+ color: #1a1a22;
+ max-width: 16em;
+}
+
+.hero__tagline-sub {
+ margin: 12px auto 0;
+ text-align: center;
+ font-size: 1.02rem;
+ color: var(--muted);
+ max-width: 28em;
+}
+
+/* Main content */
+.page-main {
+ padding: 56px 0 72px;
}
.card {
- background: var(--surface);
+ background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 28px 32px;
- margin-bottom: 24px;
+ margin-bottom: 22px;
}
.card h2 {
- margin: 0 0 16px;
- font-size: 1.35rem;
+ margin: 0 0 14px;
+ font-size: 1.3rem;
letter-spacing: -0.02em;
}
-.card h3 {
- margin: 24px 0 10px;
- font-size: 1.05rem;
+.card-cta {
+ text-align: center;
+}
+
+.card-cta p {
+ margin: 0 0 16px;
+ color: var(--muted);
}
.compare {
@@ -177,13 +305,13 @@
.compare th,
.compare td {
text-align: left;
- padding: 12px 14px;
+ padding: 11px 12px;
border-bottom: 1px solid var(--border);
vertical-align: top;
}
.compare th {
- font-size: 0.8rem;
+ font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
@@ -195,43 +323,41 @@
.feature-grid {
display: grid;
- grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
- gap: 16px;
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
+ gap: 12px;
}
.feature {
- padding: 18px 20px;
+ padding: 15px 17px;
border-radius: 12px;
- background: color-mix(in srgb, var(--accent) 6%, var(--surface));
+ background: #f8f9fd;
border: 1px solid var(--border);
}
.feature strong {
display: block;
- margin-bottom: 6px;
+ margin-bottom: 5px;
}
.cta-row {
display: flex;
flex-wrap: wrap;
- justify-content: center;
gap: 12px;
- margin-top: 32px;
+ justify-content: center;
}
.btn {
display: inline-block;
- padding: 12px 22px;
+ padding: 11px 22px;
border-radius: 999px;
font-weight: 600;
- font-size: 0.95rem;
- border: none;
- cursor: pointer;
+ font-size: 0.94rem;
}
.btn-primary {
background: var(--accent);
color: #fff;
+ box-shadow: 0 8px 24px rgba(0, 113, 227, 0.28);
}
.btn-primary:hover {
@@ -241,7 +367,7 @@
}
.btn-secondary {
- background: var(--surface);
+ background: var(--bg-elevated);
color: var(--text);
border: 1px solid var(--border);
}
@@ -250,40 +376,28 @@
text-decoration: none;
}
-.prose h2 {
- margin-top: 2em;
- font-size: 1.25rem;
-}
-
-.prose ul {
- padding-left: 1.25em;
-}
-
-.prose li {
- margin: 0.35em 0;
-}
-
.site-footer {
- margin-top: 48px;
- padding-top: 24px;
+ padding: 28px 0 48px;
border-top: 1px solid var(--border);
text-align: center;
font-size: 0.88rem;
color: var(--muted);
}
-.lang-switch {
- font-size: 0.85rem;
+.site-footer p {
+ margin: 0 0 8px;
}
-.lang-switch a {
- color: var(--muted);
- margin-left: 10px;
+.prose h1 {
+ margin-top: 0;
}
-.lang-switch a.active {
- color: var(--text);
- font-weight: 600;
+.prose h2 {
+ margin-top: 1.5em;
+}
+
+.prose h3 {
+ margin-top: 1.2em;
}
kbd {
@@ -292,7 +406,65 @@
border-radius: 6px;
font-size: 0.82em;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
- background: var(--surface);
+ background: #f0f2f8;
border: 1px solid var(--border);
- box-shadow: 0 1px 0 var(--border);
+}
+
+@media (max-width: 860px) {
+ .site-header__bar {
+ grid-template-columns: auto auto;
+ grid-template-rows: auto auto;
+ }
+
+ .site-nav {
+ grid-column: 1 / -1;
+ justify-content: flex-start;
+ order: 3;
+ }
+
+ .lang-switch {
+ grid-column: 2;
+ grid-row: 1;
+ justify-self: end;
+ }
+
+ .hero__mosaic {
+ height: min(480px, 52vh);
+ }
+
+ .glass-panel--main {
+ width: 78%;
+ top: 4%;
+ }
+
+ .glass-panel--memo {
+ width: 52%;
+ right: -6%;
+ bottom: 0;
+ }
+
+ .glass-panel--tags {
+ width: 50%;
+ left: -8%;
+ top: 28%;
+ }
+}
+
+@media (max-width: 560px) {
+ :root {
+ --layout-pad: 18px;
+ }
+
+ .hero {
+ padding-bottom: 40px;
+ }
+
+ .hero__mosaic {
+ height: 400px;
+ }
+
+ .glass-panel--memo,
+ .glass-panel--tags {
+ opacity: 0.92;
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3