.index-page { padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; .page-header { text-align: center; margin-bottom: 24px; .page-title { font-size: 28px; font-weight: bold; color: white; display: block; margin-bottom: 8px; } .page-subtitle { font-size: 16px; color: rgba(255, 255, 255, 0.8); display: block; } } .user-card { background: white; border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); .user-header { display: flex; align-items: center; gap: 16px; .user-info { flex: 1; .username { font-size: 20px; font-weight: bold; color: #333; display: block; margin-bottom: 4px; } .user-level { font-size: 14px; color: #666; display: block; margin-bottom: 4px; } .join-date { font-size: 12px; color: #999; display: block; } } } } .stats-section { background: white; border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); .section-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 16px; display: block; } :global { .nut-cell { background: #f8f9fa; border-radius: 12px; margin-bottom: 8px; border: none; &:last-child { margin-bottom: 0; } .nut-cell__title { font-weight: 500; color: #555; } .nut-cell__value { font-weight: bold; color: #007bff; } } } } .action-section { background: white; border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); .section-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 16px; display: block; } .button-group { display: flex; flex-direction: column; gap: 12px; .custom-button { border-radius: 12px; font-weight: 500; height: 48px; border: none; margin-bottom: 12px; font-size: 16px; color: white; &.primary-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } &.success-btn { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); } &.warning-btn { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); } &:disabled { opacity: 0.6; } } // 保留 NutUI 按钮样式(备用) :global { .nut-button { border-radius: 12px; font-weight: 500; height: 48px; border: none; &--primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } &--success { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); } &--warning { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); } &:disabled { opacity: 0.6; } } } } } .loading-section { background: white; border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); text-align: center; .loading-text { font-size: 16px; color: #666; margin-bottom: 12px; display: block; } :global { .nut-progress { .nut-progress-outer { background: #f0f0f0; border-radius: 10px; } .nut-progress-inner { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 10px; } } } } .tips-section { background: rgba(255, 255, 255, 0.95); border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); .tips-title { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 16px; display: block; } .tips-content { .tip-item { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 8px; display: block; &:last-child { margin-bottom: 0; } } } } } // 响应式设计 @media (max-width: 768px) { .index-page { padding: 16px; .page-header { .page-title { font-size: 24px; } .page-subtitle { font-size: 14px; } } .user-card, .stats-section, .action-section, .loading-section, .tips-section { padding: 16px; margin-bottom: 16px; } } }