From 3820bfd0dbb671a5404d6b44dbeb110bf1827b2f Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 06 Jun 2026 18:43:23 +0800
Subject: [PATCH] Tighten hero visual: trim excess reflection and drop full-screen height
---
docs/styles.css | 559 +++++++++++++++++++++++--------------------------------
1 files changed, 232 insertions(+), 327 deletions(-)
diff --git a/docs/styles.css b/docs/styles.css
index 5840af2..1c575b7 100644
--- a/docs/styles.css
+++ b/docs/styles.css
@@ -1,28 +1,18 @@
:root {
- --bg: #eef1f8;
- --bg-accent: #dfe8ff;
- --surface: rgba(255, 255, 255, 0.78);
+ --layout-max: 1080px;
+ --layout-pad: 28px;
+ --header-h: 64px;
+ --bg: #f4f6fb;
+ --bg-elevated: #ffffff;
--text: #1d1d1f;
--muted: #5c5c66;
--accent: #0071e3;
--accent-hover: #0077ed;
--border: rgba(0, 0, 0, 0.08);
- --radius: 18px;
- --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
- --max: 1080px;
- --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --bg: #0a0b10;
- --bg-accent: #1a2240;
- --surface: rgba(28, 28, 32, 0.82);
- --text: #f5f5f7;
- --muted: #a1a1a6;
- --border: rgba(255, 255, 255, 0.1);
- --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
- }
+ --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: #ffffff;
}
* {
@@ -39,11 +29,7 @@
color: var(--text);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
- background:
- radial-gradient(ellipse 80% 50% at 10% -10%, rgba(90, 200, 250, 0.35), transparent 55%),
- radial-gradient(ellipse 60% 45% at 95% 5%, rgba(88, 86, 214, 0.28), transparent 50%),
- radial-gradient(ellipse 70% 40% at 50% 100%, var(--bg-accent), transparent 60%),
- var(--bg);
+ background: var(--bg);
min-height: 100vh;
}
@@ -56,29 +42,33 @@
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: 20;
- backdrop-filter: blur(18px) saturate(1.2);
- background: color-mix(in srgb, var(--bg) 70%, 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: 12px 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 {
@@ -86,9 +76,10 @@
align-items: center;
gap: 10px;
font-weight: 650;
- font-size: 1.05rem;
+ font-size: 1.02rem;
color: var(--text);
text-decoration: none;
+ white-space: nowrap;
}
.brand:hover {
@@ -96,305 +87,150 @@
}
.brand img {
- width: 36px;
- height: 36px;
- border-radius: 9px;
- box-shadow:
- 0 2px 6px rgba(0, 0, 0, 0.12),
- 0 10px 24px rgba(0, 113, 227, 0.22);
+ width: 34px;
+ height: 34px;
+ border-radius: 8px;
+ 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 with 3D visual stack */
-.hero-stage {
- display: grid;
- grid-template-columns: 1fr 1.05fr;
- gap: 32px 40px;
+.lang-switch {
+ display: inline-flex;
align-items: center;
- padding: 36px 0 56px;
-}
-
-@media (max-width: 900px) {
- .hero-stage {
- grid-template-columns: 1fr;
- }
-
- .hero-visual {
- min-height: 340px;
- }
-}
-
-.hero-copy .lang-switch {
- margin-bottom: 12px;
-}
-
-.hero-copy h1 {
- margin: 0 0 14px;
- font-size: clamp(2rem, 4.5vw, 2.85rem);
- letter-spacing: -0.035em;
- line-height: 1.08;
-}
-
-.hero-copy .lead {
- margin: 0 0 20px;
- font-size: 1.12rem;
- color: var(--muted);
- max-width: 28em;
-}
-
-.pill-row {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- margin-bottom: 22px;
-}
-
-.pill {
- padding: 6px 13px;
+ padding: 4px;
border-radius: 999px;
- background: var(--surface);
+ background: rgba(0, 0, 0, 0.05);
border: 1px solid var(--border);
- font-size: 0.82rem;
- color: var(--muted);
- backdrop-filter: blur(8px);
+ flex-shrink: 0;
}
-.cta-row {
- display: flex;
- flex-wrap: wrap;
- gap: 12px;
-}
-
-.btn {
+.lang-switch a {
display: inline-block;
- padding: 12px 22px;
+ padding: 6px 14px;
border-radius: 999px;
+ font-size: 0.82rem;
font-weight: 600;
- font-size: 0.95rem;
-}
-
-.btn-primary {
- background: var(--accent);
- color: #fff;
- box-shadow: 0 10px 28px rgba(0, 113, 227, 0.35);
-}
-
-.btn-primary:hover {
- background: var(--accent-hover);
- text-decoration: none;
- color: #fff;
-}
-
-.btn-secondary {
- background: var(--surface);
- color: var(--text);
- border: 1px solid var(--border);
- backdrop-filter: blur(8px);
-}
-
-.btn-secondary:hover {
- text-decoration: none;
-}
-
-.hero-visual {
- position: relative;
- min-height: 380px;
- perspective: 1400px;
-}
-
-.icon-float {
- position: absolute;
- top: 0;
- left: 8%;
- z-index: 3;
- transform: translateZ(48px);
- animation: float-icon 5s ease-in-out infinite;
-}
-
-.icon-float img {
- width: 112px;
- height: 112px;
- border-radius: 24px;
- box-shadow:
- 0 1px 0 rgba(255, 255, 255, 0.65) inset,
- 0 18px 40px rgba(0, 113, 227, 0.35),
- 0 40px 80px rgba(88, 86, 214, 0.25);
-}
-
-@keyframes float-icon {
- 0%, 100% { transform: translateY(0) translateZ(48px) rotate(-4deg); }
- 50% { transform: translateY(-10px) translateZ(56px) rotate(2deg); }
-}
-
-.device-shot {
- position: absolute;
- margin: 0;
- border-radius: 16px;
- overflow: hidden;
- border: 1px solid color-mix(in srgb, white 70%, var(--border));
- background: #111;
- box-shadow: var(--shadow);
- transform-style: preserve-3d;
-}
-
-.device-shot img {
- display: block;
- width: 100%;
- height: auto;
- vertical-align: middle;
-}
-
-.shot-back {
- right: 0;
- top: 36px;
- width: 88%;
- transform: rotateY(-14deg) rotateX(4deg) translateZ(0);
- opacity: 0.92;
-}
-
-.shot-front {
- left: 0;
- bottom: 0;
- width: 78%;
- transform: rotateY(10deg) rotateX(-2deg) translateZ(32px);
- z-index: 2;
-}
-
-.shot-back::after,
-.shot-front::after {
- content: "";
- position: absolute;
- inset: 0;
- pointer-events: none;
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 42%);
- border-radius: inherit;
-}
-
-/* Showcase band */
-.showcase {
- margin-bottom: 28px;
- padding: 0;
- background: transparent;
- border: none;
- box-shadow: none;
-}
-
-.showcase-inner {
- position: relative;
- border-radius: 22px;
- overflow: hidden;
- border: 1px solid var(--border);
- box-shadow: var(--shadow);
- transform: rotateX(2deg);
- transform-style: preserve-3d;
-}
-
-.showcase-inner img {
- display: block;
- width: 100%;
- height: auto;
-}
-
-.showcase-caption {
- position: absolute;
- left: 20px;
- bottom: 18px;
- padding: 10px 16px;
- border-radius: 12px;
- background: rgba(0, 0, 0, 0.62);
- color: #fff;
- font-size: 0.9rem;
- backdrop-filter: blur(10px);
-}
-
-.showcase-caption strong {
- display: block;
- font-size: 1rem;
-}
-
-/* Feature rows with image */
-.feature-show {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 28px;
- align-items: center;
- margin-bottom: 24px;
-}
-
-@media (max-width: 760px) {
- .feature-show {
- grid-template-columns: 1fr;
- }
-
- .feature-show.reverse .feature-shot {
- order: 0;
- }
-}
-
-.feature-show.reverse .feature-copy {
- order: 1;
-}
-
-.feature-shot {
- border-radius: var(--radius);
- overflow: hidden;
- border: 1px solid var(--border);
- box-shadow:
- 0 16px 40px rgba(15, 23, 42, 0.12),
- 0 4px 12px rgba(0, 0, 0, 0.06);
- transform: perspective(900px) rotateY(-6deg);
-}
-
-.feature-shot img {
- display: block;
- width: 100%;
- height: auto;
-}
-
-.feature-show.reverse .feature-shot {
- transform: perspective(900px) rotateY(6deg);
-}
-
-.feature-copy h3 {
- margin: 0 0 10px;
- font-size: 1.35rem;
- letter-spacing: -0.02em;
-}
-
-.feature-copy p {
- margin: 0;
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);
+}
+
+/* Legacy floating hero icon — must not appear */
+.icon-float,
+.icon-orb {
+ display: none !important;
+}
+
+.page-home .site-header {
+ background: rgba(255, 255, 255, 0.88);
+}
+
+/* Hero — copy left, original design visual right (compact, no forced full-screen) */
+.hero {
+ width: 100%;
+ padding: 40px 0 48px;
+ background: var(--hero-bg);
+ overflow: hidden;
+}
+
+.hero__split {
+ display: grid;
+ grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
+ gap: 12px 32px;
+ align-items: center;
+}
+
+.hero__copy {
+ padding: 8px 0;
+}
+
+.hero__headline {
+ margin: 0;
+ font-size: clamp(2rem, 4.8vw, 3.15rem);
+ font-weight: 800;
+ letter-spacing: -0.04em;
+ line-height: 1.1;
+ color: #000;
+}
+
+.hero__lead {
+ margin: 28px 0 0;
+ font-size: clamp(1rem, 1.7vw, 1.2rem);
+ line-height: 1.7;
+ color: #1d1d1f;
+ max-width: 22em;
+}
+
+/* Right art: original design pixels — subtle reflection only, capped height */
+.hero__art {
+ margin: 0;
+ line-height: 0;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+}
+
+.hero__art img {
+ display: block;
+ width: auto;
+ max-width: 100%;
+ height: auto;
+ max-height: clamp(300px, 42vw, 500px);
+}
+
+/* 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: 0 8px 32px rgba(15, 23, 42, 0.06);
+ box-shadow: var(--shadow);
padding: 28px 32px;
- margin-bottom: 24px;
- backdrop-filter: blur(12px);
+ 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-cta {
+ text-align: center;
+}
+
+.card-cta p {
+ margin: 0 0 16px;
+ color: var(--muted);
}
.compare {
@@ -406,13 +242,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);
@@ -425,42 +261,80 @@
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
- gap: 14px;
+ gap: 12px;
}
.feature {
- padding: 16px 18px;
- border-radius: 14px;
- background: color-mix(in srgb, var(--accent) 5%, var(--surface));
+ padding: 15px 17px;
+ border-radius: 12px;
+ background: #f8f9fd;
border: 1px solid var(--border);
}
.feature strong {
display: block;
- margin-bottom: 6px;
+ margin-bottom: 5px;
+}
+
+.cta-row {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 12px;
+ justify-content: center;
+}
+
+.btn {
+ display: inline-block;
+ padding: 11px 22px;
+ border-radius: 999px;
+ font-weight: 600;
+ 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 {
+ background: var(--accent-hover);
+ text-decoration: none;
+ color: #fff;
+}
+
+.btn-secondary {
+ background: var(--bg-elevated);
+ color: var(--text);
+ border: 1px solid var(--border);
+}
+
+.btn-secondary:hover {
+ text-decoration: none;
}
.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-right: 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 {
@@ -469,14 +343,45 @@
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);
}
-.prose h1 {
- margin-top: 0;
+@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__split {
+ grid-template-columns: 1fr;
+ min-height: auto;
+ gap: 32px;
+ }
+
+ .hero__art {
+ justify-content: center;
+ }
}
-.prose h2 {
- margin-top: 1.6em;
+@media (max-width: 560px) {
+ :root {
+ --layout-pad: 18px;
+ }
+
+ .hero {
+ padding: 32px 0 48px;
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3