/* 全局样式 */ ion-app { background: url('/assets/images/background-image1.jpg') no-repeat center center fixed; background-size: cover; background-position: center; height: 100vh; margin: 0; padding: 0; } .modal-content { --background: #fff; padding: 20px; } ion-content { --background: transparent; padding: 16px; } .profile-block { background-color: rgba(255, 255, 255, 0.8); padding: 20px; border-radius: 20px; margin: 20px; } .profile-card-content { display: flex; align-items: center; justify-content: space-between; padding: 10px; } .profile-pic-container { flex: 0 0 60px; /* 固定头像宽度 */ margin-right: 20px; } .profile-info-container { flex: 1; text-align: left; } .navigate-button-container { flex: 0 0 100px; /* 固定按钮宽度 */ text-align: right; } .profile-pic { width: 60px; height: 60px; border-radius: 50%; border: 3px solid white; } h2 { font-size: 20px; font-weight: bold; color: #333; margin-bottom: 5px; } .gender { font-size: 16px; color: #666; } .navigate-button { color: #333; margin: 0; /* 移除默认的边距 */ } ion-card { margin-top: 20px; padding: 10px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } ion-card-header { background: rgba(105, 250, 255, 0.3); color: #333; padding: 10px; text-align: left; } ion-card-title { font-size: 18px; } .completion { display: flex; justify-content: space-between; align-items: center; } .edit-button { color: #064351; font-size: 16px; } ion-list { margin-top: 10px; } ion-item { --background: #fff; --color: #333; border-radius: 5px; margin: 5px 0; padding: 10px; } .icon { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; } .signature-input { width: 100%; /* 输入框宽度占满 */ padding: 10px; /* 内边距 */ border: 1px solid #ccc; /* 边框 */ border-radius: 5px; /* 圆角 */ font-size: 16px; /* 字体大小 */ color: #333; /* 字体颜色 */ } .signature-input::placeholder { color: #aaa; /* 提示文本颜色 */ opacity: 1; /* 保持提示文本的透明度 */ } .user-info { display: flex; /* 使用 Flexbox 布局 */ align-items: center; /* 垂直居中对齐 */ margin: 16px; /* 外边距 */ } .avatar { width: 60px; /* 头像宽度 */ height: 60px; /* 头像高度 */ border-radius: 50%; /* 圆形头像 */ margin-right: 16px; /* 头像与文本的间距 */ object-fit: cover; /* 确保头像不变形 */ } .user-details-container { flex-grow: 1; /* 使用户信息区域占据剩余空间 */ } .username { font-size: 1.2em; /* 账号字体大小 */ font-weight: bold; /* 加粗 */ color: #333; /* 账号颜色 */ margin: 0; /* 去掉默认外边距 */ } .user-details { font-size: 0.9em; /* 用户详情字体大小 */ color: #555; /* 用户详情颜色 */ margin: 0; /* 去掉默认外边距 */ }