修改前端 项目改名

This commit is contained in:
2025-09-19 22:03:59 +08:00
parent 98c6371c4e
commit 7786e5f507
31 changed files with 950 additions and 449 deletions

View File

@@ -8,34 +8,26 @@
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #2c3e50;
color: #1a1a1a;
overflow-x: hidden;
animation: textColorShift 25s ease infinite;
}
@keyframes textColorShift {
0% {
color: #2c3e50;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}
25% {
color: #1a252f;
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
}
50% {
color: #34495e;
text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.7);
}
75% {
color: #2c3e50;
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}
100% {
color: #2c3e50;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}
/* 结果容器 - 优化可读性版本 */
.result-container {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 25px;
padding: 40px;
margin-top: 40px;
box-shadow:
0 8px 32px 0 rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
/* 移除过度的文字颜色动画,保持稳定的可读性 */
/* 容器 */
.container {
max-width: 1200px;
@@ -106,22 +98,21 @@ body {
}
}
/* 头部 - 动态调节版本 */
/* 头部 - 优化可读性版本 */
.header {
text-align: center;
margin-bottom: 40px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(25px);
-webkit-backdrop-filter: blur(25px);
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
padding: 40px 30px;
border-radius: 25px;
border: 1px solid rgba(255, 255, 255, 0.2);
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow:
0 8px 32px 0 rgba(31, 38, 135, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.4);
0 8px 32px 0 rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
position: relative;
overflow: hidden;
animation: headerColorShift 25s ease infinite;
}
@keyframes headerColorShift {
@@ -204,78 +195,23 @@ body {
.title {
font-size: 3.2em;
font-weight: 800;
color: #2c3e50;
color: #1a1a1a;
margin-bottom: 10px;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 4px rgba(255, 255, 255, 0.6);
text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
letter-spacing: 2px;
animation: titleGlow 4s ease-in-out infinite alternate, titleColorShift 25s ease infinite;
}
@keyframes titleColorShift {
0% {
color: #2c3e50;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 4px rgba(255, 255, 255, 0.6);
}
25% {
color: #3498db;
text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9), 0 0 6px rgba(52, 152, 219, 0.4);
}
50% {
color: #e74c3c;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7), 0 0 5px rgba(231, 76, 60, 0.3);
}
75% {
color: #f39c12;
text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8), 0 0 6px rgba(243, 156, 18, 0.4);
}
100% {
color: #2c3e50;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 4px rgba(255, 255, 255, 0.6);
}
}
@keyframes titleGlow {
0% {
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 4px rgba(255, 255, 255, 0.6);
color: #2c3e50;
}
100% {
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.7);
color: #3498db;
}
}
/* 移除标题颜色动画,保持稳定的可读性 */
.subtitle {
font-size: 1.3em;
color: #7f8c8d;
color: #555555;
margin-bottom: 30px;
font-weight: 600;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
animation: subtitleColorShift 25s ease infinite;
}
@keyframes subtitleColorShift {
0% {
color: #7f8c8d;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
25% {
color: #9b59b6;
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}
50% {
color: #e67e22;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}
75% {
color: #27ae60;
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
100% {
color: #7f8c8d;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
}
/* 移除副标题颜色动画,保持稳定的可读性 */
/* 日期选择器 */
.date-selector {
@@ -298,84 +234,35 @@ body {
display: flex;
align-items: center;
gap: 8px;
color: #0f1419;
color: #2c2c2c;
font-weight: 600;
font-size: 1em;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
animation: labelColorShift 25s ease infinite;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}
@keyframes labelColorShift {
0% {
color: #0f1419;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
25% {
color: #1a252f;
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
}
50% {
color: #2c3e50;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
75% {
color: #0f1419;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}
100% {
color: #0f1419;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
}
/* 移除标签颜色动画,保持稳定的可读性 */
.label-icon {
font-size: 1.2em;
}
.date-input {
background: rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 15px;
padding: 12px 16px;
color: #0a0f14;
color: #1a1a1a;
font-size: 1em;
font-weight: 500;
transition: all 0.3s ease;
box-shadow:
0 4px 15px rgba(31, 38, 135, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
animation: inputColorShift 25s ease infinite;
0 4px 15px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
@keyframes inputColorShift {
0% {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
color: #0a0f14;
}
25% {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.4);
color: #1a252f;
}
50% {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.35);
color: #2c3e50;
}
75% {
background: rgba(255, 255, 255, 0.18);
border-color: rgba(255, 255, 255, 0.38);
color: #0a0f14;
}
100% {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
color: #0a0f14;
}
}
/* 移除输入框颜色动画,保持稳定的可读性 */
.date-input:focus {
outline: none;
@@ -395,11 +282,11 @@ body {
}
.query-btn {
background: rgba(255, 255, 255, 0.15);
background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
color: #0a0f14;
border: 1px solid rgba(255, 255, 255, 0.3);
color: #1a1a1a;
border: 1px solid rgba(0, 0, 0, 0.2);
padding: 12px 28px;
border-radius: 20px;
cursor: pointer;
@@ -411,40 +298,13 @@ body {
gap: 8px;
position: relative;
overflow: hidden;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
box-shadow:
0 4px 15px rgba(31, 38, 135, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.3);
animation: buttonColorShift 25s ease infinite;
0 4px 15px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
@keyframes buttonColorShift {
0% {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
color: #0a0f14;
}
25% {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.4);
color: #1a252f;
}
50% {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.35);
color: #2c3e50;
}
75% {
background: rgba(255, 255, 255, 0.22);
border-color: rgba(255, 255, 255, 0.38);
color: #0a0f14;
}
100% {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.3);
color: #0a0f14;
}
}
/* 移除按钮颜色动画,保持稳定的可读性 */
.query-btn::before {
content: '';
@@ -466,12 +326,12 @@ body {
}
.query-btn:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.4);
transform: translateY(-3px);
background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
border-color: rgba(0, 0, 0, 0.3);
transform: translateY(-2px);
box-shadow:
0 8px 25px rgba(31, 38, 135, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.4);
0 8px 25px rgba(0, 0, 0, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.btn-icon {
@@ -590,10 +450,10 @@ body {
.loading-text p {
font-size: 1.2em;
color: rgba(255, 255, 255, 0.9);
color: #1a1a1a;
font-weight: 600;
margin: 0;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.loading-dots {
@@ -604,7 +464,7 @@ body {
.loading-dots span {
width: 10px;
height: 10px;
background: rgba(255, 255, 255, 0.7);
background: #4a4a4a;
border-radius: 50%;
animation: glassDotsFloat 1.4s ease-in-out infinite both;
backdrop-filter: blur(2px);
@@ -1016,15 +876,18 @@ body {
}
}
/* 手机端适配 (767px以下) */
/* 手机端适配 (767px以下) - 优化手机端体验 */
@media (max-width: 767px) {
.container {
padding: 15px;
margin: 10px auto;
max-width: 95%;
}
.header {
padding: 25px 20px;
padding: 25px 15px;
margin-bottom: 25px;
border-radius: 20px;
}
.header-icon {
@@ -1034,16 +897,19 @@ body {
.title {
font-size: 2.2em;
letter-spacing: 1px;
margin-bottom: 8px;
}
.subtitle {
font-size: 1em;
margin-bottom: 20px;
}
.date-selector {
flex-direction: column;
gap: 15px;
align-items: center;
padding: 0 5px;
}
.input-group {
@@ -1053,16 +919,19 @@ body {
}
.date-input {
padding: 10px 14px;
font-size: 0.95em;
padding: 14px 16px;
font-size: 16px; /* 防止iOS缩放 */
border-radius: 12px;
}
.query-btn {
padding: 10px 24px;
font-size: 0.95em;
padding: 14px 24px;
font-size: 16px;
width: 100%;
max-width: 200px;
justify-content: center;
border-radius: 15px;
margin-top: 10px;
}
.update-time {
@@ -1101,7 +970,8 @@ body {
.item-label {
min-width: auto;
font-size: 0.9em;
font-size: 0.95em;
margin-bottom: 8px;
}
.item-value {
@@ -1360,7 +1230,7 @@ body {
.hour-label {
font-weight: 600;
color: #ffffff;
color: #1a1a1a;
margin-right: 4px;
}
@@ -1373,7 +1243,7 @@ body {
}
.hour-text {
color: rgba(255, 255, 255, 0.9);
color: #2c2c2c;
}
/* 时辰宜忌响应式优化 */