From 19832fd5cf823a45b29e5dc8ec8370c8c9e9c292 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 06 Jun 2026 18:25:34 +0800
Subject: [PATCH] Implement user hero design: real HTML copy, cropped visual, app icon in header
---
docs/styles.css | 142 +++++++----------------------------------------
1 files changed, 21 insertions(+), 121 deletions(-)
diff --git a/docs/styles.css b/docs/styles.css
index edd233e..a0b71ce 100644
--- a/docs/styles.css
+++ b/docs/styles.css
@@ -163,141 +163,45 @@
.hero__split {
display: grid;
- grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
- gap: 28px 40px;
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
+ gap: 20px 48px;
align-items: center;
- min-height: calc(100svh - var(--header-h) - 112px);
- min-height: calc(100vh - var(--header-h) - 112px);
+ min-height: calc(100svh - var(--header-h) - 96px);
+ min-height: calc(100vh - var(--header-h) - 96px);
}
.hero__copy {
- padding: 12px 0;
+ padding: 8px 0;
}
.hero__headline {
margin: 0;
- font-size: clamp(1.85rem, 4.2vw, 2.85rem);
- font-weight: 700;
- letter-spacing: -0.035em;
- line-height: 1.12;
- color: #111114;
+ font-size: clamp(2rem, 4.8vw, 3.15rem);
+ font-weight: 800;
+ letter-spacing: -0.04em;
+ line-height: 1.1;
+ color: #000;
}
.hero__lead {
- margin: 22px 0 0;
- font-size: clamp(0.98rem, 1.6vw, 1.12rem);
- line-height: 1.65;
- color: var(--muted);
- max-width: 26em;
+ margin: 28px 0 0;
+ font-size: clamp(1rem, 1.7vw, 1.2rem);
+ line-height: 1.7;
+ color: #1d1d1f;
+ max-width: 22em;
}
.hero__visual {
- position: relative;
- min-height: 340px;
-}
-
-/* One real screenshot in front; back layers are chrome-only depth cues */
-.hero__stack {
- position: relative;
- width: 100%;
- max-width: 520px;
- margin-left: auto;
- padding: 36px 0 48px;
-}
-
-.hero-stack-layer {
- position: absolute;
- left: 0;
- right: 0;
- border-radius: 12px;
- overflow: hidden;
- border: 1px solid rgba(0, 0, 0, 0.07);
- box-shadow: 0 16px 40px rgba(30, 45, 90, 0.1);
- pointer-events: none;
-}
-
-.hero-stack-layer__chrome,
-.hero-window__chrome {
- display: flex;
- gap: 7px;
- padding: 9px 11px 7px;
- background: linear-gradient(180deg, #f3f5f9 0%, #e8ecf3 100%);
- border-bottom: 1px solid rgba(0, 0, 0, 0.06);
-}
-
-.hero-stack-layer__chrome span,
-.hero-window__chrome span {
- width: 10px;
- height: 10px;
- border-radius: 50%;
-}
-
-.hero-stack-layer__chrome span:nth-child(1),
-.hero-window__chrome span:nth-child(1) { background: #ff6b6b; }
-.hero-stack-layer__chrome span:nth-child(2),
-.hero-window__chrome span:nth-child(2) { background: #ffd166; }
-.hero-stack-layer__chrome span:nth-child(3),
-.hero-window__chrome span:nth-child(3) { background: #6ee7a8; }
-
-.hero-stack-layer__body {
- height: 220px;
- background: linear-gradient(180deg, #fafbfd 0%, #eef1f7 100%);
-}
-
-.hero-stack-layer--far {
- top: 0;
- transform: translate(28px, -22px) scale(0.96);
- opacity: 0.45;
- z-index: 1;
-}
-
-.hero-stack-layer--near {
- top: 12px;
- transform: translate(14px, -10px) scale(0.98);
- opacity: 0.68;
- z-index: 2;
-}
-
-.hero-window {
- position: relative;
- margin: 24px 0 0;
- z-index: 3;
- transform: rotateY(-6deg) rotateX(3deg);
- transform-style: preserve-3d;
-}
-
-.hero-window__screen {
- border-radius: 0 0 12px 12px;
- overflow: hidden;
+ margin: 0;
line-height: 0;
- background: #fff;
- border: 1px solid rgba(0, 0, 0, 0.08);
- border-top: none;
- box-shadow:
- 0 28px 64px rgba(30, 45, 90, 0.16),
- 0 10px 24px rgba(30, 45, 90, 0.08);
}
-.hero-window__screen img {
+.hero__visual img {
display: block;
width: 100%;
+ max-width: 560px;
height: auto;
-}
-
-.hero-window__reflection {
- margin-top: 10px;
- transform: scaleY(-1);
- opacity: 0.18;
- mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
- -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 70%);
- border-radius: 12px;
- overflow: hidden;
-}
-
-.hero-window__reflection img {
- display: block;
- width: 100%;
- height: auto;
+ margin-left: auto;
}
/* Main content */
@@ -467,9 +371,9 @@
gap: 32px;
}
- .hero__stack {
- max-width: 100%;
+ .hero__visual img {
margin-left: 0;
+ max-width: 100%;
}
}
@@ -480,9 +384,5 @@
.hero {
padding: 32px 0 48px;
- }
-
- .hero-stack-layer__body {
- height: 160px;
}
}
\ No newline at end of file
--
Gitblit v1.9.3