热门推荐

热门推荐
This commit is contained in:
yangyaoxiang666
2025-09-04 14:07:42 +08:00
parent 3333f6c485
commit 6829a16f96
28 changed files with 3665 additions and 3118 deletions

View File

@@ -6,9 +6,100 @@
height: 100%;
z-index: -1;
overflow: hidden;
background-color: #f0f7ff;
}
.green-gradient {
/* 太阳元素 */
.sun {
position: absolute;
top: 50px;
right: 35%;
width: 60px;
height: 60px;
background: radial-gradient(circle, #ffeb3b 30%, #ff9800 70%);
border-radius: 50%;
box-shadow: 0 0 40px rgba(255, 152, 0, 0.6);
z-index: 0;
animation: sun-pulse 8s ease-in-out infinite;
}
/* 蓝色云元素 */
.cloud {
position: absolute;
background: rgba(135, 206, 250, 0.8);
border-radius: 50px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
z-index: -1;
}
.cloud-1 {
top: 120px;
left: -150px;
width: 120px;
height: 40px;
animation: cloud-float 15s linear infinite;
}
.cloud-2 {
top: 180px;
right: -150px;
width: 160px;
height: 50px;
animation: cloud-float 20s linear infinite reverse;
}
.cloud-3 {
top: 60px;
left: -100px;
width: 100px;
height: 35px;
animation: cloud-float 12s linear infinite;
}
/* 云朵的伪元素,创建更自然的形状 */
.cloud::before,
.cloud::after {
content: '';
position: absolute;
background: rgba(135, 206, 250, 0.8);
border-radius: 50%;
}
.cloud::before {
width: 50px;
height: 50px;
top: -20px;
left: 15px;
}
.cloud::after {
width: 60px;
height: 60px;
top: -30px;
right: 15px;
}
@keyframes sun-pulse {
0%, 100% {
transform: scale(1);
box-shadow: 0 0 40px rgba(255, 152, 0, 0.6);
}
50% {
transform: scale(1.1);
box-shadow: 0 0 60px rgba(255, 152, 0, 0.8);
}
}
@keyframes cloud-float {
0% {
transform: translateX(-150px);
}
100% {
transform: translateX(calc(100vw + 150px));
}
}
.modern-gradient {
position: absolute;
top: -50%;
left: -50%;
@@ -16,16 +107,19 @@
height: 200%;
background: linear-gradient(
135deg,
rgba(76, 175, 80, 0.3) 0%,
rgba(129, 199, 132, 0.2) 25%,
rgba(165, 214, 167, 0.1) 50%,
rgba(200, 230, 201, 0.2) 75%,
rgba(76, 175, 80, 0.3) 100%
rgba(24, 144, 255, 0.6) 0%,
rgba(64, 169, 255, 0.5) 20%,
rgba(135, 208, 255, 0.4) 40%,
rgba(255, 175, 64, 0.4) 60%,
rgba(255, 122, 69, 0.5) 80%,
rgba(245, 85, 65, 0.6) 100%
);
animation: green-flow 20s ease-in-out infinite;
animation: gradient-flow 25s ease-in-out infinite;
border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
filter: blur(30px);
}
.green-gradient::before {
.modern-gradient::before {
content: '';
position: absolute;
top: 0;
@@ -33,18 +127,20 @@
width: 100%;
height: 100%;
background: radial-gradient(
circle at 30% 70%,
rgba(139, 195, 74, 0.4) 0%,
transparent 50%
circle at 25% 65%,
rgba(24, 144, 255, 0.6) 0%,
transparent 60%
), radial-gradient(
circle at 70% 30%,
rgba(102, 187, 106, 0.3) 0%,
transparent 50%
circle at 75% 35%,
rgba(245, 85, 65, 0.5) 0%,
transparent 60%
);
animation: green-pulse 15s ease-in-out infinite alternate;
animation: pulse-effect 18s ease-in-out infinite alternate;
border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
filter: blur(20px);
}
@keyframes green-flow {
@keyframes gradient-flow {
0%, 100% {
transform: rotate(0deg) scale(1);
opacity: 0.8;
@@ -63,7 +159,7 @@
}
}
@keyframes green-pulse {
@keyframes pulse-effect {
0% {
transform: scale(1) rotate(0deg);
opacity: 0.5;
@@ -80,28 +176,28 @@
/* 手机端背景优化 */
@media (max-width: 768px) {
.green-gradient {
.modern-gradient {
animation-duration: 25s;
}
.green-gradient::before {
.modern-gradient::before {
animation-duration: 18s;
}
}
/* 减少动画以节省电池 */
@media (prefers-reduced-motion: reduce) {
.green-gradient,
.green-gradient::before {
.modern-gradient,
.modern-gradient::before {
animation: none;
}
.green-gradient {
.modern-gradient {
background: linear-gradient(
135deg,
rgba(76, 175, 80, 0.2) 0%,
rgba(165, 214, 167, 0.1) 50%,
rgba(200, 230, 201, 0.15) 100%
rgba(64, 169, 255, 0.3) 0%,
rgba(255, 175, 64, 0.2) 50%,
rgba(255, 122, 69, 0.25) 100%
);
}
}

View File

@@ -1,3 +1,88 @@
/* 背景样式 */
.background-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
background-color: #f8f9fa;
}
.modern-gradient {
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
135deg,
rgba(64, 169, 255, 0.4) 0%,
rgba(120, 192, 255, 0.3) 25%,
rgba(255, 175, 64, 0.2) 50%,
rgba(255, 140, 50, 0.3) 75%,
rgba(255, 122, 69, 0.4) 100%
);
animation: gradient-flow 20s ease-in-out infinite;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.modern-gradient::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(
circle at 30% 70%,
rgba(64, 169, 255, 0.5) 0%,
transparent 50%
), radial-gradient(
circle at 70% 30%,
rgba(255, 140, 50, 0.4) 0%,
transparent 50%
);
animation: pulse-effect 15s ease-in-out infinite alternate;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
@keyframes gradient-flow {
0%, 100% {
transform: rotate(0deg) scale(1);
opacity: 0.8;
}
25% {
transform: rotate(90deg) scale(1.1);
opacity: 0.6;
}
50% {
transform: rotate(180deg) scale(0.9);
opacity: 0.9;
}
75% {
transform: rotate(270deg) scale(1.05);
opacity: 0.7;
}
}
@keyframes pulse-effect {
0% {
transform: scale(1) rotate(0deg);
opacity: 0.5;
}
50% {
transform: scale(1.2) rotate(180deg);
opacity: 0.8;
}
100% {
transform: scale(1) rotate(360deg);
opacity: 0.6;
}
}
/* 主样式 */
* {
margin: 0;
padding: 0;
@@ -7,44 +92,52 @@
body {
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
color: #333;
background-color: #f0f8f0;
background-color: #f0f7ff;
position: relative;
min-height: 100vh;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
margin: 20px auto;
padding: 28px;
position: relative;
z-index: 1;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0, 128, 0, 0.1);
background-color: rgba(255, 255, 255, 0.8);
border-radius: 24px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(15px);
border: 1px solid rgba(255, 255, 255, 0.6);
}
header {
text-align: center;
margin-bottom: 25px;
padding-bottom: 20px;
border-bottom: 2px solid #e8f5e8;
margin-bottom: 32px;
padding-bottom: 24px;
border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
header h1 {
color: #2d8f47;
margin-bottom: 12px;
font-size: 2.2rem;
font-weight: 600;
text-shadow: 0 2px 4px rgba(45, 143, 71, 0.1);
background: linear-gradient(135deg, #1890ff, #ff7a45);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
margin-bottom: 16px;
font-size: 2.6rem;
font-weight: 800;
letter-spacing: -0.5px;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.update-time {
color: #6b8e6b;
font-size: 0.95rem;
background-color: #f0f8f0;
padding: 8px 16px;
border-radius: 20px;
color: #666;
font-size: 0.9rem;
background-color: rgba(255, 255, 255, 0.7);
padding: 10px 20px;
border-radius: 30px;
display: inline-block;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
border: 1px solid rgba(255, 255, 255, 0.8);
}
.hot-list {
@@ -52,51 +145,51 @@ header h1 {
}
.hot-item {
padding: 18px;
margin-bottom: 12px;
border-radius: 10px;
padding: 22px;
margin-bottom: 20px;
border-radius: 16px;
background-color: white;
box-shadow: 0 3px 8px rgba(0, 128, 0, 0.08);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
transition: all 0.3s ease;
display: flex;
align-items: center;
border-left: 4px solid transparent;
border: 1px solid rgba(255, 255, 255, 0.8);
}
.hot-item:hover {
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(0, 128, 0, 0.15);
border-left-color: #4caf50;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
border-color: rgba(64, 169, 255, 0.3);
}
.hot-rank {
font-size: 1.3rem;
font-size: 1.2rem;
font-weight: bold;
color: #4caf50;
color: #4096ff;
margin-right: 18px;
min-width: 35px;
min-width: 38px;
text-align: center;
background-color: #f0f8f0;
background-color: rgba(64, 169, 255, 0.1);
border-radius: 50%;
width: 35px;
height: 35px;
width: 38px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
}
.hot-rank.top-1 {
background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
background: linear-gradient(135deg, #ff4d4f, #ff7a45);
color: white;
}
.hot-rank.top-2 {
background: linear-gradient(135deg, #ffa726, #ffb74d);
background: linear-gradient(135deg, #ff7a45, #ffa940);
color: white;
}
.hot-rank.top-3 {
background: linear-gradient(135deg, #ffca28, #ffd54f);
background: linear-gradient(135deg, #ffa940, #ffec3d);
color: white;
}
@@ -106,23 +199,24 @@ header h1 {
.hot-title {
font-size: 1.15rem;
margin-bottom: 6px;
color: #2c3e2c;
margin-bottom: 8px;
color: #333;
text-decoration: none;
display: block;
line-height: 1.4;
line-height: 1.5;
font-weight: 500;
transition: color 0.2s ease;
}
.hot-title:hover {
color: #2d8f47;
text-decoration: underline;
color: #4096ff;
text-decoration: none;
}
.loading {
text-align: center;
padding: 40px;
color: #6b8e6b;
color: #666;
font-size: 1.1rem;
}
@@ -130,24 +224,24 @@ footer {
text-align: center;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #e8f5e8;
color: #6b8e6b;
border-top: 1px solid rgba(0, 0, 0, 0.06);
color: #666;
font-size: 0.9rem;
}
/* 平板端适配 (768px - 1024px) */
/* 响应式设计 */
@media (max-width: 1024px) and (min-width: 768px) {
.container {
max-width: 90%;
padding: 18px;
padding: 20px;
}
header h1 {
font-size: 2rem;
font-size: 2.2rem;
}
.hot-item {
padding: 16px;
padding: 18px;
}
.hot-title {
@@ -155,22 +249,21 @@ footer {
}
}
/* 手机端适配 (最大768px) */
@media (max-width: 768px) {
body {
background-color: #f8fdf8;
background-color: #f8f9fa;
}
.container {
max-width: 95%;
margin: 10px auto;
padding: 15px;
border-radius: 8px;
margin: 12px auto;
padding: 16px;
border-radius: 12px;
}
header {
margin-bottom: 20px;
padding-bottom: 15px;
padding-bottom: 16px;
}
header h1 {
@@ -184,40 +277,39 @@ footer {
}
.hot-item {
padding: 14px;
margin-bottom: 10px;
border-radius: 8px;
padding: 16px;
margin-bottom: 12px;
border-radius: 10px;
flex-direction: row;
align-items: flex-start;
}
.hot-rank {
font-size: 1.1rem;
margin-right: 12px;
min-width: 30px;
width: 30px;
height: 30px;
margin-right: 14px;
min-width: 32px;
width: 32px;
height: 32px;
margin-top: 2px;
}
.hot-title {
font-size: 1rem;
line-height: 1.5;
margin-bottom: 4px;
margin-bottom: 6px;
}
footer {
margin-top: 20px;
padding-top: 15px;
font-size: 0.8rem;
margin-top: 24px;
padding-top: 16px;
font-size: 0.85rem;
}
}
/* 小屏手机适配 (最大480px) */
@media (max-width: 480px) {
.container {
margin: 5px auto;
padding: 12px;
margin: 8px auto;
padding: 14px;
}
header h1 {
@@ -225,24 +317,36 @@ footer {
}
.hot-item {
padding: 12px;
margin-bottom: 8px;
padding: 14px;
margin-bottom: 10px;
}
.hot-rank {
font-size: 1rem;
margin-right: 10px;
min-width: 28px;
width: 28px;
height: 28px;
margin-right: 12px;
min-width: 30px;
width: 30px;
height: 30px;
}
.hot-title {
font-size: 0.95rem;
}
}
/* 减少动画以节省电池 */
@media (prefers-reduced-motion: reduce) {
.modern-gradient,
.modern-gradient::before {
animation: none;
}
.update-time {
font-size: 0.8rem;
padding: 5px 10px;
.modern-gradient {
background: linear-gradient(
135deg,
rgba(64, 169, 255, 0.3) 0%,
rgba(255, 175, 64, 0.2) 50%,
rgba(255, 122, 69, 0.25) 100%
);
}
}