/* 页面整体布局 */ ion-content { background-color: white; /* 将页面背景色改为白色 */ padding: 16px; } /* 标题 */ ion-toolbar { --background: white; /* 将工具栏背景色改为白色 */ --color: black; /* 设置标题字体为黑色 */ border-bottom: 1px solid #e1e1e1; /* 为工具栏底部添加轻微边框 */ } ion-title { font-size: 22px; font-weight: bold; text-align: center; color: black; /* 标题字体颜色改为黑色 */ } /* 用户信息区域 */ .user-info { background-color: white; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } ion-avatar { width: 60px; height: 60px; margin-right: 16px; } ion-label h2 { font-size: 18px; font-weight: bold; color: #333; /* 用户名的字体颜色设置为深灰色 */ margin: 0; } ion-label p { font-size: 14px; color: #888; /* 登录提示字体颜色设置为浅灰色 */ margin-top: 4px; } .user-actions { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; } .user-actions ion-button { margin-bottom: 8px; width: 100%; } /* 按钮样式 */ ion-button { font-size: 14px; font-weight: bold; border-radius: 8px; } ion-button[color="primary"] { --background: #3880ff; --color: white; --border-radius: 10px; } ion-button[color="secondary"] { --background: #ffcd38; --color: white; } ion-button[color="tertiary"] { --background: #10dc60; --color: white; } ion-button[color="danger"] { --background: #eb445a; --color: white; } /* 锻炼计划和历史记录卡片 */ ion-card { margin-bottom: 16px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); background-color: white; } ion-card-header { background-color: #3880ff; color: white; border-top-left-radius: 10px; border-top-right-radius: 10px; padding: 16px; } ion-card-title { font-size: 18px; font-weight: bold; margin: 0; } ion-card-content { padding: 16px; } ion-item { display: flex; align-items: center; justify-content: space-between; } ion-label { font-size: 16px; color: #333; } ion-button.expand-block { width: 100%; font-weight: bold; margin-top: 8px; } ion-item ion-button { border-radius: 8px; } /* 响应式调整 */ @media (max-width: 767px) { /* 用户信息区域调整 */ .user-info { padding: 12px; margin-bottom: 12px; } ion-avatar { width: 50px; height: 50px; } ion-label h2 { font-size: 16px; } ion-button { font-size: 14px; } /* 锻炼计划和历史记录卡片 */ ion-card { margin-bottom: 12px; } ion-card-header { padding: 12px; } ion-card-title { font-size: 16px; } ion-button.expand-block { width: 100%; } }