diff --git a/src/css/main-snake.css b/src/css/main-snake.css
index 7938bf34..aa8eb4ab 100755
--- a/src/css/main-snake.css
+++ b/src/css/main-snake.css
@@ -85,6 +85,16 @@ a.snake-link:hover {
position: absolute;
}
+.snake-bomb-block {
+ margin: 0px;
+ padding: 0px;
+ background-color: #ff0000;
+ border: 2px solid #000000;
+ position: absolute;
+ border-radius: 50%;
+ box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
+}
+
.snake-playing-field {
margin: 0px;
padding: 0px;
diff --git a/src/index.html b/src/index.html
index 03dc6b10..be2016d4 100755
--- a/src/index.html
+++ b/src/index.html
@@ -26,6 +26,96 @@
z-index: 10000;
padding: 5px;
}
+
+ /* 游戏说明面板样式 */
+ .instructions-panel {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.8);
+ z-index: 20000;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .instructions-content {
+ background-color: white;
+ padding: 30px;
+ border-radius: 10px;
+ max-width: 600px;
+ max-height: 80%;
+ overflow-y: auto;
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
+ }
+
+ .instructions-content h2 {
+ margin-top: 0;
+ color: #333;
+ text-align: center;
+ }
+
+ .instructions-content h3 {
+ color: #555;
+ margin-top: 20px;
+ margin-bottom: 10px;
+ }
+
+ .instructions-content ul {
+ margin: 10px 0;
+ padding-left: 20px;
+ }
+
+ .instructions-content li {
+ margin: 5px 0;
+ line-height: 1.5;
+ }
+
+ .instructions-close {
+ display: block;
+ margin: 20px auto 0;
+ padding: 10px 20px;
+ background-color: #4CAF50;
+ color: white;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+ font-size: 16px;
+ }
+
+ .instructions-close:hover {
+ background-color: #45a049;
+ }
+
+ #show_instructions {
+ margin-left: 10px;
+ padding: 5px 10px;
+ background-color: #2196F3;
+ color: white;
+ border: none;
+ border-radius: 3px;
+ cursor: pointer;
+ }
+
+ #show_instructions:hover {
+ background-color: #0b7dda;
+ }
+
+ #pause_game {
+ margin-left: 10px;
+ padding: 5px 10px;
+ background-color: #ff9800;
+ color: white;
+ border: none;
+ border-radius: 3px;
+ cursor: pointer;
+ }
+
+ #pause_game:hover {
+ background-color: #e68900;
+ }