Browse Source

修复首页 hero 三问题:移除右侧大照片卡减图层、五步链连线对齐圆点+等高、文字区加米橙毛玻璃衬底

Agnes Agent 2 hours ago
parent
commit
cde975bd15
2 changed files with 21 additions and 6 deletions
  1. 21 5
      web/css/style.css
  2. 0 1
      web/index.html

+ 21 - 5
web/css/style.css

@@ -600,7 +600,7 @@ ul { list-style: none; }
 /* Hero Visual — 温暖生活流 / 时间轴(保留 .orbit-item 节点结构) */
 /* Hero Visual — 温暖生活流 / 时间轴(保留 .orbit-item 节点结构) */
 .evidence-chain {
 .evidence-chain {
   width: 100%;
   width: 100%;
-  max-width: 420px;
+  max-width: 460px;
   background: var(--bg-surface);
   background: var(--bg-surface);
   border: 1px solid var(--color-border);
   border: 1px solid var(--color-border);
   border-radius: var(--radius-lg);
   border-radius: var(--radius-lg);
@@ -635,9 +635,9 @@ ul { list-style: none; }
 .ec-track::before {
 .ec-track::before {
   content: '';
   content: '';
   position: absolute;
   position: absolute;
-  left: 19px;
-  top: 18px;
-  bottom: 18px;
+  left: 30px; /* 与 ec-idx 圆点中心对齐:padding-left 16px + 圆半径 14px */
+  top: 20px;
+  bottom: 20px;
   width: 2px;
   width: 2px;
   background: linear-gradient(to bottom, var(--brand-400), var(--brand), var(--teal));
   background: linear-gradient(to bottom, var(--brand-400), var(--brand), var(--teal));
   opacity: .5;
   opacity: .5;
@@ -680,8 +680,11 @@ ul { list-style: none; }
 }
 }
 .ec-node:last-child .ec-idx { background: var(--teal); }
 .ec-node:last-child .ec-idx { background: var(--teal); }
 .ec-body {
 .ec-body {
+  flex: 1;
+  min-width: 0;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
+  justify-content: center;
   gap: 2px;
   gap: 2px;
   text-align: left;
   text-align: left;
 }
 }
@@ -689,10 +692,12 @@ ul { list-style: none; }
   font-size: var(--font-size-small);
   font-size: var(--font-size-small);
   font-weight: 700;
   font-weight: 700;
   color: var(--color-text-primary);
   color: var(--color-text-primary);
+  white-space: nowrap;
 }
 }
 .ec-body small {
 .ec-body small {
   font-size: var(--font-size-tiny);
   font-size: var(--font-size-tiny);
   color: var(--color-text-muted);
   color: var(--color-text-muted);
+  white-space: nowrap;
 }
 }
 
 
 /* Scroll Indicator */
 /* Scroll Indicator */
@@ -3679,7 +3684,18 @@ ul { list-style: none; }
     linear-gradient(215deg, rgba(255, 247, 237, .96) 0%, rgba(255, 247, 237, .78) 38%, rgba(255, 247, 237, .34) 62%, rgba(255, 247, 237, .16) 100%);
     linear-gradient(215deg, rgba(255, 247, 237, .96) 0%, rgba(255, 247, 237, .78) 38%, rgba(255, 247, 237, .34) 62%, rgba(255, 247, 237, .16) 100%);
   pointer-events: none;
   pointer-events: none;
 }
 }
-.hero-content { position: relative; z-index: 1; }
+/* 左侧文字加米橙毛玻璃衬底:压在照片底图上仍清晰可读 */
+.hero-content {
+  position: relative;
+  z-index: 1;
+  background: linear-gradient(180deg, rgba(255, 247, 237, .86) 0%, rgba(255, 247, 237, .7) 100%);
+  -webkit-backdrop-filter: blur(10px);
+  backdrop-filter: blur(10px);
+  border: 1px solid rgba(253, 186, 116, .3);
+  border-radius: var(--radius-xl);
+  padding: var(--space-xl);
+  box-shadow: 0 16px 44px rgba(20, 26, 46, .1);
+}
 .hero-visual { position: relative; z-index: 1; }
 .hero-visual { position: relative; z-index: 1; }
 /* 照片套照片:视觉卡片加白描边 + 大圆角 + 深投影,叠在底图之上 */
 /* 照片套照片:视觉卡片加白描边 + 大圆角 + 深投影,叠在底图之上 */
 .lifestyle-shot--hero {
 .lifestyle-shot--hero {

+ 0 - 1
web/index.html

@@ -128,7 +128,6 @@
         </div>
         </div>
       </div>
       </div>
       <div class="hero-visual">
       <div class="hero-visual">
-        <div class="lifestyle-shot lifestyle-shot--hero has-photo" data-img="hero-lifestyle" role="img" aria-label="一家人健康生活方式场景配图位"><img src="img/lifestyle-hero.png" alt="一家人在阳光厨房里一起准备健康早餐"></div>
         <div class="evidence-chain" aria-label="了解、陪伴、适合的生活路径">
         <div class="evidence-chain" aria-label="了解、陪伴、适合的生活路径">
           <div class="ec-head">
           <div class="ec-head">
             <span class="ec-kicker">了解 → 陪伴 → 适合</span>
             <span class="ec-kicker">了解 → 陪伴 → 适合</span>