|
@@ -1,104 +1,148 @@
|
|
|
-// Ionic 核心变量覆盖
|
|
|
+/* 添加在 tab3.page.scss 文件底部 */
|
|
|
+
|
|
|
+/* 日间模式样式(默认) */
|
|
|
:root {
|
|
|
- --ion-color-primary: #2d8cf0;
|
|
|
- --ion-color-primary-rgb: 45,140,240;
|
|
|
- --ion-color-success: #1989fa;
|
|
|
+ --background-color: #f8f9fc;
|
|
|
+ --card-bg: #ffffff;
|
|
|
+ --text-color: #333333;
|
|
|
+ --primary-color: #2d8cf0;
|
|
|
+}
|
|
|
+
|
|
|
+/* 夜间模式样式 */
|
|
|
+.dark-theme {
|
|
|
+ --background-color: #121212;
|
|
|
+ --card-bg: #1e1e1e;
|
|
|
+ --text-color: #ffffff;
|
|
|
+ --primary-color: #4a8cff;
|
|
|
+
|
|
|
+ ion-title {
|
|
|
+ color: var(--text-color);
|
|
|
}
|
|
|
-
|
|
|
- .custom-content {
|
|
|
- --offset-bottom: auto!important;
|
|
|
- --overflow: hidden;
|
|
|
- background: #f8f9fc;
|
|
|
- }
|
|
|
-
|
|
|
- // 用户信息卡片
|
|
|
+
|
|
|
.profile-card {
|
|
|
- padding: 24px;
|
|
|
- background: linear-gradient(135deg, var(--ion-color-primary), #66e1ff);
|
|
|
- border-radius: 20px 20px 0 0;
|
|
|
- color: white;
|
|
|
- text-align: center;
|
|
|
-
|
|
|
- .avatar-container {
|
|
|
- position: relative;
|
|
|
-
|
|
|
- .avatar {
|
|
|
- width: 100px;
|
|
|
- height: 100px;
|
|
|
- border-radius: 50%;
|
|
|
- object-fit: cover;
|
|
|
- box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
|
|
- }
|
|
|
-
|
|
|
- .vip-tag {
|
|
|
- position: absolute;
|
|
|
- top: 16px;
|
|
|
- right: 16px;
|
|
|
- background: linear-gradient(45deg, #ffd04b, #ff9800);
|
|
|
- padding: 4px 12px;
|
|
|
- border-radius: 20px;
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
+ background: linear-gradient(135deg, #1a3a7a, #0a2144);
|
|
|
+ }
|
|
|
+
|
|
|
+ .action-footer {
|
|
|
+ background: var(--card-bg);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/* 应用主题变量 */
|
|
|
+.custom-content {
|
|
|
+ --offset-bottom: auto !important;
|
|
|
+ --overflow: hidden;
|
|
|
+ background: var(--background-color);
|
|
|
+}
|
|
|
+
|
|
|
+.feature-card {
|
|
|
+ background: var(--card-bg);
|
|
|
|
|
|
- .edit-icon {
|
|
|
- position: absolute;
|
|
|
- bottom: -8px;
|
|
|
- right: -8px;
|
|
|
- font-size: 24px;
|
|
|
- background: rgba(255,255,255,0.2);
|
|
|
- border-radius: 50%;
|
|
|
- padding: 8px;
|
|
|
- color: white;
|
|
|
- }
|
|
|
+ .card-item {
|
|
|
+ h3 {
|
|
|
+ color: var(--text-color);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- // 功能卡片
|
|
|
- .feature-card {
|
|
|
- margin: 16px;
|
|
|
- border-radius: 16px;
|
|
|
- overflow: hidden;
|
|
|
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
|
-
|
|
|
- .card-item {
|
|
|
- padding: 16px 0;
|
|
|
- border-bottom: 1px solid #eee;
|
|
|
-
|
|
|
- h3 {
|
|
|
- margin: 0;
|
|
|
- font-size: 16px;
|
|
|
- color: #333;
|
|
|
- }
|
|
|
-
|
|
|
- .badge {
|
|
|
- background: var(--ion-color-success);
|
|
|
- color: white;
|
|
|
- padding: 2px 8px;
|
|
|
- border-radius: 10px;
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
-
|
|
|
- ion-icon {
|
|
|
- color: #666;
|
|
|
- font-size: 18px;
|
|
|
- }
|
|
|
+}
|
|
|
+
|
|
|
+/* 登录按钮样式 */
|
|
|
+.login-btn {
|
|
|
+ --background: var(--primary-color);
|
|
|
+ --color: white;
|
|
|
+}
|
|
|
+
|
|
|
+/* 登出按钮样式 */
|
|
|
+.logout-btn {
|
|
|
+ --background: #ff3b30;
|
|
|
+ --color: white;
|
|
|
+}
|
|
|
+
|
|
|
+/* 其他原有样式保持不变 */
|
|
|
+.profile-card {
|
|
|
+ padding: 24px;
|
|
|
+ background: linear-gradient(135deg, var(--ion-color-primary), #66e1ff);
|
|
|
+ border-radius: 20px 20px 0 0;
|
|
|
+ color: white;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ .avatar-container {
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .avatar {
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ border-radius: 50%;
|
|
|
+ object-fit: cover;
|
|
|
+ box-shadow: 0 4px 12px rgba(0,0,0,0.2);
|
|
|
+ }
|
|
|
+
|
|
|
+ .vip-tag {
|
|
|
+ position: absolute;
|
|
|
+ top: 16px;
|
|
|
+ right: 16px;
|
|
|
+ background: linear-gradient(45deg, #ffd04b, #ff9800);
|
|
|
+ padding: 4px 12px;
|
|
|
+ border-radius: 20px;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .edit-icon {
|
|
|
+ position: absolute;
|
|
|
+ bottom: -8px;
|
|
|
+ right: -8px;
|
|
|
+ font-size: 24px;
|
|
|
+ background: rgba(255,255,255,0.2);
|
|
|
+ border-radius: 50%;
|
|
|
+ padding: 8px;
|
|
|
+ color: white;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- // 底部操作按钮
|
|
|
- .action-footer {
|
|
|
- padding: 16px;
|
|
|
- background: var(--ion-color-primary);
|
|
|
-
|
|
|
- .logout-btn {
|
|
|
- --background: white;
|
|
|
- --color: var(--ion-color-primary);
|
|
|
- font-weight: bold;
|
|
|
- text-transform: uppercase;
|
|
|
- letter-spacing: 0.5px;
|
|
|
-
|
|
|
- ion-icon {
|
|
|
- margin-right: 8px;
|
|
|
- }
|
|
|
+}
|
|
|
+
|
|
|
+.feature-card {
|
|
|
+ margin: 16px;
|
|
|
+ border-radius: 16px;
|
|
|
+ overflow: hidden;
|
|
|
+ box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
|
+
|
|
|
+ .card-item {
|
|
|
+ padding: 16px 0;
|
|
|
+ border-bottom: 1px solid #eee;
|
|
|
+
|
|
|
+ h3 {
|
|
|
+ margin: 0;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+
|
|
|
+ .badge {
|
|
|
+ background: var(--ion-color-success);
|
|
|
+ color: white;
|
|
|
+ padding: 2px 8px;
|
|
|
+ border-radius: 10px;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ ion-icon {
|
|
|
+ color: #666;
|
|
|
+ font-size: 18px;
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.action-footer {
|
|
|
+ padding: 16px;
|
|
|
+ background: var(--ion-color-primary);
|
|
|
+
|
|
|
+ .logout-btn, .login-btn {
|
|
|
+ --background: white;
|
|
|
+ --color: var(--ion-color-primary);
|
|
|
+ font-weight: bold;
|
|
|
+ text-transform: uppercase;
|
|
|
+ letter-spacing: 0.5px;
|
|
|
+
|
|
|
+ ion-icon {
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|