|
@@ -0,0 +1,221 @@
|
|
|
|
+// =============================================
|
|
|
|
+// 本地变量定义(确保所有变量都有定义)
|
|
|
|
+// =============================================
|
|
|
|
+
|
|
|
|
+// 主色
|
|
|
|
+$primary-blue: #2A5CAA !default;
|
|
|
|
+$accent-orange: #FF6B35 !default;
|
|
|
|
+
|
|
|
|
+// 背景与文字
|
|
|
|
+$bg-light: #F5F7FA !default;
|
|
|
|
+$text-dark: #2D3748 !default;
|
|
|
|
+
|
|
|
|
+// 状态色
|
|
|
|
+$success-green: #48BB78 !default;
|
|
|
|
+
|
|
|
|
+// 阴影
|
|
|
|
+$card-shadow: 0 10px 20px rgba(0,0,0,0.08) !default;
|
|
|
|
+
|
|
|
|
+// CSS变量(兼容性定义)
|
|
|
|
+:root {
|
|
|
|
+ --primary-blue: #{$primary-blue};
|
|
|
|
+ --accent-orange: #{$accent-orange};
|
|
|
|
+ --bg-light: #{$bg-light};
|
|
|
|
+ --text-dark: #{$text-dark};
|
|
|
|
+ --success-green: #{$success-green};
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// =============================================
|
|
|
|
+// 主样式
|
|
|
|
+// =============================================
|
|
|
|
+
|
|
|
|
+.mine-container {
|
|
|
|
+ padding: 20px;
|
|
|
|
+ padding-bottom: 100px; // 为底部导航留空间
|
|
|
|
+
|
|
|
|
+ /* 用户信息卡片 */
|
|
|
|
+ .user-card {
|
|
|
|
+ background: white;
|
|
|
|
+ border-radius: 16px;
|
|
|
|
+ padding: 20px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-bottom: 25px;
|
|
|
|
+ box-shadow: $card-shadow; // 使用本地定义的变量
|
|
|
|
+
|
|
|
|
+ .user-avatar {
|
|
|
|
+ width: 60px;
|
|
|
|
+ height: 60px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ background: linear-gradient(135deg, $primary-blue, #3A7BD5);
|
|
|
|
+ color: white;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ font-size: 24px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .user-info {
|
|
|
|
+ flex: 1;
|
|
|
|
+
|
|
|
|
+ .user-name {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ margin-bottom: 5px;
|
|
|
|
+ color: $text-dark;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .user-stats {
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 15px;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ color: #718096;
|
|
|
|
+
|
|
|
|
+ span {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+
|
|
|
|
+ &::before {
|
|
|
|
+ content: "•";
|
|
|
|
+ margin-right: 5px;
|
|
|
|
+ color: $primary-blue;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /* 功能区 */
|
|
|
|
+ .section {
|
|
|
|
+ margin-bottom: 25px;
|
|
|
|
+
|
|
|
|
+ .section-title {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ color: $text-dark;
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
+ padding-left: 10px;
|
|
|
|
+ position: relative;
|
|
|
|
+
|
|
|
|
+ &::before {
|
|
|
|
+ content: "";
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
+ height: 16px;
|
|
|
|
+ width: 4px;
|
|
|
|
+ background: $primary-blue;
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /* 功能卡片 */
|
|
|
|
+ .features-grid {
|
|
|
|
+ display: grid;
|
|
|
|
+ gap: 12px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .feature-card {
|
|
|
|
+ background: white;
|
|
|
|
+ border-radius: 12px;
|
|
|
|
+ padding: 15px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ box-shadow: $card-shadow;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ transition: all 0.3s ease;
|
|
|
|
+
|
|
|
|
+ &:hover {
|
|
|
|
+ transform: translateY(-3px);
|
|
|
|
+ box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .feature-icon {
|
|
|
|
+ width: 40px;
|
|
|
|
+ height: 40px;
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ background: rgba($primary-blue, 0.1);
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-right: 15px;
|
|
|
|
+ color: $primary-blue;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .feature-content {
|
|
|
|
+ flex: 1;
|
|
|
|
+
|
|
|
|
+ .feature-title {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ color: $text-dark;
|
|
|
|
+ margin-bottom: 3px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .feature-desc {
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ color: #718096;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .feature-arrow {
|
|
|
|
+ color: #CBD5E0;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /* 退出登录按钮 */
|
|
|
|
+ .logout-btn {
|
|
|
|
+ width: 100%;
|
|
|
|
+ padding: 12px;
|
|
|
|
+ background: white;
|
|
|
|
+ border: 1px solid #E2E8F0;
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ gap: 8px;
|
|
|
|
+ color: #E53E3E;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ transition: all 0.3s ease;
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+
|
|
|
|
+ &:hover {
|
|
|
|
+ background: #FFF5F5;
|
|
|
|
+ border-color: #FEB2B2;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ fa-icon {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* 响应式调整 */
|
|
|
|
+@media (max-width: 600px) {
|
|
|
|
+ .mine-container {
|
|
|
|
+ padding: 15px;
|
|
|
|
+ padding-bottom: 100px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .user-card {
|
|
|
|
+ padding: 15px;
|
|
|
|
+
|
|
|
|
+ .user-avatar {
|
|
|
|
+ width: 50px;
|
|
|
|
+ height: 50px;
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .user-name {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .feature-card {
|
|
|
|
+ padding: 12px;
|
|
|
|
+ }
|
|
|
|
+}
|