From 28e9e4d54678fc8c573cf908396c4e6fa9efedaa Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 06 Jun 2026 21:50:00 +0800
Subject: [PATCH] Add third screen: tag management copy left, screenshot right
---
docs/styles.css | 243 +++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 229 insertions(+), 14 deletions(-)
diff --git a/docs/styles.css b/docs/styles.css
index a0b71ce..8dbdbe6 100644
--- a/docs/styles.css
+++ b/docs/styles.css
@@ -151,23 +151,19 @@
background: rgba(255, 255, 255, 0.88);
}
-/* Hero — reference layout: copy left, stacked screenshots right */
+/* Hero — copy left, original design visual right (compact, no forced full-screen) */
.hero {
width: 100%;
- min-height: calc(100svh - var(--header-h));
- min-height: calc(100vh - var(--header-h));
- padding: 48px 0 64px;
+ padding: 40px 0 48px;
background: var(--hero-bg);
overflow: hidden;
}
.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);
}
.hero__copy {
@@ -191,17 +187,213 @@
max-width: 22em;
}
-.hero__visual {
+/* Right art: user-provided hero visual (black bg removed → white) */
+.hero__art {
margin: 0;
line-height: 0;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ background: var(--hero-bg);
}
-.hero__visual img {
+.hero__art img {
display: block;
width: 100%;
- max-width: 560px;
+ max-width: 100%;
height: auto;
- margin-left: auto;
+ background: var(--hero-bg);
+ border: 0;
+}
+
+/* Second screen — 5 view modes */
+.views {
+ padding: 56px 0 64px;
+ background: #ffffff;
+}
+
+.views__split {
+ display: grid;
+ grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
+ gap: 28px 48px;
+ align-items: center;
+}
+
+.views__gallery {
+ display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ gap: 12px;
+ max-width: 500px;
+ justify-self: start;
+}
+
+.views__shot {
+ margin: 0;
+ border-radius: 12px;
+ overflow: hidden;
+ line-height: 0;
+ background: #f5f5f7;
+ box-shadow: 0 10px 28px rgba(30, 45, 90, 0.1);
+ border: 1px solid rgba(0, 0, 0, 0.06);
+}
+
+.views__shot img {
+ display: block;
+ width: 100%;
+ height: auto;
+}
+
+.views__headline {
+ margin: 0;
+ font-size: clamp(1.85rem, 3.8vw, 2.7rem);
+ font-weight: 800;
+ letter-spacing: -0.04em;
+ line-height: 1.12;
+ color: #000;
+}
+
+.views__lead {
+ margin: 22px 0 0;
+ font-size: clamp(0.98rem, 1.55vw, 1.1rem);
+ line-height: 1.75;
+ color: #6e6e73;
+ max-width: 26em;
+}
+
+.views__rule {
+ margin: 30px 0 22px;
+ border: 0;
+ height: 1px;
+ background: linear-gradient(90deg, rgba(99, 102, 241, 0.5), rgba(99, 102, 241, 0.06));
+}
+
+.views__label {
+ margin: 0 0 16px;
+ font-size: 0.94rem;
+ color: #86868b;
+}
+
+.views__modes {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+ display: grid;
+ gap: 12px;
+}
+
+.views__modes li {
+ position: relative;
+ padding-left: 22px;
+ font-size: 1.04rem;
+ font-weight: 500;
+ color: #1d1d1f;
+}
+
+.views__modes li::before {
+ content: "";
+ position: absolute;
+ left: 0;
+ top: 0.58em;
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: var(--accent);
+}
+
+.views__shortcut {
+ margin-top: 32px;
+ display: inline-flex;
+ flex-direction: column;
+ gap: 6px;
+ padding: 14px 20px;
+ border-radius: 14px;
+ background: #f5f5f7;
+ border: 1px solid var(--border);
+}
+
+.views__shortcut-label {
+ font-size: 0.8rem;
+ color: #86868b;
+}
+
+.views__shortcut-keys {
+ font-size: 1.02rem;
+ font-weight: 650;
+ letter-spacing: 0.01em;
+}
+
+/* Third screen — tag management */
+.tags {
+ padding: 56px 0 64px;
+ background: #ffffff;
+}
+
+.tags__split {
+ display: grid;
+ grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
+ gap: 28px 48px;
+ align-items: center;
+}
+
+.tags__headline {
+ margin: 0;
+ font-size: clamp(1.85rem, 3.8vw, 2.7rem);
+ font-weight: 800;
+ letter-spacing: -0.04em;
+ line-height: 1.12;
+ color: #000;
+}
+
+.tags__points {
+ list-style: none;
+ margin: 28px 0 0;
+ padding: 0;
+ display: grid;
+ gap: 18px;
+ max-width: 28em;
+}
+
+.tags__points li {
+ position: relative;
+ padding-left: 22px;
+ font-size: clamp(0.98rem, 1.55vw, 1.1rem);
+ line-height: 1.75;
+ color: #1d1d1f;
+}
+
+.tags__points li::before {
+ content: "";
+ position: absolute;
+ left: 0;
+ top: 0.72em;
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: var(--accent);
+}
+
+.tags__points strong {
+ font-weight: 700;
+ color: #000;
+}
+
+.tags__art {
+ margin: 0;
+ line-height: 0;
+ justify-self: end;
+ max-width: 540px;
+ width: 100%;
+ border-radius: 12px;
+ overflow: hidden;
+ background: #f5f5f7;
+ box-shadow: 0 10px 28px rgba(30, 45, 90, 0.1);
+ border: 1px solid rgba(0, 0, 0, 0.06);
+}
+
+.tags__art img {
+ display: block;
+ width: 100%;
+ height: auto;
}
/* Main content */
@@ -371,8 +563,31 @@
gap: 32px;
}
- .hero__visual img {
- margin-left: 0;
+ .hero__art {
+ justify-content: center;
+ }
+
+ .views__split {
+ grid-template-columns: 1fr;
+ gap: 36px;
+ }
+
+ .views__gallery {
+ max-width: 100%;
+ justify-self: center;
+ }
+
+ .views__copy {
+ max-width: 36em;
+ }
+
+ .tags__split {
+ grid-template-columns: 1fr;
+ gap: 36px;
+ }
+
+ .tags__art {
+ justify-self: center;
max-width: 100%;
}
}
--
Gitblit v1.9.3