热门推荐

热门推荐
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,28 +6,25 @@
height: 100%;
z-index: -1;
overflow: hidden;
background-color: #f8f9fa;
}
.rainbow-gradient {
.modern-gradient {
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
217deg,
rgba(255, 0, 0, 0.6),
rgba(255, 0, 0, 0) 70.71%
), linear-gradient(
127deg,
rgba(0, 255, 0, 0.6),
rgba(0, 255, 0, 0) 70.71%
), linear-gradient(
336deg,
rgba(0, 0, 255, 0.6),
rgba(0, 0, 255, 0) 70.71%
135deg,
rgba(230, 22, 45, 0.4) 0%,
rgba(245, 80, 80, 0.3) 25%,
rgba(250, 120, 110, 0.2) 50%,
rgba(255, 140, 140, 0.3) 75%,
rgba(255, 90, 90, 0.4) 100%
);
animation: rainbow-rotate 15s linear infinite;
animation: gradient-flow 20s ease-in-out infinite;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
@keyframes rainbow-rotate {

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,38 +92,84 @@
body {
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
color: #333;
background-color: #f5f5f5;
background-color: #f8f9fa;
position: relative;
min-height: 100vh;
}
/* 微博Logo样式 */
.title-container {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 10px;
}
.weibo-logo-container {
margin-top: 10px;
}
.weibo-logo {
background-color: #e6162d;
color: white;
font-weight: bold;
padding: 4px 10px;
border-radius: 15px;
font-size: 16px;
display: inline-block;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* Q版眨眼动画样式 */
.qeye-container {
display: flex;
justify-content: center;
margin-bottom: 10px;
}
.qeye {
width: 80px;
height: 48px;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
padding: 24px;
position: relative;
z-index: 1;
background-color: rgba(255, 255, 255, 0.85);
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
backdrop-filter: blur(10px);
}
header {
text-align: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #eaeaea;
margin-bottom: 28px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
header h1 {
color: #07a35a;
margin-bottom: 10px;
font-size: 2rem;
background: linear-gradient(135deg, #4096ff, #ff7a45);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
margin-bottom: 14px;
font-size: 2.4rem;
font-weight: 700;
letter-spacing: -0.5px;
}
.update-time {
color: #888;
color: #666;
font-size: 0.9rem;
background-color: rgba(0, 0, 0, 0.03);
padding: 8px 16px;
border-radius: 24px;
display: inline-block;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hot-list {
@@ -46,36 +177,52 @@ header h1 {
}
.hot-item {
padding: 15px;
margin-bottom: 10px;
border-radius: 8px;
padding: 20px;
margin-bottom: 16px;
border-radius: 12px;
background-color: white;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
transition: transform 0.2s, box-shadow 0.2s;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
transition: all 0.3s ease;
display: flex;
align-items: center;
border: 1px solid rgba(0, 0, 0, 0.03);
}
.hot-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transform: translateY(-3px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
border-color: rgba(64, 169, 255, 0.3);
}
.hot-rank {
font-size: 1.2rem;
font-weight: bold;
color: #ff8200;
margin-right: 15px;
min-width: 30px;
color: #4096ff;
margin-right: 18px;
min-width: 38px;
text-align: center;
background-color: rgba(64, 169, 255, 0.1);
border-radius: 50%;
width: 38px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
}
.hot-rank.top-1 {
color: #ff4500;
background: linear-gradient(135deg, #ff4d4f, #ff7a45);
color: white;
}
.hot-rank.top-2, .hot-rank.top-3 {
color: #ff6600;
.hot-rank.top-2 {
background: linear-gradient(135deg, #ff7a45, #ffa940);
color: white;
}
.hot-rank.top-3 {
background: linear-gradient(135deg, #ffa940, #ffec3d);
color: white;
}
.hot-content {
@@ -83,73 +230,155 @@ header h1 {
}
.hot-title {
font-size: 1.1rem;
margin-bottom: 5px;
font-size: 1.15rem;
margin-bottom: 8px;
color: #333;
text-decoration: none;
display: block;
line-height: 1.5;
font-weight: 500;
transition: color 0.2s ease;
}
.hot-title:hover {
color: #07a35a;
}
.hot-value {
font-size: 0.85rem;
color: #888;
color: #4096ff;
text-decoration: none;
}
.loading {
text-align: center;
padding: 20px;
color: #888;
padding: 40px;
color: #666;
font-size: 1.1rem;
}
footer {
text-align: center;
margin-top: 30px;
padding-top: 15px;
border-top: 1px solid #eaeaea;
color: #888;
padding-top: 20px;
border-top: 1px solid rgba(0, 0, 0, 0.06);
color: #666;
font-size: 0.9rem;
}
/* 响应式设计 */
/* 手机端 */
@media (max-width: 576px) {
@media (max-width: 1024px) and (min-width: 768px) {
.container {
padding: 15px;
margin: 10px;
max-width: 90%;
padding: 20px;
}
header h1 {
font-size: 1.5rem;
font-size: 2.2rem;
}
.hot-item {
padding: 12px;
}
.hot-rank {
font-size: 1rem;
min-width: 25px;
margin-right: 10px;
padding: 18px;
}
.hot-title {
font-size: 1rem;
font-size: 1.1rem;
}
}
/* 平板端 */
@media (min-width: 577px) and (max-width: 992px) {
@media (max-width: 768px) {
body {
background-color: #f8f9fa;
}
.container {
max-width: 90%;
max-width: 95%;
margin: 12px auto;
padding: 16px;
border-radius: 12px;
}
header {
margin-bottom: 20px;
padding-bottom: 16px;
}
header h1 {
font-size: 1.8rem;
margin-bottom: 10px;
}
.update-time {
font-size: 0.85rem;
padding: 6px 12px;
}
.hot-item {
padding: 16px;
margin-bottom: 12px;
border-radius: 10px;
flex-direction: row;
align-items: flex-start;
}
.hot-rank {
font-size: 1.1rem;
margin-right: 14px;
min-width: 32px;
width: 32px;
height: 32px;
margin-top: 2px;
}
.hot-title {
font-size: 1rem;
line-height: 1.5;
margin-bottom: 6px;
}
footer {
margin-top: 24px;
padding-top: 16px;
font-size: 0.85rem;
}
}
/* 电脑端 - 默认样式已经设置 */
@media (max-width: 480px) {
.container {
margin: 8px auto;
padding: 14px;
}
header h1 {
font-size: 1.6rem;
}
.hot-item {
padding: 14px;
margin-bottom: 10px;
}
.hot-rank {
font-size: 1rem;
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;
}
.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%
);
}
}

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="100" height="60" viewBox="0 0 100 60" xmlns="http://www.w3.org/2000/svg">
<!-- 脸部 -->
<circle cx="50" cy="30" r="25" fill="#FFD6A5" />
<!-- 左眼 -->
<g id="left-eye">
<circle cx="40" cy="25" r="5" fill="white" />
<circle cx="40" cy="25" r="2.5" fill="#333" class="pupil" />
<!-- 眨眼动画 -->
<animate
xlink:href="#left-eye"
attributeName="transform"
attributeType="XML"
type="scale"
values="1 1; 1 0.1; 1 1"
dur="3s"
repeatCount="indefinite" />
</g>
<!-- 右眼 -->
<g id="right-eye">
<circle cx="60" cy="25" r="5" fill="white" />
<circle cx="60" cy="25" r="2.5" fill="#333" class="pupil" />
<!-- 眨眼动画 -->
<animate
xlink:href="#right-eye"
attributeName="transform"
attributeType="XML"
type="scale"
values="1 1; 1 0.1; 1 1"
dur="3s"
repeatCount="indefinite" />
</g>
<!-- 嘴巴 -->
<path d="M45,35 Q50,40 55,35" stroke="#FF9999" stroke-width="2" fill="none" />
<!-- 腮红 -->
<circle cx="35" cy="30" r="3" fill="#FF9999" opacity="0.5" />
<circle cx="65" cy="30" r="3" fill="#FF9999" opacity="0.5" />
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -9,12 +9,12 @@
</head>
<body>
<div class="background-container">
<div class="rainbow-gradient"></div>
<div class="modern-gradient"></div>
</div>
<div class="container">
<header>
<h1>微博热搜榜</h1>
<h1>🌈 微博热搜榜 🌈</h1>
<div class="update-time" id="updateTime"></div>
</header>