.tag-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;

    .tag-input {
        flex: 1;
        --padding-start: 12px;
        --padding-end: 12px;
        --background: var(--ion-color-light);
        --border-radius: 8px;
        --placeholder-color: #999;
        --placeholder-opacity: 0.8;

        &::part(native) {
            padding: 8px 12px;
        }

        ion-icon {
            color: var(--ion-color-medium);
            margin-right: 8px;
        }
    }

    .add-button {
        --padding-start: 16px;
        --padding-end: 16px;
        --border-radius: 8px;

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

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;

    .custom-chip {
        --background: var(--ion-color-light);
        --color: var(--ion-color-dark);
        padding: 8px 12px;
        border-radius: 16px;
        transition: all 0.2s ease;

        ion-label {
            margin-right: 4px;
            font-size: 14px;
        }

        ion-icon {
            font-size: 16px;
            color: var(--ion-color-medium);
            cursor: pointer;
            transition: color 0.2s ease;

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

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

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

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

ion-chip {
    animation: fadeIn 0.3s ease-out;
}