From e45c0a8b5228f2ba009c4f9e3ed8ede249897f73 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 06 Jun 2026 18:41:27 +0800
Subject: [PATCH] Fix hero: use original design visual crop, no CSS 3D transforms
---
docs/styles.css | 36 ++++++++++--------------------------
1 files changed, 10 insertions(+), 26 deletions(-)
diff --git a/docs/styles.css b/docs/styles.css
index a41b525..65b8f05 100644
--- a/docs/styles.css
+++ b/docs/styles.css
@@ -163,8 +163,8 @@
.hero__split {
display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
- gap: 20px 48px;
+ grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
+ gap: 12px 32px;
align-items: center;
min-height: calc(100svh - var(--header-h) - 96px);
min-height: calc(100vh - var(--header-h) - 96px);
@@ -191,31 +191,20 @@
max-width: 22em;
}
-.hero__visual {
- position: relative;
- min-height: 420px;
+/* Right art: pixels from user's original design (vertical crop only — stack + reflection intact) */
+.hero__art {
+ margin: 0;
+ line-height: 0;
display: flex;
align-items: center;
justify-content: flex-end;
}
-.hero__stack-stage {
- position: relative;
- width: 100%;
- max-width: 620px;
- margin-left: auto;
- padding: 12px 0 28px;
- perspective: 1600px;
- perspective-origin: 35% 45%;
-}
-
-.hero__stack-img {
+.hero__art img {
display: block;
width: 100%;
+ max-width: 100%;
height: auto;
- transform: rotateY(-11deg) rotateX(4deg) translateZ(0);
- transform-origin: 40% 50%;
- filter: drop-shadow(0 28px 48px rgba(30, 45, 90, 0.14));
}
/* Main content */
@@ -385,13 +374,8 @@
gap: 32px;
}
- .hero__stack-stage {
- max-width: 100%;
- margin-left: 0;
- }
-
- .hero__stack-img {
- transform: rotateY(-7deg) rotateX(3deg);
+ .hero__art {
+ justify-content: center;
}
}
--
Gitblit v1.9.3