// 头部样式
ion-header {
    ion-toolbar {
        --background: transparent;

        ion-title {
            font-size: 18px;
            font-weight: 600;
        }

        ion-back-button {
            --color: var(--ion-color-dark);
        }

        ion-icon {
            font-size: 24px;
            color: var(--ion-color-dark);
        }
    }
}

// 消息类型选择器
.message-types {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: white;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

    .type-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;

        &.active {
            background: var(--ion-color-primary-light);
            color: var(--ion-color-primary);

            ion-icon {
                color: var(--ion-color-primary);
            }
        }

        ion-icon {
            font-size: 24px;
            color: #666;
        }

        span {
            font-size: 14px;
            color: #333;
        }
    }
}

// 空状态样式
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 200px);
    padding: 32px;
    text-align: center;

    .empty-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: var(--ion-color-light);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;

        ion-icon {
            font-size: 40px;
            color: var(--ion-color-medium);
        }
    }

    h2 {
        font-size: 20px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }

    p {
        font-size: 14px;
        color: #666;
        margin-bottom: 24px;
    }

    .refresh-btn {
        --color: var(--ion-color-primary);
        font-size: 14px;

        ion-icon {
            margin-right: 4px;
        }
    }
}

// 消息列表样式
.message-list {
    ion-item {
        --padding-start: 16px;
        --padding-end: 16px;
        --padding-top: 12px;
        --padding-bottom: 12px;

        ion-avatar {
            width: 48px;
            height: 48px;
        }

        ion-label {
            h2 {
                font-size: 16px;
                font-weight: 500;
                color: #333;
                margin-bottom: 4px;
            }

            p {
                font-size: 14px;
                color: #666;
                margin: 0;
            }

            .time {
                font-size: 12px;
                color: #999;
                position: absolute;
                top: 12px;
                right: 16px;
            }
        }
    }
}

// 添加一些动画效果
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    animation: fadeIn 0.5s ease-out;
}

.type-item {
    cursor: pointer;

    &:hover {
        background: var(--ion-color-light);
    }
}