| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688 |
- /* Tab2 页面美化 */
- ion-content.content-bg {
- --background: #f8f9fa;
- background: linear-gradient(180deg, #e3f2fd 0%, #f8f9fa 100%);
- }
- /* 工具栏渐变样式 */
- .toolbar-gradient {
- --background: linear-gradient(to right, #3a7bd5, #00d2ff);
- --color: white;
-
- ion-title.header-title {
- font-weight: 600;
- letter-spacing: 0.5px;
- text-align: center;
- }
-
- .icon-btn {
- --padding-end: 0;
- --padding-start: 0;
- }
- }
- /* 卡片玻璃效果 */
- .glass-card {
- border-radius: 16px;
- box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
- background: rgba(255, 255, 255, 0.9);
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.5);
- overflow: visible;
- }
- /* 加载状态美化 */
- .loading-container {
- padding: 16px;
-
- .skeleton-card {
- background: white;
- border-radius: 16px;
- padding: 16px;
- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
- margin-bottom: 16px;
- }
-
- .skeleton-item {
- --padding-start: 0;
- --inner-padding-end: 0;
-
- .skeleton-avatar {
- width: 50px;
- height: 50px;
- border-radius: 12px;
- }
- }
- }
- /* 内容区域统一间距 */
- .content-area {
- padding: 12px;
- }
- /* 本周训练卡片 */
- .weekly-card {
- margin-bottom: 24px;
- background: rgba(255, 255, 255, 0.92); // 半透明白色背景
- .card-header-primary {
- background: linear-gradient(to right, #4b6cb7, #182848);
- color: white;
- border-radius: 16px 16px 0 0;
- padding: 16px;
-
- .card-title {
- display: flex;
- align-items: center;
- font-size: 1.3rem;
- font-weight: 600;
- letter-spacing: 0.5px;
- }
-
- .card-icon {
- margin-right: 10px;
- font-size: 1.6rem;
- }
-
- ion-card-subtitle {
- color: rgba(255, 255, 255, 0.8);
- font-size: 0.9rem;
- }
- }
-
- .progress-container {
- margin-bottom: 20px;
-
- .progress-header {
- display: flex;
- justify-content: space-between;
- margin-bottom: 6px;
- font-size: 0.9rem;
- color: #5a5a5a;
- font-weight: 500;
- }
-
- .progress-text {
- margin-top: 8px;
- text-align: right;
- font-size: 0.85rem;
- font-weight: 500;
- color: #3a7bd5;
- }
- }
-
- .day-grid {
- margin-top: 15px;
-
- .day-row {
- justify-content: space-between;
- }
-
- .day-col {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 8px 5px;
-
- &.active {
- background: rgba(58, 123, 213, 0.1);
- border-radius: 12px;
- }
-
- .day-name {
- font-size: 1rem;
- font-weight: 500;
- margin-bottom: 8px;
- color: #3a3a3a;
- }
-
- ion-badge {
- padding: 8px;
- border-radius: 50%;
-
- ion-icon {
- font-size: 1.4rem;
- }
- }
-
- ion-icon {
- font-size: 1.5rem;
- }
- }
- }
- }
- /* 节标题美化 */
- .section-header {
- margin: 24px 0 16px;
-
- .section-label {
- font-size: 1.2rem;
- font-weight: 600;
- color: #1a237e; // 深蓝色
- font-weight: 600;
- display: block;
- margin-bottom: 4px;
- }
-
- .header-content {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: 100%;
- }
-
- ion-note {
- font-size: 0.9rem;
- color: #455a64; // 深灰蓝色
- }
-
- .refresh-btn {
- --color: #3a7bd5;
- --background-hover: rgba(58, 123, 213, 0.1);
- }
- }
- /* 计划列表美化 */
- .plan-list {
- background: transparent;
-
- .plan-item {
- --padding-start: 0;
- --inner-padding-end: 0;
- --inner-padding-top: 16px;
- --inner-padding-bottom: 16px;
- margin-bottom: 16px;
- background: rgba(58, 123, 213, 0.15);;
- border-radius: 16px;
- overflow: visible;
-
- .plan-icon {
- width: 50px;
- height: 50px;
- border-radius: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-left: 16px;
- margin-right: 16px;
-
- ion-icon {
- font-size: 1.5rem;
- }
- }
-
- .plan-details {
- padding-right: 8px;
-
- .plan-header {
- display: flex;
- align-items: center;
- margin-bottom: 8px;
-
- h3 {
- font-size: 1.1rem;
- font-weight: 600;
- margin-right: 10px;
- margin-top: 0;
- margin-bottom: 0;
- color: #00a0fd;
- font-weight: 700; // 加粗增强可读性
- }
-
- .difficulty-badge {
- font-size: 0.7rem;
- font-weight: 600;
- letter-spacing: 0.5px;
- padding: 4px 8px;
- }
- }
-
- .plan-stats {
- display: flex;
- margin-bottom: 8px;
-
- .progress-tag, .next-tag {
- display: flex;
- align-items: center;
- font-weight: 500;
- background: rgba(58, 123, 213, 0.15); // 更明显的背景色
- border-radius: 12px;
- padding: 4px 8px;
- font-size: 0.85rem;
- color: #444; // 深灰色
- margin-right: 10px;
-
- ion-icon {
- margin-right: 4px;
- font-size: 0.9rem;
- }
- }
- }
-
- .plan-description {
- color: #555; // 加深描述文字颜色
- font-size: 0.95rem;
- line-height: 1.4;
- margin-top: 8px;
- margin-bottom: 8px;
- }
- .plan-details > * {
- text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
- .task-summary {
- margin-top: 10px;
-
- ion-chip {
- margin: 0 6px 6px 0;
- font-size: 0.8rem;
- padding: 4px 12px;
- border-radius: 50px;
- --color: #333; // 芯片文字颜色加深
- font-weight: 500; // 加粗
- ion-icon {
- font-size: 0.9rem;
- margin-right: 4px;
- }
- }
- }
- }
- }
- .days-badge {
- margin-right: 16px;
- font-weight: 600;
- font-size: 1rem;
- padding: 8px 12px;
- border-radius: 50px;
- min-width: 50px;
- text-align: center;
- --color: white; // 文字改为白色确保可读
- font-weight: 600;
- }
- }
- }
- /* 空状态美化 */
- .empty-state {
- text-align: center;
- padding: 40px 20px;
-
- .empty-icon {
- width: 80px;
- height: 80px;
- background: rgba(58, 123, 213, 0.1);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- margin: 0 auto 20px;
-
- ion-icon {
- font-size: 2.5rem;
- color: #3a7bd5;
- }
- }
-
- h3 {
- font-size: 1.3rem;
- color: #212121; // 加深标题
- margin-bottom: 8px;
- }
-
- p {
- color: #555; // 加深描述
- font-size: 1rem;
- margin-bottom: 20px;
- max-width: 300px;
- margin-left: auto;
- margin-right: auto;
- }
-
- .create-btn {
- max-width: 280px;
- margin: 0 auto;
- font-weight: 600;
- border-radius: 12px;
- --box-shadow: 0 4px 16px rgba(58, 123, 213, 0.3);
- }
- }
- /* 教练卡片美化 */
- .coach-card.running-theme {
- background: linear-gradient(to bottom right, #4b6cb7, #182848);
- color: white;
- border-radius: 16px;
-
- .avatar-container {
- position: relative;
-
- .coach-avatar {
- width: 100%;
- height: 160px;
- object-fit: cover;
- border-radius: 16px 16px 0 0;
- }
-
- .sport-badge {
- position: absolute;
- top: 16px;
- right: 16px;
- background: rgba(255, 255, 255, 0.9);
- color: #3a7bd5;
- padding: 4px 12px;
- border-radius: 30px;
- font-weight: 600;
- font-size: 0.9rem;
- }
-
- .rating-badge {
- position: absolute;
- bottom: 16px;
- right: 16px;
- display: flex;
- align-items: center;
- background: rgba(255, 255, 255, 0.9);
- color: #f39c12;
- padding: 4px 12px;
- border-radius: 30px;
- font-weight: 600;
- font-size: 0.9rem;
-
- ion-icon {
- margin-right: 4px;
- }
- }
- }
-
- ion-card-header {
- padding: 16px;
-
- .coach-name {
- font-size: 1.4rem;
- font-weight: 700;
- }
-
- .coach-title {
- font-size: 1rem;
- color: #ddd;
- font-weight: 500;
- }
- }
-
- ion-card-content {
- padding: 0 16px 20px;
-
- .stats-grid {
- display: flex;
- justify-content: space-between;
- margin: 20px 0;
-
- .stat-item {
- text-align: center;
- flex: 1;
-
- .stat-value {
- font-size: 1.5rem;
- font-weight: 700;
- margin-bottom: 4px;
- }
-
- .stat-label {
- font-size: 0.85rem;
- opacity: 0.9;
- }
- }
- }
-
- .specialties-section {
- margin: 20px 0;
-
- .section-title {
- font-size: 1rem;
- display: block;
- margin-bottom: 10px;
- opacity: 0.8;
- }
-
- .specialties-container {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
-
- .specialty-chip {
- background: rgba(255, 255, 255, 0.2);
- color: white;
- font-size: 0.85rem;
-
- ion-icon {
- color: #00d2ff;
- }
- }
- }
- }
-
- .consult-btn {
- --background: white;
- --color: #3a7bd5;
- --box-shadow: none;
- font-weight: 600;
- margin-top: 10px;
- --padding-top: 15px;
- --padding-bottom: 15px;
- --border-radius: 12px;
-
- ion-icon {
- color: #3a7bd5;
- }
- }
- }
- }
- /* 添加新的卡片样式类 */
- .card-content-box {
- background: #ffffff; // 纯白背景确保对比度
- border-radius: 16px;
- padding: 16px;
- margin-bottom: 16px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
-
- .plan-header h3 {
- color: #1a237e; // 深蓝色标题
- font-size: 1.2rem;
- font-weight: 700;
- margin-bottom: 8px;
- }
- }
- /* FAB 按钮美化 */
- .fab-container {
- margin-bottom: 20px;
- margin-right: 20px;
-
- .main-fab {
- --background: linear-gradient(to right, #3a7bd5, #00d2ff);
- --background-activated: linear-gradient(to right, #2a5ba5, #00b2e0);
- --border-radius: 16px;
- width: 60px;
- height: 60px;
- box-shadow: 0 6px 20px rgba(58, 123, 213, 0.4);
-
- .fab-icon {
- font-size: 1.8rem;
- }
- }
- }
- /* 不同难度等级的颜色 */
- .plan-item .difficulty-badge {
- &.beginner-badge {
- --background: #27ae60;
- --color: white;
- }
-
- &.intermediate-badge {
- --background: #f39c12;
- --color: white;
- }
-
- &.advanced-badge {
- --background: #e74c3c;
- --color: white;
- }
- }
- /* 删除按钮样式 */
- .delete-btn {
- --padding-start: 8px;
- --padding-end: 8px;
-
- .delete-icon {
- font-size: 1.25rem;
- transition: all 0.3s ease;
- color: #666;
- }
-
- &:hover {
- .delete-icon {
- color: #e74c3c;
- transform: scale(1.1);
- }
- }
-
- &:active {
- .delete-icon {
- transform: scale(0.9);
- }
- }
- }
- /* 确认删除弹窗样式 */
- .delete-confirm-alert {
- --backdrop-opacity: 0.7;
-
- .alert-wrapper {
- border-radius: 16px;
- background: linear-gradient(to bottom, #fff, #f8f9fa);
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
- border: 1px solid #e0e0e0;
- overflow: hidden;
- }
-
- .alert-head {
- background: linear-gradient(to right, #e74c3c, #c0392b);
- color: white;
- padding: 15px 16px;
-
- .alert-title {
- font-size: 1.3rem;
- font-weight: 600;
- }
- }
-
- .alert-message {
- padding: 20px 16px;
- color: #444;
- font-size: 1rem;
- line-height: 1.5;
- }
-
- .alert-button-group {
- padding: 10px 16px 16px;
- flex-direction: row-reverse;
- justify-content: flex-start;
-
- button:last-child {
- margin-right: 10px;
- }
- }
-
- .cancel-btn {
- --background: #f1f2f6;
- --background-hover: #e0e0e0;
- --color: #444;
- --background-activated: #e0e0e0;
- border-radius: 50px;
- padding: 12px 20px;
- margin: 0;
- }
-
- .delete-btn {
- --background: linear-gradient(to right, #e74c3c, #c0392b);
- --background-activated: rgba(231, 76, 60, 0.9);
- --color: white;
- border-radius: 50px;
- padding: 12px 20px;
- margin: 0;
- box-shadow: 0 3px 8px rgba(192, 57, 43, 0.3);
- }
- }
- /* 删除加载中提示 */
- .deleting-alert {
- .alert-wrapper {
- background: transparent;
- box-shadow: none;
- }
-
- .alert-message {
- color: white;
- text-align: center;
- font-size: 1.1rem;
- background: rgba(231, 76, 60, 0.8);
- border-radius: 50px;
- padding: 15px 20px;
- }
- }
- /* 删除成功提示 */
- .delete-success-toast {
- --backdrop-opacity: 0;
-
- .alert-wrapper {
- background: linear-gradient(to right, #27ae60, #2ecc71);
- color: white;
- border-radius: 50px;
- padding: 12px 24px;
- max-width: 300px;
- box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
- }
-
- .alert-message {
- font-size: 1.1rem;
- font-weight: 500;
- }
- }
- /* 删除成功提示 */
- .delete-success-toast {
- --background: linear-gradient(to right, #27ae60, #2ecc71);
- --color: white;
- --border-radius: 50px;
- --box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
- --height: auto;
- padding: 12px 24px;
- font-weight: 500;
- }
- /* 删除错误提示 */
- .delete-error-alert {
- .alert-wrapper {
- border-radius: 16px;
- background: white;
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
- overflow: hidden;
- }
-
- .alert-head {
- background: linear-gradient(to right, #e74c3c, #c0392b);
- color: white;
- padding: 15px 16px;
-
- .alert-title {
- font-size: 1.3rem;
- font-weight: 600;
- }
- }
-
- .alert-message {
- padding: 20px 16px;
- color: #444;
- font-size: 1rem;
- line-height: 1.5;
- }
- }
|