Upload 4 files
Browse files- README.md +14 -11
- index.html +40 -18
- script.js +4 -5
- style.css +251 -226
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
title: Rabbit Zoo
|
| 3 |
emoji: 🐰
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
app_file: index.html
|
| 8 |
pinned: false
|
|
@@ -12,11 +12,21 @@ pinned: false
|
|
| 12 |
|
| 13 |
這是一個可直接部署到 **Hugging Face Spaces / Static HTML** 的兔子動物園網頁。
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
## 檔案說明
|
| 16 |
|
| 17 |
- `index.html`:主頁面
|
| 18 |
-
- `style.css`:樣式與動畫
|
| 19 |
-
- `script.js`:點擊互動與語音
|
| 20 |
- `README.md`:Hugging Face Space 設定檔
|
| 21 |
|
| 22 |
## 使用方式
|
|
@@ -24,10 +34,3 @@ pinned: false
|
|
| 24 |
1. 在 Hugging Face 建立一個新的 **Static HTML** Space。
|
| 25 |
2. 把這個資料夾內的所有檔案上傳到 Space 根目錄。
|
| 26 |
3. 等待 Space 重新部署完成後,就能看到兔子動物園網頁。
|
| 27 |
-
|
| 28 |
-
## 功能
|
| 29 |
-
|
| 30 |
-
- 草地與天空動物園背景
|
| 31 |
-
- 五隻兔子持續跳動
|
| 32 |
-
- 點擊兔子會顯示對話泡泡
|
| 33 |
-
- 兔子會說:**早安!我的名字叫 rabbit!**
|
|
|
|
| 1 |
---
|
| 2 |
title: Rabbit Zoo
|
| 3 |
emoji: 🐰
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
app_file: index.html
|
| 8 |
pinned: false
|
|
|
|
| 12 |
|
| 13 |
這是一個可直接部署到 **Hugging Face Spaces / Static HTML** 的兔子動物園網頁。
|
| 14 |
|
| 15 |
+
## 已更新內容
|
| 16 |
+
|
| 17 |
+
- 紅色柵欄
|
| 18 |
+
- 卡通風招牌 **Rabbit Zoo**
|
| 19 |
+
- 胡蘿蔔生長在草皮上
|
| 20 |
+
- 五隻兔子跳來跳去
|
| 21 |
+
- 每隻兔子名字都不同
|
| 22 |
+
- 點擊兔子會說早安與吉祥話
|
| 23 |
+
- 支援瀏覽器語音朗讀
|
| 24 |
+
|
| 25 |
## 檔案說明
|
| 26 |
|
| 27 |
- `index.html`:主頁面
|
| 28 |
+
- `style.css`:樣式、背景、兔子、柵欄、胡蘿蔔與動畫
|
| 29 |
+
- `script.js`:點擊互動與語音功能
|
| 30 |
- `README.md`:Hugging Face Space 設定檔
|
| 31 |
|
| 32 |
## 使用方式
|
|
|
|
| 34 |
1. 在 Hugging Face 建立一個新的 **Static HTML** Space。
|
| 35 |
2. 把這個資料夾內的所有檔案上傳到 Space 根目錄。
|
| 36 |
3. 等待 Space 重新部署完成後,就能看到兔子動物園網頁。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
index.html
CHANGED
|
@@ -8,25 +8,32 @@
|
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<header class="top-bar">
|
| 11 |
-
<
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
</header>
|
| 14 |
|
| 15 |
<main class="zoo-scene" aria-label="兔子動物園場景">
|
| 16 |
<div class="sun"></div>
|
| 17 |
<div class="cloud cloud-1"></div>
|
| 18 |
<div class="cloud cloud-2"></div>
|
|
|
|
|
|
|
| 19 |
<div class="hill hill-back"></div>
|
| 20 |
<div class="hill hill-front"></div>
|
| 21 |
|
| 22 |
-
<div class="
|
| 23 |
-
|
| 24 |
-
<div class="
|
| 25 |
-
<div class="
|
| 26 |
-
<div class="
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
<button class="rabbit rabbit-1" data-name="
|
| 29 |
-
<span class="speech">早安!我
|
| 30 |
<span class="ear ear-left"></span>
|
| 31 |
<span class="ear ear-right"></span>
|
| 32 |
<span class="face">
|
|
@@ -34,14 +41,17 @@
|
|
| 34 |
<span class="eye eye-right"></span>
|
| 35 |
<span class="nose"></span>
|
| 36 |
<span class="mouth"></span>
|
|
|
|
|
|
|
| 37 |
</span>
|
| 38 |
<span class="body"></span>
|
|
|
|
| 39 |
<span class="foot foot-left"></span>
|
| 40 |
<span class="foot foot-right"></span>
|
| 41 |
</button>
|
| 42 |
|
| 43 |
-
<button class="rabbit rabbit-2" data-name="
|
| 44 |
-
<span class="speech">早安!我
|
| 45 |
<span class="ear ear-left"></span>
|
| 46 |
<span class="ear ear-right"></span>
|
| 47 |
<span class="face">
|
|
@@ -49,14 +59,17 @@
|
|
| 49 |
<span class="eye eye-right"></span>
|
| 50 |
<span class="nose"></span>
|
| 51 |
<span class="mouth"></span>
|
|
|
|
|
|
|
| 52 |
</span>
|
| 53 |
<span class="body"></span>
|
|
|
|
| 54 |
<span class="foot foot-left"></span>
|
| 55 |
<span class="foot foot-right"></span>
|
| 56 |
</button>
|
| 57 |
|
| 58 |
-
<button class="rabbit rabbit-3" data-name="
|
| 59 |
-
<span class="speech">早安!我
|
| 60 |
<span class="ear ear-left"></span>
|
| 61 |
<span class="ear ear-right"></span>
|
| 62 |
<span class="face">
|
|
@@ -64,14 +77,17 @@
|
|
| 64 |
<span class="eye eye-right"></span>
|
| 65 |
<span class="nose"></span>
|
| 66 |
<span class="mouth"></span>
|
|
|
|
|
|
|
| 67 |
</span>
|
| 68 |
<span class="body"></span>
|
|
|
|
| 69 |
<span class="foot foot-left"></span>
|
| 70 |
<span class="foot foot-right"></span>
|
| 71 |
</button>
|
| 72 |
|
| 73 |
-
<button class="rabbit rabbit-4" data-name="
|
| 74 |
-
<span class="speech">早安!我
|
| 75 |
<span class="ear ear-left"></span>
|
| 76 |
<span class="ear ear-right"></span>
|
| 77 |
<span class="face">
|
|
@@ -79,14 +95,17 @@
|
|
| 79 |
<span class="eye eye-right"></span>
|
| 80 |
<span class="nose"></span>
|
| 81 |
<span class="mouth"></span>
|
|
|
|
|
|
|
| 82 |
</span>
|
| 83 |
<span class="body"></span>
|
|
|
|
| 84 |
<span class="foot foot-left"></span>
|
| 85 |
<span class="foot foot-right"></span>
|
| 86 |
</button>
|
| 87 |
|
| 88 |
-
<button class="rabbit rabbit-5" data-name="
|
| 89 |
-
<span class="speech">早安!我
|
| 90 |
<span class="ear ear-left"></span>
|
| 91 |
<span class="ear ear-right"></span>
|
| 92 |
<span class="face">
|
|
@@ -94,15 +113,18 @@
|
|
| 94 |
<span class="eye eye-right"></span>
|
| 95 |
<span class="nose"></span>
|
| 96 |
<span class="mouth"></span>
|
|
|
|
|
|
|
| 97 |
</span>
|
| 98 |
<span class="body"></span>
|
|
|
|
| 99 |
<span class="foot foot-left"></span>
|
| 100 |
<span class="foot foot-right"></span>
|
| 101 |
</button>
|
| 102 |
</main>
|
| 103 |
|
| 104 |
<footer class="footer">
|
| 105 |
-
<p>
|
| 106 |
</footer>
|
| 107 |
|
| 108 |
<script src="script.js"></script>
|
|
|
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<header class="top-bar">
|
| 11 |
+
<div class="signboard-wrap">
|
| 12 |
+
<div class="signboard">🐰 Rabbit Zoo 🥕</div>
|
| 13 |
+
</div>
|
| 14 |
+
<p>點擊兔子,牠會對你說吉祥話!</p>
|
| 15 |
</header>
|
| 16 |
|
| 17 |
<main class="zoo-scene" aria-label="兔子動物園場景">
|
| 18 |
<div class="sun"></div>
|
| 19 |
<div class="cloud cloud-1"></div>
|
| 20 |
<div class="cloud cloud-2"></div>
|
| 21 |
+
<div class="cloud cloud-3"></div>
|
| 22 |
+
|
| 23 |
<div class="hill hill-back"></div>
|
| 24 |
<div class="hill hill-front"></div>
|
| 25 |
|
| 26 |
+
<div class="fence fence-back"></div>
|
| 27 |
+
|
| 28 |
+
<div class="carrot carrot-1"></div>
|
| 29 |
+
<div class="carrot carrot-2"></div>
|
| 30 |
+
<div class="carrot carrot-3"></div>
|
| 31 |
+
<div class="carrot carrot-4"></div>
|
| 32 |
+
<div class="carrot carrot-5"></div>
|
| 33 |
+
<div class="carrot carrot-6"></div>
|
| 34 |
|
| 35 |
+
<button class="rabbit rabbit-1" data-name="Momo" data-message="早安!我是 Momo,祝你今天心想事成、幸福滿滿!" aria-label="兔子 Momo">
|
| 36 |
+
<span class="speech">早安!我是 Momo,祝你今天心想事成、幸福滿滿!</span>
|
| 37 |
<span class="ear ear-left"></span>
|
| 38 |
<span class="ear ear-right"></span>
|
| 39 |
<span class="face">
|
|
|
|
| 41 |
<span class="eye eye-right"></span>
|
| 42 |
<span class="nose"></span>
|
| 43 |
<span class="mouth"></span>
|
| 44 |
+
<span class="cheek cheek-left"></span>
|
| 45 |
+
<span class="cheek cheek-right"></span>
|
| 46 |
</span>
|
| 47 |
<span class="body"></span>
|
| 48 |
+
<span class="tail"></span>
|
| 49 |
<span class="foot foot-left"></span>
|
| 50 |
<span class="foot foot-right"></span>
|
| 51 |
</button>
|
| 52 |
|
| 53 |
+
<button class="rabbit rabbit-2" data-name="Coco" data-message="早安!我是 Coco,祝你好運連連、事事順心!" aria-label="兔子 Coco">
|
| 54 |
+
<span class="speech">早安!我是 Coco,祝你好運連連、事事順心!</span>
|
| 55 |
<span class="ear ear-left"></span>
|
| 56 |
<span class="ear ear-right"></span>
|
| 57 |
<span class="face">
|
|
|
|
| 59 |
<span class="eye eye-right"></span>
|
| 60 |
<span class="nose"></span>
|
| 61 |
<span class="mouth"></span>
|
| 62 |
+
<span class="cheek cheek-left"></span>
|
| 63 |
+
<span class="cheek cheek-right"></span>
|
| 64 |
</span>
|
| 65 |
<span class="body"></span>
|
| 66 |
+
<span class="tail"></span>
|
| 67 |
<span class="foot foot-left"></span>
|
| 68 |
<span class="foot foot-right"></span>
|
| 69 |
</button>
|
| 70 |
|
| 71 |
+
<button class="rabbit rabbit-3" data-name="Puffy" data-message="早安!我是 Puffy,祝你平安健康、天天開心!" aria-label="兔子 Puffy">
|
| 72 |
+
<span class="speech">早安!我是 Puffy,祝你平安健康、天天開心!</span>
|
| 73 |
<span class="ear ear-left"></span>
|
| 74 |
<span class="ear ear-right"></span>
|
| 75 |
<span class="face">
|
|
|
|
| 77 |
<span class="eye eye-right"></span>
|
| 78 |
<span class="nose"></span>
|
| 79 |
<span class="mouth"></span>
|
| 80 |
+
<span class="cheek cheek-left"></span>
|
| 81 |
+
<span class="cheek cheek-right"></span>
|
| 82 |
</span>
|
| 83 |
<span class="body"></span>
|
| 84 |
+
<span class="tail"></span>
|
| 85 |
<span class="foot foot-left"></span>
|
| 86 |
<span class="foot foot-right"></span>
|
| 87 |
</button>
|
| 88 |
|
| 89 |
+
<button class="rabbit rabbit-4" data-name="Bunny" data-message="早安!我是 Bunny,祝你財源滾滾、福氣滿門!" aria-label="兔子 Bunny">
|
| 90 |
+
<span class="speech">早安!我是 Bunny,祝你財源滾滾、福氣滿門!</span>
|
| 91 |
<span class="ear ear-left"></span>
|
| 92 |
<span class="ear ear-right"></span>
|
| 93 |
<span class="face">
|
|
|
|
| 95 |
<span class="eye eye-right"></span>
|
| 96 |
<span class="nose"></span>
|
| 97 |
<span class="mouth"></span>
|
| 98 |
+
<span class="cheek cheek-left"></span>
|
| 99 |
+
<span class="cheek cheek-right"></span>
|
| 100 |
</span>
|
| 101 |
<span class="body"></span>
|
| 102 |
+
<span class="tail"></span>
|
| 103 |
<span class="foot foot-left"></span>
|
| 104 |
<span class="foot foot-right"></span>
|
| 105 |
</button>
|
| 106 |
|
| 107 |
+
<button class="rabbit rabbit-5" data-name="Lulu" data-message="早安!我是 Lulu,祝你靈��滿滿、每件事都超級順利!" aria-label="兔子 Lulu">
|
| 108 |
+
<span class="speech">早安!我是 Lulu,祝你靈感滿滿、每件事都超級順利!</span>
|
| 109 |
<span class="ear ear-left"></span>
|
| 110 |
<span class="ear ear-right"></span>
|
| 111 |
<span class="face">
|
|
|
|
| 113 |
<span class="eye eye-right"></span>
|
| 114 |
<span class="nose"></span>
|
| 115 |
<span class="mouth"></span>
|
| 116 |
+
<span class="cheek cheek-left"></span>
|
| 117 |
+
<span class="cheek cheek-right"></span>
|
| 118 |
</span>
|
| 119 |
<span class="body"></span>
|
| 120 |
+
<span class="tail"></span>
|
| 121 |
<span class="foot foot-left"></span>
|
| 122 |
<span class="foot foot-right"></span>
|
| 123 |
</button>
|
| 124 |
</main>
|
| 125 |
|
| 126 |
<footer class="footer">
|
| 127 |
+
<p>Built for Hugging Face Static HTML Space</p>
|
| 128 |
</footer>
|
| 129 |
|
| 130 |
<script src="script.js"></script>
|
script.js
CHANGED
|
@@ -7,7 +7,7 @@ function speakGreeting(text) {
|
|
| 7 |
window.speechSynthesis.cancel();
|
| 8 |
const utterance = new SpeechSynthesisUtterance(text);
|
| 9 |
utterance.lang = 'zh-TW';
|
| 10 |
-
utterance.rate =
|
| 11 |
utterance.pitch = 1.15;
|
| 12 |
window.speechSynthesis.speak(utterance);
|
| 13 |
}
|
|
@@ -16,17 +16,16 @@ function showGreeting(rabbit) {
|
|
| 16 |
rabbits.forEach(item => item.classList.remove('talking'));
|
| 17 |
rabbit.classList.add('talking');
|
| 18 |
|
| 19 |
-
const
|
| 20 |
-
const message = `早安!我的名字叫 ${name}!`;
|
| 21 |
speakGreeting(message);
|
| 22 |
|
| 23 |
clearTimeout(activeTimer);
|
| 24 |
activeTimer = setTimeout(() => {
|
| 25 |
rabbit.classList.remove('talking');
|
| 26 |
-
},
|
| 27 |
}
|
| 28 |
|
| 29 |
-
rabbits.forEach(rabbit => {
|
| 30 |
rabbit.addEventListener('click', () => showGreeting(rabbit));
|
| 31 |
rabbit.addEventListener('keydown', (event) => {
|
| 32 |
if (event.key === 'Enter' || event.key === ' ') {
|
|
|
|
| 7 |
window.speechSynthesis.cancel();
|
| 8 |
const utterance = new SpeechSynthesisUtterance(text);
|
| 9 |
utterance.lang = 'zh-TW';
|
| 10 |
+
utterance.rate = 0.96;
|
| 11 |
utterance.pitch = 1.15;
|
| 12 |
window.speechSynthesis.speak(utterance);
|
| 13 |
}
|
|
|
|
| 16 |
rabbits.forEach(item => item.classList.remove('talking'));
|
| 17 |
rabbit.classList.add('talking');
|
| 18 |
|
| 19 |
+
const message = rabbit.dataset.message || `早安!我的名字叫 ${rabbit.dataset.name || 'rabbit'}!`;
|
|
|
|
| 20 |
speakGreeting(message);
|
| 21 |
|
| 22 |
clearTimeout(activeTimer);
|
| 23 |
activeTimer = setTimeout(() => {
|
| 24 |
rabbit.classList.remove('talking');
|
| 25 |
+
}, 2800);
|
| 26 |
}
|
| 27 |
|
| 28 |
+
rabbits.forEach((rabbit) => {
|
| 29 |
rabbit.addEventListener('click', () => showGreeting(rabbit));
|
| 30 |
rabbit.addEventListener('keydown', (event) => {
|
| 31 |
if (event.key === 'Enter' || event.key === ' ') {
|
style.css
CHANGED
|
@@ -1,381 +1,406 @@
|
|
| 1 |
:root {
|
| 2 |
-
--sky-top: #
|
| 3 |
-
--sky-bottom: #
|
| 4 |
-
--grass-main: #
|
| 5 |
-
--grass-dark: #
|
| 6 |
-
--
|
| 7 |
-
--
|
| 8 |
-
--
|
| 9 |
-
--
|
| 10 |
-
--
|
| 11 |
-
--
|
| 12 |
-
--
|
| 13 |
-
--
|
| 14 |
-
--
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
* { box-sizing: border-box; }
|
| 18 |
-
|
| 19 |
body {
|
| 20 |
-
margin: 0;
|
| 21 |
min-height: 100vh;
|
| 22 |
font-family: "Segoe UI", "Noto Sans TC", sans-serif;
|
| 23 |
color: var(--text);
|
| 24 |
-
background: linear-gradient(to bottom, #dff5ff, #
|
| 25 |
-
overflow: hidden;
|
| 26 |
}
|
| 27 |
|
| 28 |
.top-bar,
|
| 29 |
.footer {
|
| 30 |
text-align: center;
|
| 31 |
position: relative;
|
| 32 |
-
z-index:
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
-
.top-bar {
|
| 36 |
-
padding: 18px 12px 10px;
|
| 37 |
-
}
|
| 38 |
-
|
| 39 |
-
.top-bar h1 {
|
| 40 |
-
margin: 0;
|
| 41 |
-
font-size: clamp(1.8rem, 4vw, 3rem);
|
| 42 |
}
|
| 43 |
|
| 44 |
-
.top-bar
|
| 45 |
-
.
|
| 46 |
-
|
| 47 |
-
}
|
| 48 |
|
| 49 |
-
.
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
.zoo-scene {
|
| 55 |
position: relative;
|
| 56 |
-
width: min(
|
| 57 |
-
height:
|
| 58 |
-
min-height:
|
| 59 |
margin: 0 auto;
|
| 60 |
-
border-radius:
|
| 61 |
overflow: hidden;
|
| 62 |
-
box-shadow: 0 16px
|
| 63 |
background:
|
| 64 |
-
radial-gradient(circle at
|
| 65 |
-
radial-gradient(circle at
|
| 66 |
-
linear-gradient(to bottom, var(--sky-top), var(--sky-bottom) 58%,
|
| 67 |
}
|
| 68 |
|
| 69 |
.sun {
|
| 70 |
position: absolute;
|
| 71 |
-
top:
|
| 72 |
-
right:
|
| 73 |
-
width:
|
| 74 |
-
height:
|
| 75 |
border-radius: 50%;
|
| 76 |
-
background: radial-gradient(circle, #
|
| 77 |
-
box-shadow: 0 0
|
| 78 |
}
|
| 79 |
|
| 80 |
.cloud {
|
| 81 |
position: absolute;
|
| 82 |
width: 140px;
|
| 83 |
-
height:
|
| 84 |
-
background: rgba(255,255,255,0.95);
|
| 85 |
border-radius: 999px;
|
| 86 |
-
|
| 87 |
-
|
|
|
|
| 88 |
}
|
| 89 |
-
|
| 90 |
.cloud::before,
|
| 91 |
.cloud::after {
|
| 92 |
content: "";
|
| 93 |
position: absolute;
|
| 94 |
-
background: rgba(255,255,255,0.95);
|
| 95 |
border-radius: 50%;
|
|
|
|
| 96 |
}
|
| 97 |
-
|
| 98 |
-
.cloud::
|
| 99 |
-
.cloud
|
| 100 |
-
|
| 101 |
-
.cloud-
|
| 102 |
-
.cloud-2 { top: 140px; left: 380px; animation-duration: 24s; }
|
| 103 |
|
| 104 |
.hill {
|
| 105 |
position: absolute;
|
| 106 |
-
bottom: 150px;
|
| 107 |
border-radius: 50% 50% 0 0;
|
| 108 |
}
|
| 109 |
-
|
| 110 |
.hill-back {
|
| 111 |
-
|
|
|
|
| 112 |
width: 52%;
|
| 113 |
-
height:
|
| 114 |
-
background:
|
| 115 |
}
|
| 116 |
-
|
| 117 |
.hill-front {
|
|
|
|
| 118 |
right: -5%;
|
| 119 |
width: 60%;
|
| 120 |
height: 220px;
|
| 121 |
-
background:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
}
|
| 123 |
|
| 124 |
.zoo-scene::after {
|
| 125 |
content: "";
|
| 126 |
position: absolute;
|
| 127 |
inset: auto 0 0 0;
|
| 128 |
-
height:
|
| 129 |
background:
|
| 130 |
-
radial-gradient(circle at
|
| 131 |
-
radial-gradient(circle at
|
|
|
|
| 132 |
linear-gradient(to top, var(--grass-dark), var(--grass-main));
|
| 133 |
}
|
| 134 |
|
| 135 |
-
.
|
| 136 |
position: absolute;
|
| 137 |
-
bottom:
|
| 138 |
-
width:
|
| 139 |
-
height:
|
| 140 |
-
background: linear-gradient(to
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
.
|
|
|
|
| 146 |
content: "";
|
| 147 |
position: absolute;
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
radial-gradient(circle at 12% 40%, var(--flower-pink) 0 28%, transparent 29%);
|
| 163 |
-
}
|
| 164 |
-
|
| 165 |
-
.flower::after {
|
| 166 |
-
width: 18px;
|
| 167 |
-
height: 10px;
|
| 168 |
-
left: -10px;
|
| 169 |
-
top: 18px;
|
| 170 |
-
border-radius: 10px 0 10px 0;
|
| 171 |
-
background: #58ba41;
|
| 172 |
-
transform: rotate(-25deg);
|
| 173 |
-
}
|
| 174 |
-
|
| 175 |
-
.flower-1 { left: 8%; }
|
| 176 |
-
.flower-2 { left: 22%; height: 62px; }
|
| 177 |
-
.flower-3 { left: 49%; height: 75px; }
|
| 178 |
-
.flower-4 { left: 72%; height: 66px; }
|
| 179 |
-
.flower-5 { left: 88%; height: 72px; }
|
| 180 |
|
| 181 |
.rabbit {
|
| 182 |
position: absolute;
|
| 183 |
-
bottom:
|
| 184 |
-
width:
|
| 185 |
-
height:
|
| 186 |
border: none;
|
| 187 |
background: transparent;
|
| 188 |
-
cursor: pointer;
|
| 189 |
padding: 0;
|
| 190 |
-
|
|
|
|
| 191 |
transform-origin: bottom center;
|
| 192 |
-
animation: hop 2.
|
| 193 |
}
|
| 194 |
-
|
| 195 |
.rabbit:focus-visible {
|
| 196 |
-
outline: 3px solid rgba(
|
| 197 |
outline-offset: 4px;
|
| 198 |
-
border-radius:
|
| 199 |
}
|
| 200 |
-
|
| 201 |
.rabbit .face,
|
| 202 |
.rabbit .body,
|
| 203 |
-
.rabbit .ear,
|
| 204 |
.rabbit .foot,
|
|
|
|
|
|
|
| 205 |
.rabbit .eye,
|
| 206 |
.rabbit .nose,
|
| 207 |
.rabbit .mouth,
|
| 208 |
-
.rabbit .
|
| 209 |
position: absolute;
|
| 210 |
}
|
| 211 |
|
| 212 |
.rabbit .ear {
|
| 213 |
-
top:
|
| 214 |
-
width:
|
| 215 |
-
height:
|
| 216 |
border-radius: 999px;
|
| 217 |
background: var(--rabbit);
|
| 218 |
-
box-shadow: inset 0 0 0 2px #
|
| 219 |
}
|
| 220 |
-
|
| 221 |
.rabbit .ear::after {
|
| 222 |
content: "";
|
| 223 |
position: absolute;
|
| 224 |
-
inset:
|
| 225 |
border-radius: 999px;
|
| 226 |
background: var(--ear-pink);
|
| 227 |
}
|
| 228 |
-
|
| 229 |
-
.ear-
|
| 230 |
-
.ear-right { right: 23px; transform: rotate(10deg); }
|
| 231 |
|
| 232 |
.rabbit .face {
|
| 233 |
-
top:
|
| 234 |
-
left:
|
| 235 |
-
width:
|
| 236 |
-
height:
|
| 237 |
border-radius: 50%;
|
| 238 |
background: var(--rabbit);
|
| 239 |
-
box-shadow: inset 0 -2px 0 #
|
| 240 |
}
|
| 241 |
-
|
| 242 |
.rabbit .body {
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
width:
|
| 246 |
-
height:
|
|
|
|
| 247 |
background: var(--rabbit);
|
| 248 |
-
border-radius: 46% 46% 38% 38%;
|
| 249 |
box-shadow: inset 0 -3px 0 var(--rabbit-shadow);
|
| 250 |
}
|
| 251 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
.rabbit .foot {
|
| 253 |
-
bottom:
|
| 254 |
-
width:
|
| 255 |
-
height:
|
| 256 |
border-radius: 999px;
|
| 257 |
-
background: #
|
| 258 |
}
|
| 259 |
-
|
| 260 |
.foot-left { left: 20px; }
|
| 261 |
.foot-right { right: 20px; }
|
| 262 |
-
|
| 263 |
.rabbit .eye {
|
| 264 |
-
top:
|
| 265 |
-
width:
|
| 266 |
-
height:
|
| 267 |
border-radius: 50%;
|
| 268 |
-
background: #
|
| 269 |
}
|
| 270 |
-
|
| 271 |
.eye-left { left: 18px; }
|
| 272 |
.eye-right { right: 18px; }
|
| 273 |
-
|
| 274 |
.rabbit .nose {
|
| 275 |
-
top:
|
| 276 |
-
left:
|
| 277 |
-
width:
|
| 278 |
height: 6px;
|
| 279 |
-
background: #
|
| 280 |
-
|
| 281 |
-
border-radius: 2px;
|
| 282 |
}
|
| 283 |
-
|
| 284 |
.rabbit .mouth {
|
| 285 |
-
top:
|
| 286 |
left: 24px;
|
| 287 |
-
width:
|
| 288 |
-
height:
|
| 289 |
-
border-bottom: 2px solid #
|
| 290 |
-
border-radius: 0 0
|
| 291 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
|
| 293 |
-
.speech {
|
| 294 |
left: 50%;
|
| 295 |
bottom: 132px;
|
| 296 |
-
transform: translateX(-50%) scale(
|
| 297 |
-
|
| 298 |
-
min-width: 150px;
|
| 299 |
padding: 10px 12px;
|
| 300 |
-
border-radius:
|
| 301 |
background: var(--speech-bg);
|
| 302 |
-
color: #
|
| 303 |
-
font-size:
|
| 304 |
-
font-weight:
|
| 305 |
-
|
|
|
|
| 306 |
opacity: 0;
|
| 307 |
pointer-events: none;
|
| 308 |
-
transition: opacity
|
| 309 |
}
|
| 310 |
-
|
| 311 |
-
.speech::after {
|
| 312 |
content: "";
|
| 313 |
position: absolute;
|
| 314 |
left: 50%;
|
| 315 |
bottom: -10px;
|
| 316 |
-
width:
|
| 317 |
-
height:
|
| 318 |
background: var(--speech-bg);
|
| 319 |
transform: translateX(-50%) rotate(45deg);
|
| 320 |
}
|
| 321 |
-
|
| 322 |
.rabbit.talking .speech {
|
| 323 |
opacity: 1;
|
| 324 |
transform: translateX(-50%) scale(1);
|
| 325 |
}
|
| 326 |
|
| 327 |
-
.rabbit-1 { left:
|
| 328 |
-
.rabbit-2 { left:
|
| 329 |
-
.rabbit-3 { left:
|
| 330 |
-
.rabbit-4 { left:
|
| 331 |
-
.rabbit-5 { left:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
|
| 333 |
@keyframes hop {
|
| 334 |
0%, 100% { transform: translateY(0) scaleX(1); }
|
| 335 |
-
20% { transform: translateY(-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
70% { transform: translateY(0); }
|
| 340 |
}
|
| 341 |
|
| 342 |
@keyframes drift {
|
| 343 |
0% { transform: translateX(0); }
|
| 344 |
-
50% { transform: translateX(
|
| 345 |
100% { transform: translateX(0); }
|
| 346 |
}
|
| 347 |
|
| 348 |
-
@
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
min-height: 620px;
|
| 352 |
-
}
|
| 353 |
-
|
| 354 |
-
.rabbit {
|
| 355 |
-
transform: scale(0.88);
|
| 356 |
-
}
|
| 357 |
-
|
| 358 |
-
.rabbit-1 { left: 2%; }
|
| 359 |
-
.rabbit-2 { left: 18%; }
|
| 360 |
-
.rabbit-3 { left: 36%; }
|
| 361 |
-
.rabbit-4 { left: 56%; }
|
| 362 |
-
.rabbit-5 { left: 74%; }
|
| 363 |
}
|
| 364 |
|
| 365 |
-
@media (max-width:
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
.
|
| 369 |
-
|
| 370 |
-
}
|
| 371 |
-
|
| 372 |
-
.rabbit {
|
| 373 |
-
|
| 374 |
-
}
|
| 375 |
-
|
| 376 |
-
.rabbit-1 { left: 8%; bottom: 210px; }
|
| 377 |
-
.rabbit-2 { left: 58%; bottom: 230px; }
|
| 378 |
-
.rabbit-3 { left: 18%; bottom: 110px; }
|
| 379 |
-
.rabbit-4 { left: 66%; bottom: 110px; }
|
| 380 |
-
.rabbit-5 { left: 38%; bottom: 300px; }
|
| 381 |
}
|
|
|
|
| 1 |
:root {
|
| 2 |
+
--sky-top: #7ed1ff;
|
| 3 |
+
--sky-bottom: #f3fbff;
|
| 4 |
+
--grass-main: #73d65f;
|
| 5 |
+
--grass-dark: #43a53c;
|
| 6 |
+
--grass-light: #9bec73;
|
| 7 |
+
--fence-red: #db4545;
|
| 8 |
+
--fence-red-dark: #b72d2d;
|
| 9 |
+
--sign-pink: #ff74b1;
|
| 10 |
+
--sign-yellow: #ffe77a;
|
| 11 |
+
--rabbit: #ffffff;
|
| 12 |
+
--rabbit-shadow: #d9d9d9;
|
| 13 |
+
--ear-pink: #ffbfd7;
|
| 14 |
+
--speech-bg: rgba(255, 255, 255, 0.98);
|
| 15 |
+
--text: #25314d;
|
| 16 |
}
|
| 17 |
|
| 18 |
* { box-sizing: border-box; }
|
| 19 |
+
html, body { margin: 0; }
|
| 20 |
body {
|
|
|
|
| 21 |
min-height: 100vh;
|
| 22 |
font-family: "Segoe UI", "Noto Sans TC", sans-serif;
|
| 23 |
color: var(--text);
|
| 24 |
+
background: linear-gradient(to bottom, #dff5ff, #f8fff7);
|
| 25 |
+
overflow-x: hidden;
|
| 26 |
}
|
| 27 |
|
| 28 |
.top-bar,
|
| 29 |
.footer {
|
| 30 |
text-align: center;
|
| 31 |
position: relative;
|
| 32 |
+
z-index: 10;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
|
| 35 |
+
.top-bar { padding: 14px 12px 8px; }
|
| 36 |
+
.top-bar p { margin: 10px 0 0; font-size: 1rem; font-weight: 700; }
|
| 37 |
+
.footer { padding: 10px 12px 22px; font-size: .92rem; }
|
|
|
|
| 38 |
|
| 39 |
+
.signboard-wrap { display: flex; justify-content: center; }
|
| 40 |
+
.signboard {
|
| 41 |
+
display: inline-block;
|
| 42 |
+
padding: 14px 28px;
|
| 43 |
+
font-size: clamp(2rem, 4vw, 3.2rem);
|
| 44 |
+
font-weight: 900;
|
| 45 |
+
letter-spacing: 1px;
|
| 46 |
+
color: #fff;
|
| 47 |
+
background:
|
| 48 |
+
radial-gradient(circle at 20% 20%, #fff1 0 10%, transparent 11%),
|
| 49 |
+
linear-gradient(135deg, var(--sign-pink), #ff9e60 55%, var(--sign-yellow));
|
| 50 |
+
border: 6px solid #fff5bd;
|
| 51 |
+
border-radius: 28px;
|
| 52 |
+
text-shadow:
|
| 53 |
+
2px 2px 0 #ff4f91,
|
| 54 |
+
4px 4px 0 rgba(122, 39, 75, 0.28);
|
| 55 |
+
box-shadow: 0 10px 0 #f3c95d, 0 16px 30px rgba(0,0,0,0.18);
|
| 56 |
+
transform: rotate(-1.5deg);
|
| 57 |
}
|
| 58 |
|
| 59 |
.zoo-scene {
|
| 60 |
position: relative;
|
| 61 |
+
width: min(1240px, 96vw);
|
| 62 |
+
height: 74vh;
|
| 63 |
+
min-height: 560px;
|
| 64 |
margin: 0 auto;
|
| 65 |
+
border-radius: 30px;
|
| 66 |
overflow: hidden;
|
| 67 |
+
box-shadow: 0 16px 45px rgba(0, 72, 120, 0.18);
|
| 68 |
background:
|
| 69 |
+
radial-gradient(circle at 18% 14%, rgba(255,255,255,0.95) 0 5%, transparent 6%),
|
| 70 |
+
radial-gradient(circle at 82% 18%, rgba(255,255,255,0.82) 0 4%, transparent 5%),
|
| 71 |
+
linear-gradient(to bottom, var(--sky-top), var(--sky-bottom) 58%, var(--grass-light) 58%, var(--grass-main) 100%);
|
| 72 |
}
|
| 73 |
|
| 74 |
.sun {
|
| 75 |
position: absolute;
|
| 76 |
+
top: 30px;
|
| 77 |
+
right: 56px;
|
| 78 |
+
width: 112px;
|
| 79 |
+
height: 112px;
|
| 80 |
border-radius: 50%;
|
| 81 |
+
background: radial-gradient(circle, #fff8bf 0%, #ffe36b 58%, #ffbe3f 100%);
|
| 82 |
+
box-shadow: 0 0 42px rgba(255, 211, 87, 0.7);
|
| 83 |
}
|
| 84 |
|
| 85 |
.cloud {
|
| 86 |
position: absolute;
|
| 87 |
width: 140px;
|
| 88 |
+
height: 56px;
|
|
|
|
| 89 |
border-radius: 999px;
|
| 90 |
+
background: rgba(255,255,255,0.95);
|
| 91 |
+
filter: drop-shadow(0 6px 10px rgba(0,0,0,0.07));
|
| 92 |
+
animation: drift 22s linear infinite;
|
| 93 |
}
|
|
|
|
| 94 |
.cloud::before,
|
| 95 |
.cloud::after {
|
| 96 |
content: "";
|
| 97 |
position: absolute;
|
|
|
|
| 98 |
border-radius: 50%;
|
| 99 |
+
background: rgba(255,255,255,0.95);
|
| 100 |
}
|
| 101 |
+
.cloud::before { width: 54px; height: 54px; left: 18px; top: -22px; }
|
| 102 |
+
.cloud::after { width: 68px; height: 68px; right: 18px; top: -28px; }
|
| 103 |
+
.cloud-1 { top: 92px; left: 76px; }
|
| 104 |
+
.cloud-2 { top: 148px; left: 360px; animation-duration: 26s; }
|
| 105 |
+
.cloud-3 { top: 70px; left: 720px; animation-duration: 20s; }
|
|
|
|
| 106 |
|
| 107 |
.hill {
|
| 108 |
position: absolute;
|
|
|
|
| 109 |
border-radius: 50% 50% 0 0;
|
| 110 |
}
|
|
|
|
| 111 |
.hill-back {
|
| 112 |
+
bottom: 180px;
|
| 113 |
+
left: -2%;
|
| 114 |
width: 52%;
|
| 115 |
+
height: 170px;
|
| 116 |
+
background: #8fe06d;
|
| 117 |
}
|
|
|
|
| 118 |
.hill-front {
|
| 119 |
+
bottom: 152px;
|
| 120 |
right: -5%;
|
| 121 |
width: 60%;
|
| 122 |
height: 220px;
|
| 123 |
+
background: #64c84a;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
.fence {
|
| 127 |
+
position: absolute;
|
| 128 |
+
left: 0;
|
| 129 |
+
right: 0;
|
| 130 |
+
bottom: 158px;
|
| 131 |
+
height: 88px;
|
| 132 |
+
z-index: 2;
|
| 133 |
+
background:
|
| 134 |
+
linear-gradient(to bottom,
|
| 135 |
+
transparent 0 18px,
|
| 136 |
+
var(--fence-red) 18px 32px,
|
| 137 |
+
transparent 32px 44px,
|
| 138 |
+
var(--fence-red-dark) 44px 58px,
|
| 139 |
+
transparent 58px 100%
|
| 140 |
+
);
|
| 141 |
+
}
|
| 142 |
+
.fence::before {
|
| 143 |
+
content: "";
|
| 144 |
+
position: absolute;
|
| 145 |
+
inset: 0;
|
| 146 |
+
background:
|
| 147 |
+
linear-gradient(to right,
|
| 148 |
+
transparent 0 2%,
|
| 149 |
+
var(--fence-red) 2% 5%,
|
| 150 |
+
transparent 5% 12%,
|
| 151 |
+
var(--fence-red) 12% 15%,
|
| 152 |
+
transparent 15% 22%,
|
| 153 |
+
var(--fence-red) 22% 25%,
|
| 154 |
+
transparent 25% 32%,
|
| 155 |
+
var(--fence-red) 32% 35%,
|
| 156 |
+
transparent 35% 42%,
|
| 157 |
+
var(--fence-red) 42% 45%,
|
| 158 |
+
transparent 45% 52%,
|
| 159 |
+
var(--fence-red) 52% 55%,
|
| 160 |
+
transparent 55% 62%,
|
| 161 |
+
var(--fence-red) 62% 65%,
|
| 162 |
+
transparent 65% 72%,
|
| 163 |
+
var(--fence-red) 72% 75%,
|
| 164 |
+
transparent 75% 82%,
|
| 165 |
+
var(--fence-red) 82% 85%,
|
| 166 |
+
transparent 85% 92%,
|
| 167 |
+
var(--fence-red) 92% 95%,
|
| 168 |
+
transparent 95% 100%);
|
| 169 |
+
opacity: .95;
|
| 170 |
}
|
| 171 |
|
| 172 |
.zoo-scene::after {
|
| 173 |
content: "";
|
| 174 |
position: absolute;
|
| 175 |
inset: auto 0 0 0;
|
| 176 |
+
height: 200px;
|
| 177 |
background:
|
| 178 |
+
radial-gradient(circle at 14% 100%, rgba(255,255,255,0.2) 0 14%, transparent 15%),
|
| 179 |
+
radial-gradient(circle at 46% 100%, rgba(255,255,255,0.16) 0 19%, transparent 20%),
|
| 180 |
+
radial-gradient(circle at 76% 100%, rgba(255,255,255,0.13) 0 16%, transparent 17%),
|
| 181 |
linear-gradient(to top, var(--grass-dark), var(--grass-main));
|
| 182 |
}
|
| 183 |
|
| 184 |
+
.carrot {
|
| 185 |
position: absolute;
|
| 186 |
+
bottom: 92px;
|
| 187 |
+
width: 20px;
|
| 188 |
+
height: 56px;
|
| 189 |
+
background: linear-gradient(to bottom, #ffb050, #f57424 70%, #d95b16);
|
| 190 |
+
clip-path: polygon(50% 100%, 0 0, 100% 0);
|
| 191 |
+
z-index: 4;
|
| 192 |
+
animation: sway 3.2s ease-in-out infinite;
|
| 193 |
+
}
|
| 194 |
+
.carrot::before,
|
| 195 |
+
.carrot::after {
|
| 196 |
content: "";
|
| 197 |
position: absolute;
|
| 198 |
+
top: -10px;
|
| 199 |
+
width: 12px;
|
| 200 |
+
height: 20px;
|
| 201 |
+
background: linear-gradient(to bottom, #5cd05c, #2f9c39);
|
| 202 |
+
border-radius: 12px 12px 0 12px;
|
| 203 |
+
}
|
| 204 |
+
.carrot::before { left: 1px; transform: rotate(-35deg); }
|
| 205 |
+
.carrot::after { right: 1px; transform: rotate(35deg) scaleX(-1); }
|
| 206 |
+
.carrot-1 { left: 10%; }
|
| 207 |
+
.carrot-2 { left: 24%; animation-delay: -.6s; }
|
| 208 |
+
.carrot-3 { left: 41%; animation-delay: -1.2s; }
|
| 209 |
+
.carrot-4 { left: 63%; animation-delay: -.9s; }
|
| 210 |
+
.carrot-5 { left: 79%; animation-delay: -1.5s; }
|
| 211 |
+
.carrot-6 { left: 90%; animation-delay: -.3s; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
|
| 213 |
.rabbit {
|
| 214 |
position: absolute;
|
| 215 |
+
bottom: 106px;
|
| 216 |
+
width: 114px;
|
| 217 |
+
height: 150px;
|
| 218 |
border: none;
|
| 219 |
background: transparent;
|
|
|
|
| 220 |
padding: 0;
|
| 221 |
+
cursor: pointer;
|
| 222 |
+
z-index: 5;
|
| 223 |
transform-origin: bottom center;
|
| 224 |
+
animation: hop 2.15s ease-in-out infinite;
|
| 225 |
}
|
|
|
|
| 226 |
.rabbit:focus-visible {
|
| 227 |
+
outline: 3px solid rgba(67, 130, 255, 0.45);
|
| 228 |
outline-offset: 4px;
|
| 229 |
+
border-radius: 24px;
|
| 230 |
}
|
| 231 |
+
.rabbit .ear,
|
| 232 |
.rabbit .face,
|
| 233 |
.rabbit .body,
|
|
|
|
| 234 |
.rabbit .foot,
|
| 235 |
+
.rabbit .tail,
|
| 236 |
+
.rabbit .speech,
|
| 237 |
.rabbit .eye,
|
| 238 |
.rabbit .nose,
|
| 239 |
.rabbit .mouth,
|
| 240 |
+
.rabbit .cheek {
|
| 241 |
position: absolute;
|
| 242 |
}
|
| 243 |
|
| 244 |
.rabbit .ear {
|
| 245 |
+
top: 6px;
|
| 246 |
+
width: 24px;
|
| 247 |
+
height: 68px;
|
| 248 |
border-radius: 999px;
|
| 249 |
background: var(--rabbit);
|
| 250 |
+
box-shadow: inset 0 0 0 2px #f3f3f3;
|
| 251 |
}
|
|
|
|
| 252 |
.rabbit .ear::after {
|
| 253 |
content: "";
|
| 254 |
position: absolute;
|
| 255 |
+
inset: 10px 5px;
|
| 256 |
border-radius: 999px;
|
| 257 |
background: var(--ear-pink);
|
| 258 |
}
|
| 259 |
+
.ear-left { left: 26px; transform: rotate(-10deg); }
|
| 260 |
+
.ear-right { right: 26px; transform: rotate(10deg); }
|
|
|
|
| 261 |
|
| 262 |
.rabbit .face {
|
| 263 |
+
top: 42px;
|
| 264 |
+
left: 25px;
|
| 265 |
+
width: 64px;
|
| 266 |
+
height: 54px;
|
| 267 |
border-radius: 50%;
|
| 268 |
background: var(--rabbit);
|
| 269 |
+
box-shadow: inset 0 -2px 0 #ececec;
|
| 270 |
}
|
|
|
|
| 271 |
.rabbit .body {
|
| 272 |
+
top: 78px;
|
| 273 |
+
left: 16px;
|
| 274 |
+
width: 82px;
|
| 275 |
+
height: 58px;
|
| 276 |
+
border-radius: 48% 48% 38% 38%;
|
| 277 |
background: var(--rabbit);
|
|
|
|
| 278 |
box-shadow: inset 0 -3px 0 var(--rabbit-shadow);
|
| 279 |
}
|
| 280 |
+
.rabbit .tail {
|
| 281 |
+
top: 96px;
|
| 282 |
+
right: 5px;
|
| 283 |
+
width: 18px;
|
| 284 |
+
height: 18px;
|
| 285 |
+
border-radius: 50%;
|
| 286 |
+
background: #f6f6f6;
|
| 287 |
+
box-shadow: inset 0 -2px 0 #d9d9d9;
|
| 288 |
+
}
|
| 289 |
.rabbit .foot {
|
| 290 |
+
bottom: 10px;
|
| 291 |
+
width: 30px;
|
| 292 |
+
height: 15px;
|
| 293 |
border-radius: 999px;
|
| 294 |
+
background: #f3f3f3;
|
| 295 |
}
|
|
|
|
| 296 |
.foot-left { left: 20px; }
|
| 297 |
.foot-right { right: 20px; }
|
|
|
|
| 298 |
.rabbit .eye {
|
| 299 |
+
top: 20px;
|
| 300 |
+
width: 7px;
|
| 301 |
+
height: 9px;
|
| 302 |
border-radius: 50%;
|
| 303 |
+
background: #2f3143;
|
| 304 |
}
|
|
|
|
| 305 |
.eye-left { left: 18px; }
|
| 306 |
.eye-right { right: 18px; }
|
|
|
|
| 307 |
.rabbit .nose {
|
| 308 |
+
top: 28px;
|
| 309 |
+
left: 28px;
|
| 310 |
+
width: 8px;
|
| 311 |
height: 6px;
|
| 312 |
+
background: #ff97a8;
|
| 313 |
+
border-radius: 50% 50% 60% 60%;
|
|
|
|
| 314 |
}
|
|
|
|
| 315 |
.rabbit .mouth {
|
| 316 |
+
top: 34px;
|
| 317 |
left: 24px;
|
| 318 |
+
width: 16px;
|
| 319 |
+
height: 10px;
|
| 320 |
+
border-bottom: 2px solid #8c6670;
|
| 321 |
+
border-radius: 0 0 14px 14px;
|
| 322 |
}
|
| 323 |
+
.rabbit .cheek {
|
| 324 |
+
top: 28px;
|
| 325 |
+
width: 10px;
|
| 326 |
+
height: 7px;
|
| 327 |
+
border-radius: 50%;
|
| 328 |
+
background: rgba(255, 164, 189, 0.6);
|
| 329 |
+
}
|
| 330 |
+
.cheek-left { left: 9px; }
|
| 331 |
+
.cheek-right { right: 9px; }
|
| 332 |
|
| 333 |
+
.rabbit .speech {
|
| 334 |
left: 50%;
|
| 335 |
bottom: 132px;
|
| 336 |
+
transform: translateX(-50%) scale(.92);
|
| 337 |
+
width: 200px;
|
|
|
|
| 338 |
padding: 10px 12px;
|
| 339 |
+
border-radius: 18px;
|
| 340 |
background: var(--speech-bg);
|
| 341 |
+
color: #28405d;
|
| 342 |
+
font-size: .93rem;
|
| 343 |
+
font-weight: 800;
|
| 344 |
+
line-height: 1.35;
|
| 345 |
+
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
|
| 346 |
opacity: 0;
|
| 347 |
pointer-events: none;
|
| 348 |
+
transition: opacity .2s ease, transform .2s ease;
|
| 349 |
}
|
| 350 |
+
.rabbit .speech::after {
|
|
|
|
| 351 |
content: "";
|
| 352 |
position: absolute;
|
| 353 |
left: 50%;
|
| 354 |
bottom: -10px;
|
| 355 |
+
width: 16px;
|
| 356 |
+
height: 16px;
|
| 357 |
background: var(--speech-bg);
|
| 358 |
transform: translateX(-50%) rotate(45deg);
|
| 359 |
}
|
|
|
|
| 360 |
.rabbit.talking .speech {
|
| 361 |
opacity: 1;
|
| 362 |
transform: translateX(-50%) scale(1);
|
| 363 |
}
|
| 364 |
|
| 365 |
+
.rabbit-1 { left: 9%; animation-delay: 0s; }
|
| 366 |
+
.rabbit-2 { left: 25%; animation-delay: .35s; }
|
| 367 |
+
.rabbit-3 { left: 43%; animation-delay: .7s; }
|
| 368 |
+
.rabbit-4 { left: 61%; animation-delay: 1.05s; }
|
| 369 |
+
.rabbit-5 { left: 79%; animation-delay: 1.4s; }
|
| 370 |
+
|
| 371 |
+
.rabbit-2 .ear::after { background: #ffd3e5; }
|
| 372 |
+
.rabbit-3 .ear::after { background: #c9d8ff; }
|
| 373 |
+
.rabbit-4 .ear::after { background: #ffe3a6; }
|
| 374 |
+
.rabbit-5 .ear::after { background: #d4f1c7; }
|
| 375 |
|
| 376 |
@keyframes hop {
|
| 377 |
0%, 100% { transform: translateY(0) scaleX(1); }
|
| 378 |
+
20% { transform: translateY(-12px) scaleX(.98); }
|
| 379 |
+
42% { transform: translateY(-34px) scaleX(1.03); }
|
| 380 |
+
55% { transform: translateY(-10px) scaleX(.98); }
|
| 381 |
+
75% { transform: translateY(0) scaleX(1.02); }
|
|
|
|
| 382 |
}
|
| 383 |
|
| 384 |
@keyframes drift {
|
| 385 |
0% { transform: translateX(0); }
|
| 386 |
+
50% { transform: translateX(30px); }
|
| 387 |
100% { transform: translateX(0); }
|
| 388 |
}
|
| 389 |
|
| 390 |
+
@keyframes sway {
|
| 391 |
+
0%, 100% { transform: rotate(-4deg); }
|
| 392 |
+
50% { transform: rotate(4deg); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
}
|
| 394 |
|
| 395 |
+
@media (max-width: 900px) {
|
| 396 |
+
.zoo-scene { min-height: 780px; height: auto; aspect-ratio: 3 / 4; }
|
| 397 |
+
.fence { bottom: 190px; }
|
| 398 |
+
.hill-front { bottom: 182px; }
|
| 399 |
+
.hill-back { bottom: 220px; }
|
| 400 |
+
.rabbit { transform: scale(.9); }
|
| 401 |
+
.rabbit-1 { left: 4%; bottom: 106px; }
|
| 402 |
+
.rabbit-2 { left: 25%; bottom: 120px; }
|
| 403 |
+
.rabbit-3 { left: 47%; bottom: 102px; }
|
| 404 |
+
.rabbit-4 { left: 16%; bottom: 250px; }
|
| 405 |
+
.rabbit-5 { left: 60%; bottom: 248px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 406 |
}
|