diff --git a/index.html b/index.html
index 53c8190..3ecc03e 100644
--- a/index.html
+++ b/index.html
@@ -132,6 +132,11 @@
color: var(--secondary-color);
}
+ .logo img {
+ width: auto;
+ height: 50px;
+ }
+
/* 汉堡菜单按钮 */
.hamburger {
display: none;
@@ -162,7 +167,8 @@
top: 0;
}
- .hamburger span:nth-child(2), .hamburger span:nth-child(3) {
+ .hamburger span:nth-child(2),
+ .hamburger span:nth-child(3) {
top: 9px;
}
@@ -229,11 +235,11 @@
border-radius: 50%;
}
- input:checked + .slider {
+ input:checked+.slider {
background-color: var(--secondary-color);
}
- input:checked + .slider:before {
+ input:checked+.slider:before {
transform: translateX(30px);
}
@@ -475,17 +481,17 @@
color: var(--secondary-color);
font-size: 18px;
}
-
+
.loading-spinner i {
margin-right: 10px;
}
-
+
.news-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
-
+
.error-message {
color: #ff6b6b;
text-align: center;
@@ -498,11 +504,11 @@
.hero-title {
font-size: 48px;
}
-
+
.nav-links {
display: none;
}
-
+
.hamburger {
display: block;
}
@@ -512,23 +518,23 @@
.hero-title {
font-size: 36px;
}
-
+
.hero-description {
font-size: 16px;
}
-
+
.section-title {
font-size: 28px;
}
-
+
.links-grid {
grid-template-columns: 1fr;
}
-
+
.footer-links {
flex-wrap: wrap;
}
-
+
.footer-links li {
margin: 10px 15px;
}
@@ -538,37 +544,53 @@
.hero-title {
font-size: 32px;
}
-
+
.hero-subtitle {
font-size: 16px;
}
-
+
.btn {
padding: 10px 20px;
font-size: 14px;
}
-
+
.theme-switch {
width: 50px;
height: 25px;
margin-left: 15px;
}
-
+
.slider:before {
height: 18px;
width: 18px;
bottom: 3.5px;
left: 3.5px;
}
-
- input:checked + .slider:before {
+
+ input:checked+.slider:before {
transform: translateX(25px);
}
-
+
.slider .icon {
font-size: 12px;
}
}
+
+ .close-btn {
+ position: absolute;
+ top: 20px;
+ right: 20px;
+ background: none;
+ border: none;
+ color: var(--text-primary);
+ font-size: 24px;
+ cursor: pointer;
+ z-index: 1001;
+ }
+
+ .close-btn:hover {
+ color: var(--secondary-color);
+ }
@@ -578,7 +600,9 @@