|
@@ -1,22 +1,23 @@
|
|
|
// tab1.page.scss
|
|
|
:root {
|
|
|
- --gold: #FFD700;
|
|
|
- --dark: #f04a4a;
|
|
|
+ --primary: #2f00ff; // 主色调为蓝色
|
|
|
+ --secondary: #6C757D; // 次要颜色
|
|
|
+ --background: #8ac4fd; // 背景颜色
|
|
|
+ --text-color: #bebebe; // 文字颜色
|
|
|
+ --font-family: "Roboto", sans-serif; // 字体改为Roboto
|
|
|
}
|
|
|
|
|
|
* {
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
- font-family: "STXingkai", "华文行楷", cursive;
|
|
|
+ font-family: var(--font-family);
|
|
|
}
|
|
|
|
|
|
body {
|
|
|
- background:
|
|
|
- linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(30, 30, 30, 0.95) 100%),
|
|
|
- url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEiLz4KICA8cGF0aCBkPSJNMjAgMjBMODAgODBNODAgMjBMMjAgODAiIHN0cm9rZT0iI2ZmZCIgc3Ryb2tlLXdpZHRoPSIxIi8+Cjwvc3ZnPg==');
|
|
|
+ background: var(--background);
|
|
|
+ color: var(--text-color);
|
|
|
min-height: 100vh;
|
|
|
- color: var(--gold);
|
|
|
}
|
|
|
|
|
|
/* 顶部标题 */
|
|
@@ -25,7 +26,7 @@ body {
|
|
|
top: 0;
|
|
|
width: 100%;
|
|
|
height: 50px;
|
|
|
- background: rgb(5, 13, 255);
|
|
|
+ background: var(--primary);
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
@@ -33,9 +34,9 @@ body {
|
|
|
letter-spacing: 4px;
|
|
|
z-index: 100;
|
|
|
backdrop-filter: blur(5px);
|
|
|
- border-bottom: 2px solid var(--gold);
|
|
|
+ border-bottom: 2px solid var(--secondary);
|
|
|
font-weight: bold;
|
|
|
- text-shadow: 0 2px 4px rgba(160, 162, 198, 0.5);
|
|
|
+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
|
}
|
|
|
|
|
|
.main-content {
|
|
@@ -43,24 +44,23 @@ body {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
gap: 25px;
|
|
|
- background: transparent; // 新增
|
|
|
}
|
|
|
|
|
|
.search-bar {
|
|
|
display: flex;
|
|
|
- background: rgba(253, 236, 137, 0.884);
|
|
|
+ background: rgba(0, 0, 255, 0.8);
|
|
|
border-radius: 30px;
|
|
|
padding: 12px 20px;
|
|
|
- border: 2px solid var(--gold);
|
|
|
+ border: 2px solid var(--primary);
|
|
|
backdrop-filter: blur(4px);
|
|
|
}
|
|
|
|
|
|
.city-select {
|
|
|
border: none;
|
|
|
background: transparent;
|
|
|
- color: var(--gold);
|
|
|
+ color: var(--primary);
|
|
|
padding-right: 20px;
|
|
|
- border-right: 2px solid rgba(255, 217, 0, 0.964);
|
|
|
+ border-right: 2px solid rgba(0, 0, 0, 0.2);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
|
|
@@ -68,24 +68,25 @@ body {
|
|
|
flex: 1;
|
|
|
border: none;
|
|
|
background: transparent;
|
|
|
- color: var(--gold);
|
|
|
+ color: var(--text-color);
|
|
|
padding: 8px 20px;
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
|
|
|
.button-grid {
|
|
|
- width: 100%; /* 占满整行 */
|
|
|
- margin: 0 auto; /* 左右居中 */
|
|
|
- aspect-ratio: 2 / 1; /* 宽度是高度的2倍 */
|
|
|
- // display: grid;
|
|
|
- // grid-template-columns: repeat(3, 1fr);
|
|
|
- // gap: 15px;
|
|
|
+ width: 100%;
|
|
|
+ margin: 0 auto;
|
|
|
+ aspect-ratio: 2 / 1;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
|
|
|
.tactics-btn {
|
|
|
- aspect-ratio: 1;
|
|
|
- background: rgba(247, 148, 34, 0.7);
|
|
|
- border: 2px solid var(--gold);
|
|
|
+ width: 100%;
|
|
|
+ height: 50%;
|
|
|
+ background: rgba(17, 41, 255, 0.8);
|
|
|
+ border: 2px solid var(--primary);
|
|
|
border-radius: 16px;
|
|
|
padding: 15px;
|
|
|
display: flex;
|
|
@@ -94,12 +95,12 @@ body {
|
|
|
justify-content: space-between;
|
|
|
transition: all 0.3s ease;
|
|
|
cursor: pointer;
|
|
|
- box-shadow: 0 4px 12px rgba(194, 175, 175, 0.3);
|
|
|
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
|
|
|
.tactics-btn:hover {
|
|
|
transform: translateY(-3px);
|
|
|
- box-shadow: 0 6px 20px rgba(255, 217, 0, 0.995);
|
|
|
+ box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
|
|
|
}
|
|
|
|
|
|
.tactics-btn:active {
|
|
@@ -116,6 +117,10 @@ body {
|
|
|
.btn-text {
|
|
|
text-align: center;
|
|
|
line-height: 1.3;
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
}
|
|
|
|
|
|
.btn-title {
|
|
@@ -130,12 +135,12 @@ body {
|
|
|
}
|
|
|
|
|
|
.ad-banner {
|
|
|
- background: linear-gradient(to right, #e99433, #c2aeae);
|
|
|
+ background: linear-gradient(to right, var(--primary), var(--secondary));
|
|
|
border-radius: 20px;
|
|
|
padding: 15px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- border: 1px solid rgb(255, 217, 0);
|
|
|
+ border: 1px solid rgba(0, 0, 0, 0.2);
|
|
|
}
|
|
|
|
|
|
.ad-text {
|
|
@@ -155,7 +160,7 @@ body {
|
|
|
-ms-overflow-style: none;
|
|
|
}
|
|
|
|
|
|
-.ad-scroll::-webkit-scrollbar {
|
|
|
+.ad-scroll::-webkit-scrollbar {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
@@ -163,7 +168,7 @@ body {
|
|
|
flex-shrink: 0;
|
|
|
width: 150px;
|
|
|
height: 100px;
|
|
|
- background: #c4abab;
|
|
|
+ background: rgba(255, 255, 255, 0.8);
|
|
|
border-radius: 12px;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
@@ -176,15 +181,15 @@ body {
|
|
|
width: 100%;
|
|
|
text-align: center;
|
|
|
font-size: 0.9rem;
|
|
|
- text-shadow: 0 2px 4px rgba(193, 153, 153, 0.6);
|
|
|
+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
|
}
|
|
|
|
|
|
/* 新增选项卡样式 */
|
|
|
.share-tabs {
|
|
|
display: flex;
|
|
|
- border-bottom: 2px solid rgba(255, 217, 0, 0.919);
|
|
|
+ border-bottom: 2px solid var(--primary);
|
|
|
margin-bottom: 20px;
|
|
|
-
|
|
|
+
|
|
|
.tab-item {
|
|
|
flex: 1;
|
|
|
padding: 15px;
|
|
@@ -193,35 +198,15 @@ body {
|
|
|
font-size: 1rem;
|
|
|
transition: all 0.3s ease;
|
|
|
cursor: pointer;
|
|
|
-
|
|
|
+
|
|
|
&:hover {
|
|
|
- background: rgba(255, 217, 0, 0.2);
|
|
|
- }
|
|
|
-
|
|
|
- &.active {
|
|
|
- font-weight: 600;
|
|
|
-
|
|
|
- &::after {
|
|
|
- content: '';
|
|
|
- position: absolute;
|
|
|
- bottom: -2px;
|
|
|
- left: 50%;
|
|
|
- transform: translateX(-50%);
|
|
|
- width: 70%;
|
|
|
- height: 3px;
|
|
|
- background: var(--gold);
|
|
|
- transition: width 0.3s ease;
|
|
|
- }
|
|
|
+ background: rgba(111, 255, 243, 0.2);
|
|
|
}
|
|
|
- }
|
|
|
- .tab-item {
|
|
|
- cursor: pointer;
|
|
|
- transition: all 0.3s ease;
|
|
|
-
|
|
|
+
|
|
|
&.active {
|
|
|
font-weight: 600;
|
|
|
+
|
|
|
&::after {
|
|
|
- /* 下划线动画 */
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
bottom: -2px;
|
|
@@ -229,37 +214,43 @@ body {
|
|
|
transform: translateX(-50%);
|
|
|
width: 70%;
|
|
|
height: 3px;
|
|
|
- background: var(--gold);
|
|
|
+ background: var(--primary);
|
|
|
transition: width 0.3s ease;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.share-grid {
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
gap: 20px;
|
|
|
animation: fadeIn 0.3s ease;
|
|
|
-
|
|
|
+
|
|
|
@keyframes fadeIn {
|
|
|
- from { opacity: 0; transform: translateY(10px); }
|
|
|
- to { opacity: 1; transform: translateY(0); }
|
|
|
+ from {
|
|
|
+ opacity: 0;
|
|
|
+ transform: translateY(10px);
|
|
|
+ }
|
|
|
+ to {
|
|
|
+ opacity: 1;
|
|
|
+ transform: translateY(0);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
+}
|
|
|
|
|
|
.share-card {
|
|
|
- background: #c5b1b1;
|
|
|
+ background: rgba(206, 203, 255, 0.8);
|
|
|
border-radius: 20px;
|
|
|
overflow: hidden;
|
|
|
aspect-ratio: 3/4;
|
|
|
position: relative;
|
|
|
transition: transform 0.3s ease;
|
|
|
-
|
|
|
+
|
|
|
&:hover {
|
|
|
transform: translateY(-5px);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
&::before {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
@@ -267,7 +258,7 @@ body {
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
- border: 2px solid var(--gold);
|
|
|
+ border: 2px solid var(--primary);
|
|
|
border-radius: 20px;
|
|
|
opacity: 0.2;
|
|
|
}
|
|
@@ -275,7 +266,7 @@ body {
|
|
|
|
|
|
.card-image {
|
|
|
height: 70%;
|
|
|
- background: linear-gradient(45deg, #e48519 0%, #bea8a8 100%);
|
|
|
+ background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
|
|
|
border-radius: 20px 20px 0 0;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
@@ -285,14 +276,12 @@ body {
|
|
|
padding: 15px;
|
|
|
}
|
|
|
|
|
|
-// 修改卡片标题样式
|
|
|
.card-title {
|
|
|
font-weight: 600;
|
|
|
margin-bottom: 10px;
|
|
|
font-size: 1rem;
|
|
|
line-height: 1.4;
|
|
|
-
|
|
|
- /* 多行文本截断方案 */
|
|
|
+
|
|
|
display: -webkit-box;
|
|
|
display: -moz-box;
|
|
|
display: flex;
|
|
@@ -303,9 +292,8 @@ body {
|
|
|
line-clamp: 1;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
-
|
|
|
- /* 备用方案 */
|
|
|
- max-height: 1.4em; // line-height × 行数
|
|
|
+
|
|
|
+ max-height: 1.4em;
|
|
|
@supports not (line-clamp: 1) {
|
|
|
display: -webkit-box;
|
|
|
-webkit-line-clamp: 1;
|
|
@@ -323,7 +311,7 @@ body {
|
|
|
font-size: 0.8rem;
|
|
|
opacity: 0.9;
|
|
|
padding: 4px 10px;
|
|
|
- background: rgb(255, 217, 0);
|
|
|
+ background: var(--primary);
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
|
|
@@ -331,8 +319,8 @@ body {
|
|
|
width: 30px;
|
|
|
height: 30px;
|
|
|
border-radius: 50%;
|
|
|
- background: #b2adad;
|
|
|
- border: 1px solid var(--gold);
|
|
|
+ background: rgba(0, 0, 0, 0.2);
|
|
|
+ border: 1px solid var(--primary);
|
|
|
}
|
|
|
|
|
|
/* 其他保持不变的样式... */
|
|
@@ -340,7 +328,7 @@ body {
|
|
|
/* 覆盖分享卡片的字体 */
|
|
|
.share-card,
|
|
|
.share-card * {
|
|
|
- font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
|
|
|
+ font-family: var(--font-family) !important;
|
|
|
}
|
|
|
|
|
|
/* 底部导航 */
|
|
@@ -348,15 +336,16 @@ body {
|
|
|
position: fixed;
|
|
|
bottom: 0;
|
|
|
width: 100%;
|
|
|
- height: 70px; /* 加高导航栏 */
|
|
|
- background: rgba(200, 177, 177, 0.97);
|
|
|
+ height: 70px;
|
|
|
+ background: rgba(68, 136, 255, 0.9);
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
backdrop-filter: blur(10px);
|
|
|
- border-top: 2px solid var(--gold);
|
|
|
- box-shadow: 0 -4px 15px rgba(189, 162, 162, 0.3);
|
|
|
+ border-top: 2px solid var(--primary);
|
|
|
+ box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
+
|
|
|
.nav-item {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -368,25 +357,31 @@ body {
|
|
|
padding: 8px 15px;
|
|
|
border-radius: 10px;
|
|
|
}
|
|
|
+
|
|
|
.nav-item:hover {
|
|
|
- background: rgb(255, 217, 0);
|
|
|
+ background: var(--primary);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
+
|
|
|
.nav-item.active {
|
|
|
opacity: 1;
|
|
|
transform: scale(1.1);
|
|
|
- background: rgb(255, 217, 0);
|
|
|
+ background: var(--primary);
|
|
|
}
|
|
|
+
|
|
|
.nav-icon {
|
|
|
- width: 28px; /* 放大图标 */
|
|
|
+ width: 28px;
|
|
|
height: 28px;
|
|
|
background-size: contain;
|
|
|
}
|
|
|
|
|
|
/* 加载动画 */
|
|
|
@keyframes loadingShimmer {
|
|
|
- 100% { left: 200%; }
|
|
|
+ 100% {
|
|
|
+ left: 200%;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
.card-image::after,
|
|
|
.ad-item::before {
|
|
|
content: "";
|
|
@@ -397,9 +392,9 @@ body {
|
|
|
height: 100%;
|
|
|
background: linear-gradient(
|
|
|
to right,
|
|
|
- rgba(255, 255, 255, 0.667) 0%,
|
|
|
- rgba(255, 255, 255, 0.879) 50%,
|
|
|
- rgba(255, 255, 255, 0.747) 100%
|
|
|
+ rgba(179, 196, 255, 0.667) 0%,
|
|
|
+ rgba(132, 113, 255, 0.879) 50%,
|
|
|
+ rgba(148, 191, 255, 0.747) 100%
|
|
|
);
|
|
|
animation: loadingShimmer 2s infinite;
|
|
|
-}
|
|
|
+}
|