From 312b5a36c2418fd098fb06ffb339ab0d22df7427 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 06 Jun 2026 18:14:12 +0800
Subject: [PATCH] Fix hero: one visible screenshot, CSS-only stack layers behind

---
 docs/styles.css |  264 ++++++++++++++++++++++++++++------------------------
 1 files changed, 141 insertions(+), 123 deletions(-)

diff --git a/docs/styles.css b/docs/styles.css
index 8d5a908..edd233e 100644
--- a/docs/styles.css
+++ b/docs/styles.css
@@ -12,7 +12,7 @@
   --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%);
+  --hero-bg: #ffffff;
 }
 
 * {
@@ -141,130 +141,163 @@
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
 }
 
-/* Hero — light studio, glass screenshots + reflection */
+/* 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 — reference layout: copy left, stacked screenshots right */
 .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;
+  padding: 48px 0 64px;
   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;
+.hero__split {
+  display: grid;
+  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
+  gap: 28px 40px;
+  align-items: center;
+  min-height: calc(100svh - var(--header-h) - 112px);
+  min-height: calc(100vh - var(--header-h) - 112px);
+}
+
+.hero__copy {
+  padding: 12px 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;
+}
+
+.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;
+}
+
+.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%;
-  height: auto;
+  max-width: 520px;
+  margin-left: auto;
+  padding: 36px 0 48px;
 }
 
-.glass-panel__shine {
+.hero-stack-layer {
   position: absolute;
-  inset: 0;
-  border-radius: 22px;
+  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;
-  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%);
+.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);
 }
 
-.glass-panel__reflection img {
-  display: block;
-  width: 100%;
-  height: auto;
-  border-radius: 14px;
+.hero-stack-layer__chrome span,
+.hero-window__chrome span {
+  width: 10px;
+  height: 10px;
+  border-radius: 50%;
 }
 
-.glass-panel--main {
-  left: 50%;
-  top: 6%;
-  width: 62%;
-  transform: translateX(-50%) rotateY(-7deg) rotateX(7deg) translateZ(30px);
+.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;
 }
 
-.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);
+.hero-window {
+  position: relative;
+  margin: 24px 0 0;
   z-index: 3;
+  transform: rotateY(-6deg) rotateX(3deg);
+  transform-style: preserve-3d;
 }
 
-.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-window__screen {
+  border-radius: 0 0 12px 12px;
+  overflow: hidden;
+  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__tagline-sub {
-  margin: 12px auto 0;
-  text-align: center;
-  font-size: 1.02rem;
-  color: var(--muted);
-  max-width: 28em;
+.hero-window__screen img {
+  display: block;
+  width: 100%;
+  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;
 }
 
 /* Main content */
@@ -428,25 +461,15 @@
     justify-self: end;
   }
 
-  .hero__mosaic {
-    height: min(480px, 52vh);
+  .hero__split {
+    grid-template-columns: 1fr;
+    min-height: auto;
+    gap: 32px;
   }
 
-  .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%;
+  .hero__stack {
+    max-width: 100%;
+    margin-left: 0;
   }
 }
 
@@ -456,15 +479,10 @@
   }
 
   .hero {
-    padding-bottom: 40px;
+    padding: 32px 0 48px;
   }
 
-  .hero__mosaic {
-    height: 400px;
-  }
-
-  .glass-panel--memo,
-  .glass-panel--tags {
-    opacity: 0.92;
+  .hero-stack-layer__body {
+    height: 160px;
   }
 }
\ No newline at end of file

--
Gitblit v1.9.3