| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290 |
- /* 全局样式重置 */
- page {
- background-color: #f5f5f5;
- }
- .index-container {
- min-height: 100vh;
- background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
- padding: 32rpx;
- box-sizing: border-box;
- }
- /* 用户已登录状态 */
- .user-welcome {
- padding: 32rpx 0;
- }
- .user-card {
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
- padding: 48rpx 32rpx;
- margin-bottom: 32rpx;
- }
- .user-header {
- display: flex;
- align-items: center;
- margin-bottom: 48rpx;
- }
- .user-avatar {
- margin-right: 32rpx;
- }
- .avatar-image {
- width: 128rpx;
- height: 128rpx;
- border-radius: 50%;
- border: 4rpx solid #1890ff;
- background: #f0f0f0;
- }
- .user-greeting {
- flex: 1;
- }
- .welcome-text {
- display: block;
- font-size: 28rpx;
- color: #8c8c8c;
- margin-bottom: 8rpx;
- }
- .username {
- display: block;
- font-size: 36rpx;
- font-weight: 600;
- color: #262626;
- }
- .user-info {
- margin-bottom: 48rpx;
- }
- .info-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 24rpx 0;
- border-bottom: 2rpx solid #f0f0f0;
- }
- .info-item:last-child {
- border-bottom: none;
- }
- .info-label {
- font-size: 28rpx;
- color: #8c8c8c;
- }
- .info-value {
- font-size: 28rpx;
- color: #262626;
- font-weight: 500;
- }
- .action-buttons {
- display: flex;
- flex-direction: column;
- gap: 24rpx;
- }
- .action-button {
- width: 100%;
- height: 80rpx;
- font-size: 32rpx;
- font-weight: 500;
- border-radius: 8rpx;
- transition: opacity 0.2s ease;
- }
- .action-button:active {
- opacity: 0.7;
- }
- .action-button.primary {
- background: #1890ff;
- color: #ffffff;
- border: none;
- }
- .action-button.secondary {
- background: #ffffff;
- color: #1890ff;
- border: 2rpx solid #1890ff;
- }
- .stats-section {
- display: flex;
- gap: 16rpx;
- justify-content: space-between;
- }
- .stat-card {
- flex: 1;
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
- padding: 32rpx 24rpx;
- text-align: center;
- }
- .stat-number {
- display: block;
- font-size: 48rpx;
- font-weight: 600;
- color: #1890ff;
- margin-bottom: 8rpx;
- }
- .stat-label {
- display: block;
- font-size: 24rpx;
- color: #8c8c8c;
- }
- /* 用户未登录状态 */
- .login-prompt {
- padding: 32rpx 0;
- }
- .welcome-header {
- text-align: center;
- margin-bottom: 64rpx;
- }
- .welcome-icon {
- width: 192rpx;
- height: 192rpx;
- margin-bottom: 32rpx;
- border-radius: 16rpx;
- }
- .welcome-title {
- display: block;
- font-size: 36rpx;
- font-weight: 600;
- color: #262626;
- margin-bottom: 16rpx;
- }
- .welcome-subtitle {
- display: block;
- font-size: 28rpx;
- color: #8c8c8c;
- }
- .login-card {
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
- padding: 48rpx 32rpx;
- margin-bottom: 32rpx;
- }
- .login-buttons {
- display: flex;
- flex-direction: column;
- gap: 24rpx;
- }
- .login-button {
- width: 100%;
- height: 80rpx;
- font-size: 32rpx;
- font-weight: 500;
- border-radius: 8rpx;
- transition: opacity 0.2s ease;
- }
- .login-button:active {
- opacity: 0.7;
- }
- .login-button.primary {
- background: #1890ff;
- color: #ffffff;
- border: none;
- }
- .login-button.secondary {
- background: #ffffff;
- color: #1890ff;
- border: 2rpx solid #1890ff;
- }
- .features-section {
- margin-top: 32rpx;
- }
- .features-title {
- display: block;
- font-size: 32rpx;
- font-weight: 600;
- color: #262626;
- margin-bottom: 32rpx;
- text-align: center;
- }
- .features-grid {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 16rpx;
- }
- .feature-card {
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
- padding: 32rpx 24rpx;
- text-align: center;
- }
- .feature-icon {
- font-size: 48rpx;
- margin-bottom: 16rpx;
- }
- .feature-title {
- display: block;
- font-size: 28rpx;
- font-weight: 600;
- color: #262626;
- margin-bottom: 8rpx;
- }
- .feature-desc {
- display: block;
- font-size: 24rpx;
- color: #8c8c8c;
- line-height: 1.4;
- }
- /* 响应式设计 */
- @media screen and (max-width: 375rpx) {
- .index-container {
- padding: 24rpx;
- }
-
- .features-grid {
- grid-template-columns: 1fr;
- }
- }
- @media screen and (min-width: 768rpx) {
- .index-container {
- padding: 48rpx;
- }
-
- .stats-section {
- gap: 24rpx;
- }
-
- .features-grid {
- grid-template-columns: repeat(4, 1fr);
- gap: 24rpx;
- }
- }
|